/* style/faq.css */

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

/* Base styles for the page, ensuring contrast with dark body background */
.page-faq {
    background-color: var(--f168y-background); /* Explicitly set body background is #08160F */
    color: var(--f168y-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    font-size: 16px;
}

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

/* Hero Section */
.page-faq__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, not --header-offset */
    background-color: var(--f168y-deep-green); /* Example background for hero */
    position: relative;
    overflow: hidden;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-faq__hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-faq__main-title {
    color: var(--f168y-text-main);
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Using clamp as per instruction */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.page-faq__description {
    color: var(--f168y-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for responsive buttons */
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-faq__btn-primary {
    background: var(--f168y-button-gradient);
    color: var(--f168y-text-main); /* Light text for dark button */
    border: 2px solid transparent;
}

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

.page-faq__btn-secondary {
    background-color: transparent;
    color: var(--f168y-text-main); /* Light text for dark background */
    border: 2px solid var(--f168y-border);
}

.page-faq__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Content Section */
.page-faq__content-section {
    padding: 60px 0;
    background-color: var(--f168y-background);
    color: var(--f168y-text-main);
}

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

.page-faq__section-intro {
    color: var(--f168y-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-faq__faq-category-title {
    color: var(--f168y-gold); /* Using gold for category titles */
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--f168y-divider);
    padding-bottom: 10px;
}

.page-faq__faq-item {
    background-color: var(--f168y-card-bg); /* Dark card background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--f168y-border);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--f168y-text-main);
    user-select: none;
    transition: background-color 0.3s ease;
}

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

/* 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-qtext {
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    margin-left: 15px;
    color: var(--f168y-glow); /* Using glow for the toggle icon */
}

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--f168y-text-secondary);
    font-size: 1rem;
}

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

.page-faq__faq-answer ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
}

.page-faq__faq-answer li {
    margin-bottom: 5px;
}

.page-faq__inline-link {
    color: var(--f168y-glow); /* Using glow for inline links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-faq__inline-link:hover {
    color: var(--f168y-gold);
}

.page-faq__game-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.page-faq__game-list li a {
    background-color: var(--f168y-deep-green);
    color: var(--f168y-text-main);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

.page-faq__game-list li a:hover {
    background-color: var(--f168y-border);
}

/* CTA Bottom Section */
.page-faq__cta-bottom {
    background-color: var(--f168y-deep-green); /* Darker green for CTA */
    padding: 80px 20px;
    text-align: center;
}

.page-faq__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__cta-title {
    color: var(--f168y-text-main);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.page-faq__cta-description {
    color: var(--f168y-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-faq__hero-section {
        padding-bottom: 40px;
    }
    .page-faq__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-faq__description {
        font-size: 1rem;
    }
    .page-faq__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    .page-faq__faq-question {
        font-size: 1.05rem;
    }
    .page-faq__faq-category-title {
        font-size: 1.3rem;
    }
    .page-faq__cta-bottom {
        padding: 60px 20px;
    }
    .page-faq__cta-title {
        font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-faq__container {
        padding: 0 15px;
    }

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

    /* All containers with images/videos/buttons must adapt */
    .page-faq__hero-image-wrapper,
    .page-faq__content-section,
    .page-faq__cta-bottom,
    .page-faq__cta-content,
    .page-faq__faq-item,
    .page-faq__faq-list,
    .page-faq__cta-buttons,
    .page-faq__game-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific top padding for first section */
    .page-faq__hero-section {
        padding-top: 10px !important; /* body handles header-offset */
        padding-bottom: 30px;
    }

    /* Buttons responsiveness */
    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px; /* Adjust padding for buttons within their container */
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-faq__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .page-faq__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 15px;
    }
    .page-faq__section-intro {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    .page-faq__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-faq__faq-answer {
        font-size: 0.9rem;
        padding: 0 20px 15px 20px;
    }
    .page-faq__faq-category-title {
        font-size: 1.2rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-faq__cta-bottom {
        padding: 40px 15px;
    }
    .page-faq__cta-title {
        font-size: clamp(1.5rem, 6.5vw, 2.2rem);
        margin-bottom: 15px;
    }
    .page-faq__cta-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .page-faq__game-list {
        flex-direction: column; /* Stack game links vertically */
    }
    .page-faq__game-list li a {
        width: 100%; /* Full width for each game link */
        text-align: center;
    }
}