/* style/faq.css */

/* Base styling for the FAQ page content */
.page-faq {
    color: #333333; /* Dark text on light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000000; /* Dark background for hero content area if image is transparent or has gaps */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px; /* Minimum height for hero */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.7; /* Slightly dim the background image for text readability */
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    color: #FFFFFF; /* Light text on dark/dimmed image background */
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark overlay for better text contrast */
    border-radius: 8px;
    margin: 20px;
}

.page-faq__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #FCBC45; /* Highlight with login button color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.page-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #F0F0F0;
}

.page-faq__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-faq__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.page-faq__button--register {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-faq__button--register:hover {
    background-color: #FCBC45;
    color: #000000;
    border-color: #FCBC45;
}

.page-faq__button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-faq__button--login:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

/* Main Content Area */
.page-faq__sections-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-faq__section-nav {
    flex: 0 0 250px; /* Fixed width for navigation */
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    align-self: flex-start; /* Stick to the top */
    position: sticky;
    top: calc(var(--header-offset, 120px) + 20px); /* Stick below header with some margin */
    max-height: calc(100vh - var(--header-offset, 120px) - 40px); /* Limit height to viewport */
    overflow-y: auto; /* Enable scrolling for long nav */
}

.page-faq__section-nav-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
    border-bottom: 2px solid #FCBC45;
    padding-bottom: 10px;
}

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

.page-faq__section-nav-list li {
    margin-bottom: 10px;
}

.page-faq__section-nav-link {
    display: block;
    padding: 8px 10px;
    color: #333333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.page-faq__section-nav-link:hover,
.page-faq__section-nav-link.active {
    background-color: #FCBC45;
    color: #000000;
}

.page-faq__accordion-container {
    flex-grow: 1; /* Take remaining space */
}

.page-faq__main-heading {
    font-size: 2.5em;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
}

.page-faq__intro-text {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
}

.page-faq__category-section {
    margin-bottom: 40px;
    padding-top: 20px; /* Padding for anchor links */
}

.page-faq__category-title {
    font-size: 2em;
    color: #000000;
    margin-bottom: 25px;
    border-bottom: 1px solid #FCBC45;
    padding-bottom: 10px;
}

.page-faq__accordion-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.page-faq__accordion-summary {
    display: block;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    position: relative;
    user-select: none;
    background-color: #fefefe;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.page-faq__accordion-summary:hover {
    background-color: #FCBC45;
    color: #000000;
}

.page-faq__accordion-summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform 0.2s ease;
}

.page-faq__accordion-item[open] .page-faq__accordion-summary::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg);
}

.page-faq__accordion-content {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: #333333;
    border-top: 1px solid #eee;
}

.page-faq__accordion-content p {
    margin-bottom: 15px;
}

.page-faq__accordion-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-faq__accordion-content ol {
    list-style-type: decimal;
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-faq__accordion-content li {
    margin-bottom: 5px;
}

.page-faq__accordion-content a {
    color: #000000;
    text-decoration: underline;
    font-weight: bold;
}

.page-faq__accordion-content a:hover {
    color: #FCBC45;
}

.page-faq__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    /* Enforce minimum size for content images */
    min-width: 200px;
    min-height: 200px;
}

/* Call to Action Section */
.page-faq__cta-section {
    background-color: #000000; /* Dark background for CTA */
    color: #FFFFFF;
    text-align: center;
    padding: 60px 20px;
    border-radius: 8px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.page-faq__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Dim background image */
    z-index: 1;
}

.page-faq__cta-title {
    position: relative;
    z-index: 2;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FCBC45;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.page-faq__cta-description {
    position: relative;
    z-index: 2;
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #F0F0F0;
}

.page-faq__cta-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-faq__button--contact {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-faq__button--contact:hover {
    background-color: #FCBC45;
    color: #000000;
    border-color: #FCBC45;
}

.page-faq__button--register-alt {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-faq__button--register-alt:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__sections-wrapper {
        flex-direction: column;
    }

    .page-faq__section-nav {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .page-faq__hero-title {
        font-size: 2.2em;
    }

    .page-faq__main-heading {
        font-size: 2em;
    }

    .page-faq__category-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-title {
        font-size: 1.8em;
    }

    .page-faq__hero-description {
        font-size: 1em;
    }

    .page-faq__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-faq__button {
        width: 80%;
        max-width: 300px;
    }

    .page-faq__main-heading {
        font-size: 1.8em;
    }

    .page-faq__category-title {
        font-size: 1.6em;
    }

    .page-faq__accordion-summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-faq__accordion-summary::after {
        right: 20px;
    }

    .page-faq__accordion-content {
        padding: 10px 20px 20px;
    }

    .page-faq__cta-title {
        font-size: 2em;
    }

    .page-faq__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__cta-actions .page-faq__button {
        width: 80%;
        max-width: 300px;
    }

    /* Mobile overflow prevention for images within content area */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
    }
    /* Ensure content area does not cause horizontal scroll */
    .page-faq {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 1.5em;
    }
    .page-faq__hero-description {
        font-size: 0.9em;
    }
    .page-faq__button {
        padding: 10px 20px;
        font-size: 1em;
    }
    .page-faq__main-heading {
        font-size: 1.5em;
    }
    .page-faq__category-title {
        font-size: 1.4em;
    }
    .page-faq__accordion-summary {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-faq__accordion-summary::after {
        right: 15px;
        font-size: 1.2em;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
    .page-faq__cta-description {
        font-size: 0.9em;
    }
}

/* Image specific rules to ensure minimum size and no filter */
.page-faq img:not(.shared-header__logo, .shared-footer__payment-icon, .shared-footer__social-icon, .shared-footer__game-provider-icon) {
    min-width: 200px;
    min-height: 200px;
    filter: none !important;
}