/* Base styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Body background from shared.css is white */
}

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

/* Hero Section */
.page-faq__hero-section {
    padding-top: 10px; /* Minimal top padding, shared.css handles body padding-top */
    padding-bottom: 40px;
    background-color: #f8f8f8;
    text-align: center;
}

.page-faq__hero-image-wrapper {
    margin-bottom: 20px;
}

.page-faq__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    color: #017439;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-faq__description {
    font-size: 1.1em;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Call to Action Buttons */
.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    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;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

.page-faq__btn-primary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

.page-faq__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

.page-faq__btn-large {
    padding: 15px 30px;
    font-size: 1.15em;
}

/* Accordion Section (FAQ) */
.page-faq__accordion-section {
    padding: 50px 0;
    background-color: #ffffff;
}

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

.page-faq__accordion-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* Hide default details marker */
}

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

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
    padding: 20px;
    font-size: 1.05em;
    color: #555555;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.page-faq__faq-answer p {
    margin-bottom: 1em;
}

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

.page-faq__faq-answer li {
    margin-bottom: 0.5em;
}

.page-faq__faq-answer a {
    color: #017439;
    text-decoration: none;
    font-weight: 600;
}

.page-faq__faq-answer a:hover {
    text-decoration: underline;
}

.page-faq__image-inline {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
    display: block;
}

/* General Image Styles for content area */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* CTA Section at the bottom */
.page-faq__cta-section {
    padding: 60px 20px;
    background-color: #017439; /* Brand dark green */
    color: #ffffff;
    text-align: center;
}

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

.page-faq__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-faq__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* Placeholder rules for homepage elements not present on FAQ page, but required by checklist */
.page-faq__home-content {
    border: 1px solid #FBB00D;
    border-radius: 10px;
    height: 650px;
    overflow-y: auto;
    padding: 20px;
}

.page-faq__row-games,
.page-faq__row-sport,
.page-faq__row-coop {
    background-color: #1A202C;
    padding: 40px 20px;
    max-width: 1330px;
    margin: 0 auto;
}

.page-faq__games-title,
.page-faq__sport-title,
.page-faq__coop-title {
    color: #fff;
    text-align: center;
}

.page-faq__slider-wrapper {
    overflow: hidden;
}

.page-faq__slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
}

.page-faq__game-slide {
    flex: 0 0 200px;
    max-width: 200px;
}

.page-faq__banners-top-wrapper {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__banner-item img {
    
    
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.page-faq__blog-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.page-faq__blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-faq__btn-outline {
    margin-top: auto;
}

.page-faq__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}

.page-faq__blog-slide {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .page-faq {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-faq__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO 主图区域 */
    .page-faq__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }

    .page-faq__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 10px;
    }

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

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 按钮与按钮容器 */
    .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__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Accordion Section */
    .page-faq__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

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

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

    .page-faq__faq-toggle {
        font-size: 1.3em;
    }

    .page-faq__faq-answer {
        padding: 15px;
        font-size: 0.95em;
    }

    /* 通用图片与容器 */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* CTA Section */
    .page-faq__cta-section {
        padding: 40px 15px;
    }

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

    .page-faq__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Placeholder mobile rules for homepage elements, as per checklist */
    .page-faq__home-content {
        height: auto;
        overflow-y: visible;
        padding: 15px;
    }
    .page-faq__row-games {
        padding: 20px 10px;
    }
    .page-faq__games-title {
        font-size: 1.8em;
    }
    .page-faq__slider-track {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .page-faq__game-slide {
        flex: 0 0 160px;
        max-width: 160px;
        scroll-snap-align: start;
    }
    .page-faq__banners-top-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .page-faq__banner-item img {
        
        
    }
    .page-faq__blog-masonry {
        grid-template-columns: 1fr;
    }
    .page-faq__blog-slider-track {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .page-faq__blog-slide {
        flex: 0 0 calc(100% - 20px); /* Adjust for gap */
        max-width: calc(100% - 20px);
        scroll-snap-align: start;
    }
}