/* style/support.css */

/* Base Styles for .page-support */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background: #ffffff; /* Explicitly set for clarity, though shared might define body background */
}

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

.page-support__section-heading {
    font-size: 36px;
    font-weight: bold;
    color: #017439; /* Primary color for headings */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-support__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

.page-support__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-support__item-title {
    font-size: 24px;
    font-weight: 700;
    color: #017439;
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-support__item-title a {
    color: #017439;
    text-decoration: none;
}

.page-support__item-title a:hover {
    text-decoration: underline;
}

.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Button Base Styles */
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    border: none; /* Reset border for buttons */
}

.page-support__btn-primary {
    background: #017439;
    color: #ffffff;
}

.page-support__btn-primary:hover {
    background: #005a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
    background: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-support__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, #017439, #017439); /* Use primary color for hero background */
    color: #ffffff; /* White text on dark background */
}

.page-support__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-support__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-support__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-support__main-heading {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-support__intro-text {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-support__cta-buttons .page-support__cta-button {
    background: #C30808; /* Specific color for Register/Login related CTAs */
    color: #FFFF00; /* Specific font color for Register/Login related CTAs */
    padding: 18px 45px;
    font-size: 20px;
    border: none;
}

.page-support__cta-buttons .page-support__cta-button:hover {
    background: #a30606;
}

/* Contact Methods Section */
.page-support__contact-methods {
    padding: 80px 0;
    background: #ffffff; /* Light background */
    color: #333333;
}

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

.page-support__method-item img {
    width: 100%;
    max-width: 250px; /* Smaller image size for these cards */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-support__method-item p {
    font-size: 16px;
    margin-bottom: 25px;
    flex-grow: 1; /* Make paragraphs take available space */
}

.page-support__disclaimer-text {
    text-align: center;
    margin-top: 50px;
    font-style: italic;
    font-size: 16px;
    color: #666666;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background: #017439; /* Dark background */
    color: #ffffff;
}

.page-support__faq-section .page-support__section-heading {
    color: #ffffff;
}

.page-support__faq-section .page-support__section-description {
    color: #f0f0f0;
}

.page-support__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ container styles */
.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ default state - answer hidden */
.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px; /* Reduced initial padding */
    opacity: 0;
    background: #f9f9f9;
    color: #333333;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* 🚨 Use !important ensure priority, value large enough to contain any content */
    padding: 20px !important; /* Adjust padding as needed */
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

/* Question styles */
.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #333333; /* Dark text on light background */
}

.page-support__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-support__faq-question:active {
    background: #eeeeee;
}

/* Question title styles */
.page-support__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #017439; /* Primary color for FAQ questions */
}

/* Toggle icon */
.page-support__faq-toggle {
    font-size: 28px; /* Slightly larger for better visibility */
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Increased size */
    height: 32px; /* Increased size */
    border-radius: 50%;
    background: #f0f0f0;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: #017439;
    transform: rotate(180deg); /* Rotate for minus sign */
    background: #e0e0e0;
}

/* Guides & Resources Section */
.page-support__guides-resources {
    padding: 80px 0;
    background: #ffffff;
    color: #333333;
}

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

.page-support__resource-item img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-support__resource-item p {
    font-size: 16px;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming {
    padding: 80px 0;
    background: #017439; /* Dark background */
    color: #ffffff;
}

.page-support__responsible-gaming .page-support__section-heading {
    color: #ffffff;
}

.page-support__responsible-gaming .page-support__section-description {
    color: #f0f0f0;
}

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

.page-support__responsible-features .page-support__card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on dark background */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-support__responsible-features .page-support__item-title {
    color: #ffffff;
}

.page-support__responsible-features .page-support__card p {
    color: #f0f0f0;
}

.page-support__responsible-features .page-support__card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.page-support__action-text {
    text-align: center;
    margin-top: 50px;
    font-size: 18px;
    color: #f0f0f0;
}

.page-support__link-text {
    color: #FFFF00; /* Yellow for important links on dark background */
    text-decoration: underline;
}

.page-support__link-text:hover {
    color: #f0f0f0;
}

/* Call to Action Section */
.page-support__call-to-action {
    padding: 80px 0;
    background: #f8f8f8; /* Light background */
    color: #333333;
    text-align: center;
}

.page-support__cta-content {
    max-width: 800px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-support__container {
        padding: 15px;
    }

    .page-support__section-heading {
        font-size: 28px;
        padding-top: 30px;
    }

    .page-support__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Hero Section */
    .page-support__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
    }

    .page-support__main-heading {
        font-size: 36px;
    }

    .page-support__intro-text {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-support__cta-buttons .page-support__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px;
        font-size: 18px;
    }

    /* Images responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-support__card img {
        max-width: 100% !important;
        width: auto !important; /* Allow smaller width for card images if needed */
        height: auto !important;
    }

    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__method-item,
    .page-support__resource-item,
    .page-support__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Section */
    .page-support__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-support__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-support__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-support__faq-answer {
        padding: 0 15px;
    }
    
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px !important;
    }

    .page-support__resource-item img {
        height: auto; /* Allow height to adjust for smaller screens */
    }

    .page-support__responsible-features .page-support__card img {
         /* Adjust size for mobile */
    }
}