/* General styles for the FAQ page */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F3F8FF; /* Text Main - light text on dark body */
    background-color: var(--deep-navy); /* From shared.css, should be #08162B */
}

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

.page-faq__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-faq__section-description {
    font-size: 1.1em;
    color: #AFC4E8; /* Text Secondary */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-faq__hero-section {
    display: flex;
    flex-direction: column; /* Image on top, content below on mobile */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #08162B; /* Deep Navy */
    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: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-faq__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-faq__hero-description {
    font-size: 1.2em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* Buttons */
a.page-faq__btn-primary,
a.page-faq__btn-secondary,
a.page-faq__faq-btn,
a.page-faq__game-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

a.page-faq__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border: none;
}

a.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 0 15px rgba(79, 168, 255, 0.6); /* Glow */
}

a.page-faq__btn-secondary {
    background: #10233F; /* Card BG */
    color: #AFC4E8; /* Text Secondary */
    border: 1px solid #244D84; /* Border */
}

a.page-faq__btn-secondary:hover {
    background: #1B3357; /* Divider */
    color: #F3F8FF; /* Text Main */
    border-color: #4FA8FF; /* Glow */
}

/* About Section */
.page-faq__about-section {
    padding: 60px 0;
    background-color: #08162B; /* Deep Navy */
}

.page-faq__about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq__about-item {
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(79, 168, 255, 0.4); /* Glow */
}

.page-faq__about-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-faq__about-item-title {
    font-size: 1.5em;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-faq__about-item-text {
    color: #AFC4E8; /* Text Secondary */
    font-size: 0.95em;
}

.page-faq__read-more {
    text-align: center;
    margin-top: 50px;
}


/* FAQ Section */
.page-faq__faq-section {
    padding: 60px 0;
    background-color: #08162B; /* Deep Navy */
}

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

.page-faq__faq-item {
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    box-shadow: 0 0 15px rgba(79, 168, 255, 0.4); /* Glow */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    color: #F3F8FF; /* Text Main */
    font-weight: bold;
    cursor: pointer;
    background-color: #113B7A; /* Main Color */
    border-bottom: 1px solid #1B3357; /* Divider */
    position: relative;
    list-style: none; /* Hide default marker */
}

/* Hide default details marker */
.page-faq__faq-item summary::-webkit-details-marker,
.page-faq__faq-item summary::marker {
    display: none;
    content: "";
}

.page-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: #F2C14E; /* Gold */
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-faq__faq-answer {
    padding: 25px;
    font-size: 1em;
    color: #AFC4E8; /* Text Secondary */
    background-color: #10233F; /* Card BG */
}

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

a.page-faq__faq-btn {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9em;
    margin-top: 10px;
}

a.page-faq__faq-btn:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 0 10px rgba(79, 168, 255, 0.5); /* Glow */
}

.page-faq__game-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

a.page-faq__game-btn {
    background-color: #1B3357; /* Divider */
    color: #AFC4E8; /* Text Secondary */
    border: 1px solid #244D84; /* Border */
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
}

a.page-faq__game-btn:hover {
    background-color: #113B7A; /* Main Color */
    color: #F3F8FF; /* Text Main */
    border-color: #4FA8FF; /* Glow */
}


/* CTA Section */
.page-faq__cta-section {
    padding: 80px 0;
    background-color: #08162B; /* Deep Navy */
}

.page-faq__cta-container {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border */
    border-radius: 10px;
    padding: 40px;
}

.page-faq__cta-text-content {
    flex: 1;
}

.page-faq__cta-title {
    font-size: 2.2em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-faq__cta-description {
    font-size: 1.1em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-faq__cta-image-wrapper {
    flex-shrink: 0;
    width: 400px; /* Fixed width for desktop */
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.page-faq__cta-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .page-faq__container {
        padding: 15px;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__hero-title {
        font-size: clamp(2em, 4vw, 3em);
    }
    .page-faq__cta-container {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    .page-faq__cta-image-wrapper {
        width: 100%;
        margin-top: 30px;
    }
    .page-faq__about-image {
        height: 180px;
    }
}


@media (max-width: 768px) {
    /* HERO Section */
    .page-faq__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px !important;
    }
    .page-faq__hero-content {
        order: 2; /* Content below image */
        padding: 0 15px !important;
    }
    .page-faq__hero-image-wrapper {
        order: 1; /* Image on top */
        margin-bottom: 20px !important;
    }
    .page-faq__hero-title {
        font-size: 2em !important;
    }
    .page-faq__hero-description {
        font-size: 1em !important;
    }
    .page-faq__hero-cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box !important;
    }
    a.page-faq__btn-primary,
    a.page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
    }

    /* General Images and Containers */
    .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,
    .page-faq__about-item,
    .page-faq__faq-item,
    .page-faq__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-faq__about-image {
        height: auto !important; /* Allow height to be auto for mobile */
        max-height: 250px !important; /* Cap height to prevent overly tall images */
        object-fit: cover !important;
    }

    /* Other Content Modules (About, FAQ, CTA) */
    .page-faq__section-title {
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }
    .page-faq__section-description {
        font-size: 0.95em !important;
        margin-bottom: 30px !important;
    }
    .page-faq__about-section,
    .page-faq__faq-section,
    .page-faq__cta-section {
        padding: 40px 0 !important;
    }
    .page-faq__about-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-faq__about-item {
        padding: 25px !important;
    }
    .page-faq__about-item-title {
        font-size: 1.3em !important;
    }
    .page-faq__faq-question {
        font-size: 1.1em !important;
        padding: 18px 20px !important;
    }
    .page-faq__faq-answer {
        padding: 20px !important;
        font-size: 0.95em !important;
    }
    .page-faq__game-links {
        flex-direction: column !important;
        gap: 8px !important;
    }
    a.page-faq__game-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px !important;
    }

    /* CTA Section */
    .page-faq__cta-container {
        flex-direction: column !important;
        gap: 25px !important;
        padding: 30px 20px !important;
    }
    .page-faq__cta-title {
        font-size: 1.8em !important;
    }
    .page-faq__cta-description {
        font-size: 0.95em !important;
    }
    .page-faq__cta-image-wrapper {
        width: 100% !important;
        margin-top: 20px !important;
    }
}