:root {
    /* Custom colors */
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-faq {
    font-family: Arial, sans-serif;
    background-color: var(--color-background); /* Dark background */
    color: var(--color-text-main); /* Light text for dark background */
    line-height: 1.6;
}

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

.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Max height for hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for better text readability */
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    color: var(--color-text-main);
}

.page-faq__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-button {
    display: inline-block;
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-faq__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--color-divider);
}

.page-faq__section:last-of-type {
    border-bottom: none;
}

.page-faq__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-faq__text-block {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    text-align: justify;
}

.page-faq__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-list {
    background-color: var(--color-card-bg); /* Darker background for FAQ list */
    padding: 60px 0;
}

.page-faq__faq-category {
    margin-bottom: 40px;
}

.page-faq__category-title {
    font-size: clamp(1.5em, 2.5vw, 2.2em);
    color: var(--color-primary);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-divider);
    padding-bottom: 10px;
    text-align: center;
}

.page-faq__faq-item {
    background-color: var(--color-background); /* Slightly lighter than card-bg */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--color-text-main);
    background-color: var(--color-deep-green);
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: #0c5c38; /* Slightly lighter on hover */
}

.page-faq__faq-qtext {
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate the plus sign to indicate open */
}

/* For details tag, hide default marker */
.page-faq__faq-item summary {
    list-style: none;
}
.page-faq__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-faq__faq-answer {
    padding: 20px;
    padding-top: 0;
    font-size: 1em;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-divider);
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
}

.page-faq__faq-answer a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
    color: var(--color-gold);
}

.page-faq__game-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 15px;
    color: var(--color-text-secondary);
}

.page-faq__game-list li {
    margin-bottom: 8px;
}

.page-faq__game-list a {
    color: var(--color-secondary);
    text-decoration: none;
}

.page-faq__game-list a:hover {
    text-decoration: underline;
    color: var(--color-gold);
}

.page-faq__btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-faq__btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-main);
    border-color: var(--color-secondary);
}

.page-faq__cta-section {
    background-color: var(--color-card-bg);
    text-align: center;
    padding: 80px 0;
}

.page-faq__cta-section .page-faq__section-title {
    color: var(--color-gold);
}

.page-faq__cta-section .page-faq__description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-faq__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.page-faq__cta-button--primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
}

.page-faq__cta-button--secondary {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
}

.page-faq__cta-button--secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-main);
    border-color: var(--color-secondary);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        padding: 0 40px;
    }
    .page-faq__section-title {
        margin-bottom: 30px;
    }
    .page-faq__category-title {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-bottom: 40px;
    }
    .page-faq__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-faq__main-title {
        font-size: 2em;
    }
    .page-faq__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-faq__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-faq__section {
        padding: 40px 0;
    }
    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-faq__text-block {
        font-size: 0.95em;
    }
    .page-faq__category-title {
        font-size: 1.6em;
    }
    .page-faq__faq-question {
        padding: 15px;
        font-size: 1em;
    }
    .page-faq__faq-answer {
        padding: 15px;
        font-size: 0.95em;
    }
    .page-faq__button-group {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .page-faq__cta-section {
        padding: 60px 0;
    }

    /* Mobile image responsive adaptation */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure content doesn't spill */
    }

    .page-faq__cta-button,
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        /* Padding added to container, not button directly, to avoid double padding */
    }

    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        overflow: hidden !important; /* Ensure content doesn't spill */
    }
    .page-faq__cta-buttons {
        display: flex;
        flex-direction: column; /* Mobile vertical stacking */
    }

    /* Video section top padding, relying on body for header offset (no video on this page, but keeping for completeness) */
    .page-faq__video-section {
        padding-top: 10px !important; /* Small decorative padding */
    }
}