/* style/faq.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --card-bg: #11271B;
    --page-bg: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --light-bg-contrast: #ffffff; /* For content section contrast */
    --dark-text-contrast: #333333; /* For text on light background */
}

.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark body */
    background-color: var(--page-bg); /* Ensure main background is dark */
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background: var(--page-bg);
    color: var(--text-main);
    text-align: center;
    overflow: hidden;
}

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

.page-faq__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-faq__hero-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-faq__hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-faq__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
}

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.page-faq__large-btn {
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-faq__content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--light-bg-contrast); /* Explicitly light background for contrast */
    color: var(--dark-text-contrast); /* Dark text on light background */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: -80px; /* Overlap with hero for visual flow */
    position: relative;
    z-index: 20;
}

.page-faq__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-faq__section-text {
    font-size: 1.05em;
    margin-bottom: 30px;
    color: var(--dark-text-contrast);
}

.page-faq__sub-title {
    font-size: 1.8em;
    color: var(--deep-green-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-faq__text-block {
    margin-bottom: 20px;
}

.page-faq__text-block p {
    margin-bottom: 15px;
    color: var(--dark-text-contrast);
}

.page-faq__text-block p:last-child {
    margin-bottom: 0;
}

.page-faq__margin-top {
    margin-top: 20px;
}

.page-faq__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-faq__game-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
}

.page-faq__game-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: var(--dark-text-contrast);
}

.page-faq__game-list li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.page-faq__button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-faq__cta-section {
    background: var(--page-bg);
    color: var(--text-main);
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
}

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

.page-faq__cta-section .page-faq__section-text {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

/* FAQ Accordion Styling */
.page-faq__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-main);
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary native styling */
}

.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

.page-faq__faq-question:hover {
    background-color: var(--deep-green-color);
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: var(--deep-green-color);
    border-bottom-color: transparent;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg);
    color: var(--gold-color);
}

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

.page-faq__faq-answer p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

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

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

    .page-faq__hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .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-left: 15px;
        padding-right: 15px;
    }

    .page-faq__content-section {
        padding: 30px 15px;
        margin-top: -40px; /* Adjust overlap for mobile */
    }

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

    .page-faq__sub-title {
        font-size: 1.5em;
        margin-top: 30px;
    }

    .page-faq__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important;
    }

    .page-faq__game-list {
        padding-left: 15px;
    }

    .page-faq__button-group {
        flex-direction: column;
        gap: 10px;
    }

    .page-faq__cta-section {
        padding: 50px 15px;
    }

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

    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-faq__faq-answer {
        padding: 15px 20px;
    }
}

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

    .page-faq__section-title {
        font-size: 1.5em;
    }

    .page-faq__sub-title {
        font-size: 1.3em;
    }
}

/* Ensure all images meet min size requirement */
.page-faq img {
    min-width: 200px;
    min-height: 200px;
}

/* Override specific styles for content section's p tags to use dark-text-contrast */
.page-faq__content-section p {
    color: var(--dark-text-contrast);
}

/* For the FAQ items themselves, which have card-bg, text should be light */
.page-faq__faq-item .page-faq__faq-answer p {
    color: var(--text-secondary);
}