/* style/faq.css */
/* Base styles for the FAQ page content */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Rely on body background */
}

/* Hero Section */
.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 as body handles --header-offset */
    text-align: center;
    background-color: #0a0a0a; /* Ensure a dark background for this section */
    overflow: hidden;
    box-sizing: border-box;
}

.page-faq__hero-section .page-faq__container {
    position: relative;
    z-index: 2; /* Ensure text is above image if any overlap */
    max-width: 900px;
    margin-bottom: 30px;
    width: 100%; /* Ensure container takes full width on desktop too */
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); /* Responsive H1 font size */
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-faq__description {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-tertiary,
.page-faq__btn-game {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap for buttons */
    word-wrap: break-word; /* Allow text wrap for buttons */
}

.page-faq__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-faq__btn-primary:hover {
    background-color: #1a8cc2;
    border-color: #1a8cc2;
}

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

.page-faq__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Ensure image is behind text */
    opacity: 0.2; /* Subtle background image */
    filter: none; /* No CSS filter */
}

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #1a1a1a; /* Darker background for content sections */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff; /* Light text for dark background */
    box-sizing: border-box;
}

.page-faq__section-title {
    font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
    color: #26A9E0; /* Brand color for titles */
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.page-faq__intro-text {
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 50px;
    color: #e0e0e0;
}

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

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-item[open] {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    list-style: none; /* For details/summary */
    position: relative;
    user-select: none;
}

.page-faq__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

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

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #26A9E0;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar effect */
}

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.7;
}

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

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

.page-faq__image-content {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    filter: none; /* No CSS filter */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-faq__btn-tertiary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin-top: 15px;
    width: auto;
    max-width: 100%;
}

.page-faq__btn-tertiary:hover {
    background-color: #1a8cc2;
    border-color: #1a8cc2;
}

.page-faq__game-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.page-faq__btn-game {
    background-color: rgba(255, 255, 255, 0.1);
    color: #26A9E0;
    border: 1px solid #26A9E0;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.page-faq__btn-game:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Call to Action Section */
.page-faq__cta-section {
    background-color: #0a0a0a; /* Dark background */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
    box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-faq__main-title {
        font-size: clamp(1.8rem, 6vw + 1rem, 2.5rem);
    }

    .page-faq__description {
        font-size: 1rem;
    }

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

    .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;
        padding: 12px 20px;
        font-size: 0.95rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__hero-section,
    .page-faq__content-area,
    .page-faq__cta-section,
    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        flex-wrap: wrap !important; /* For button groups */
    }
    
    .page-faq__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-faq__hero-image,
    .page-faq__image-content,
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none; /* No CSS filter */
    }

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

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

    .page-faq__btn-tertiary,
    .page-faq__btn-game {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__game-links {
        flex-direction: column;
    }
}