/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    color: #ffffff;
    background-color: #000000; /* Fallback dark background */
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.5); /* Darken image for text readability, not changing color */
}

.page-faq__hero-section .page-faq__container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-faq__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
}

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

/* CTA Buttons */
.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 10px;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.page-faq__btn-primary:hover {
    background-color: #1e87b3; /* Darker shade for hover */
    transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.page-faq__btn-link {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: bold;
}

.page-faq__btn-link:hover {
    color: #1e87b3;
}

/* Content Area */
.page-faq__content-area {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for main content */
    color: #333333; /* Dark text for light background */
}

.page-faq__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-faq__intro-text {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ List */
.page-faq__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: #f0f0f0;
}

.page-faq__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    flex-grow: 1;
    color: #333333;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #26A9E0;
    color: #ffffff;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg);
    background-color: #1e87b3;
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding to match question */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
    color: #555555;
    font-size: 1em;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px; /* Expanded padding */
}

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

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

.page-faq__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.page-faq__game-links .page-faq__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Contact Promo Section */
.page-faq__contact-promo {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-faq__contact-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-faq__contact-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.8em;
    }
    .page-faq__description {
        font-size: 1.2em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__faq-question {
        font-size: 1.1em;
    }
}

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

    .page-faq__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-faq__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-faq__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-faq__cta-button {
        padding: 12px 25px;
        margin: 5px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__hero-section .page-faq__container {
        padding: 0 15px;
    }

    .page-faq__content-area {
        padding: 40px 0;
    }

    .page-faq__content-area .page-faq__container {
        padding: 0 15px;
    }

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

    .page-faq__intro-text {
        font-size: 1em;
        margin-bottom: 40px;
    }

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

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

    .page-faq__faq-question h3 {
        font-size: 1em;
    }

    .page-faq__faq-toggle {
        width: 25px;
        height: 25px;
        font-size: 1.3em;
    }

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

    .page-faq__faq-answer p {
        font-size: 0.95em;
    }

    .page-faq__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-faq__game-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .page-faq__game-links .page-faq__btn-secondary {
        width: 100%; /* Make game links full width on mobile */
        text-align: center;
    }

    .page-faq__contact-promo {
        padding: 60px 15px;
    }

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

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

    /* Ensure all content containers are responsive */
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__faq-list,
    .page-faq__game-links {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by specific sections or items */
    }
}