/* style/support.css */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.page-support__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-support__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for main titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0; /* Slightly lighter for intro text on dark bg */
}

/* Hero Section */
.page-support__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a1a, #121212); /* Subtle gradient for hero */
    position: relative;
    overflow: hidden;
}

.page-support__hero-content {
    z-index: 1;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-support__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-support__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-outline,
.page-support__btn-text {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-support__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-support__btn-primary:hover {
    background-color: #1e87b4;
    border-color: #1e87b4;
}

.page-support__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-support__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-support__btn-outline {
    background-color: transparent;
    color: #26A9E0;
    border: 1px solid #26A9E0;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
}

.page-support__btn-outline:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-support__btn-text {
    background: none;
    border: none;
    color: #26A9E0;
    padding: 0;
    font-size: 1em;
    font-weight: normal;
    text-decoration: underline;
}

.page-support__btn-text:hover {
    color: #1e87b4;
}

.page-support__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.15; /* Subtle background image */
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark Section styling */
.page-support__dark-section {
    background-color: #1a1a1a; /* Slightly lighter than body for contrast */
    padding: 80px 0;
    color: #ffffff; /* Ensure light text on dark background */
}

/* About Support Section */
.page-support__about-support-section {
    padding: 80px 0;
}

.page-support__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__feature-card {
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle white overlay */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-support__feature-icon {
    width: 100%; /* Make it responsive within card */
    max-width: 400px; /* Max width to fit the card, matches HTML width */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 20px;
    border-radius: 5px;
    object-fit: cover;
}

.page-support__feature-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-support__feature-description {
    font-size: 1em;
    color: #cccccc;
}

/* Contact Methods Section */
.page-support__contact-methods-section {
    padding: 80px 0;
    background-color: #121212; /* Match body background */
}

.page-support__method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__method-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__method-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-support__method-description {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__method-description a {
    color: #26A9E0;
    text-decoration: none;
}

.page-support__method-description a:hover {
    text-decoration: underline;
}

/* Common Issues Section */
.page-support__common-issues-section {
    padding: 80px 0;
}

.page-support__issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__issue-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__issue-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-support__issue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-support__issue-list li {
    margin-bottom: 10px;
    color: #cccccc;
}

.page-support__issue-list li strong {
    color: #ffffff;
}

.page-support__issue-list li a {
    color: #26A9E0;
    text-decoration: none;
}

.page-support__issue-list li a:hover {
    text-decoration: underline;
}

/* Security & Responsible Gaming Section */
.page-support__security-responsible-gaming-section {
    padding: 80px 0;
    background-color: #121212; /* Match body background */
}

.page-support__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__info-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__info-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-support__info-description {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
}

.page-support__faq-list {
    margin-top: 40px;
}

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-support__faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: #ffffff;
}

.page-support__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Changes '+' to 'x' or similar */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.03);
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-support__faq-answer p {
    margin: 0;
    color: #cccccc;
}

.page-support__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
}

.page-support__faq-answer a:hover {
    text-decoration: underline;
}

/* Call to Action Section */
.page-support__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(45deg, #1e87b4, #26A9E0); /* Gradient with brand color */
    color: #ffffff;
}

.page-support__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-support__cta-description {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-support__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Images responsive and size requirements */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Specific color contrast rules for dark background */
.page-support__dark-bg {
  color: #ffffff; /* Deep dark background, light text */
}

.page-support__light-bg {
  color: #333333; /* Light background, dark text */
  background: #ffffff;
}

.page-support__medium-bg {
  color: #000000; /* Medium background, dark text (default) */
  background: #FFFFFF;
}

/* Ensure all links within content are visible */
.page-support a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: none;
}
.page-support a:hover {
    text-decoration: underline;
    color: #1e87b4;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 3em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 40px 15px;
    }
    .page-support__hero-title {
        font-size: 2.5em;
    }
    .page-support__hero-description {
        font-size: 1.1em;
    }
    .page-support__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__btn-outline {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-support__about-support-section,
    .page-support__contact-methods-section,
    .page-support__common-issues-section,
    .page-support__security-responsible-gaming-section,
    .page-support__faq-section,
    .page-support__cta-section {
        padding: 50px 0;
    }

    .page-support__container {
        padding: 0 15px;
    }

    .page-support__feature-grid,
    .page-support__method-grid,
    .page-support__issues-grid,
    .page-support__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__feature-icon {
        width: 100%;
        max-width: 300px; /* Adjust max-width for mobile */
        height: auto;
    }

    .page-support__cta-title {
        font-size: 2em;
    }
    .page-support__cta-description {
        font-size: 1.1em;
    }

    /* Mobile image responsive adaptations */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-support__hero-image-wrapper,
    .page-support__feature-card,
    .page-support__method-card,
    .page-support__issue-card,
    .page-support__info-card,
    .page-support__faq-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      /* Padding handled by container padding */
    }

    /* Mobile button responsive adaptations */
    .page-support__hero-buttons,
    .page-support__cta-buttons {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-direction: column !important; /* Stack buttons vertically */
      gap: 15px !important;
      overflow: hidden !important;
    }

    /* FAQ item padding adjustment for mobile */
    .page-support__faq-question,
    .page-support__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
      padding: 15px 15px !important;
    }

    /* Ensure content sections have proper padding on mobile */
    .page-support__about-support-section .page-support__container,
    .page-support__contact-methods-section .page-support__container,
    .page-support__common-issues-section .page-support__container,
    .page-support__security-responsible-gaming-section .page-support__container,
    .page-support__faq-section .page-support__container,
    .page-support__cta-section .page-support__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}