.page-game-bai {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

/* --- Global Container & Section Styles --- */
.page-game-bai__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-game-bai__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-game-bai__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #555555;
}

/* --- Buttons --- */
.page-game-bai__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-game-bai__cta-buttons--center {
    justify-content: center;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 300px; /* Limit button width */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-game-bai__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-game-bai__btn-primary:hover {
    background-color: #1e87b7; /* Darker shade of primary */
    border-color: #1e87b7;
}

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

.page-game-bai__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b7;
    border-color: #1e87b7;
}

/* --- Image base styles (for content images, not specific hero/feature) --- */
.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HERO Section --- */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding for header offset */
    padding-bottom: 60px;
    background-color: #f8f8f8; /* Light background for contrast */
}

.page-game-bai__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 16px;
    flex-wrap: wrap;
}

.page-game-bai__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
}

.page-game-bai__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 800;
    color: #26A9E0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-game-bai__hero-description {
    font-size: 1.15em;
    color: #555555;
    margin-bottom: 30px;
}

.page-game-bai__hero-image {
    flex: 1 1 40%;
    min-width: 280px;
    text-align: center;
}

.page-game-bai__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* --- Intro Section --- */
.page-game-bai__intro-section {
    padding: 60px 0;
}

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

.page-game-bai__feature-item {
    text-align: center;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-game-bai__icon-box-media {
    width: 180px; /* Adjusted for non-homepage, smaller round images */
    height: 180px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #26A9E0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-game-bai__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Ensure image itself is round */
    display: block;
}

.page-game-bai__feature-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-game-bai__feature-description {
    font-size: 1em;
    color: #666666;
}

/* --- Game Types Section --- */
.page-game-bai__game-types-section {
    padding: 60px 0;
}

.page-game-bai__dark-section {
    background-color: #26A9E0; /* Primary brand color for dark section */
    color: #FFFFFF;
}

.page-game-bai__dark-section .page-game-bai__section-title,
.page-game-bai__dark-section .page-game-bai__text-block,
.page-game-bai__dark-section .page-game-bai__game-card-title a {
    color: #FFFFFF;
}

.page-game-bai__dark-section .page-game-bai__game-card-description {
    color: #f0f0f0;
}

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

.page-game-bai__game-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-game-bai__game-card:hover {
    transform: translateY(-5px);
}

.page-game-bai__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistent card image display */
    object-fit: cover;
    display: block;
}

.page-game-bai__game-card-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 15px 15px 10px;
}

.page-game-bai__game-card-title a {
    text-decoration: none;
    color: #FFFFFF; /* White text for dark section */
    transition: color 0.3s ease;
}

.page-game-bai__game-card-title a:hover {
    color: #f0f0f0;
}

.page-game-bai__game-card-description {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 15px 20px;
}

/* --- Guide Section --- */
.page-game-bai__guide-section {
    padding: 60px 0;
}

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

.page-game-bai__guide-step {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page-game-bai__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: #26A9E0;
    color: #FFFFFF;
    font-size: 2em;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: inline-block;
}

.page-game-bai__step-title {
    font-size: 1.6em;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-game-bai__step-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
}

/* --- Why Choose Section --- */
.page-game-bai__why-choose-section {
    padding: 60px 0;
}

.page-game-bai__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-game-bai__benefits-list li {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-game-bai__benefits-list li::before {
    content: '✅';
    font-size: 1.2em;
    line-height: 1;
}

.page-game-bai__benefit-highlight {
    color: #FFFFFF;
    font-weight: 700;
}

/* --- FAQ Section --- */
.page-game-bai__faq-section {
    padding: 60px 0;
}

.page-game-bai__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-game-bai__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
    border-bottom: 1px solid #e0e0e0;
}

.page-game-bai__faq-qtext {
    flex-grow: 1;
}

.page-game-bai__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    transform: rotate(45deg);
}

.page-game-bai__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
    background-color: #FFFFFF;
}

/* Remove default details marker */
.page-game-bai__faq-item summary {
    list-style: none;
}

.page-game-bai__faq-item summary::-webkit-details-marker {
    display: none;
}

/* --- Final CTA Section --- */
.page-game-bai__cta-final-section {
    padding: 60px 0;
}

.page-game-bai__cta-final-section .page-game-bai__container {
    padding: 60px 30px;
    border-radius: 15px;
    text-align: center;
}

/* --- Responsive Styles (Mobile First) --- */
@media (max-width: 1024px) {
    .page-game-bai__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .page-game-bai__hero-content {
        text-align: center;
        flex: 1 1 100%;
    }

    .page-game-bai__main-title {
        font-size: 2.5em;
    }

    .page-game-bai__hero-image {
        flex: 1 1 100%;
        margin-top: 30px;
    }

    .page-game-bai__section-title {
        font-size: 2em;
    }

    .page-game-bai__intro-section .page-game-bai__container,
    .page-game-bai__game-types-section .page-game-bai__container,
    .page-game-bai__guide-section .page-game-bai__container,
    .page-game-bai__why-choose-section .page-game-bai__container,
    .page-game-bai__faq-section .page-game-bai__container,
    .page-game-bai__cta-final-section .page-game-bai__container {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-game-bai__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px !important;
    }
    .page-game-bai__main-title {
        font-size: 2em !important; /* Smaller for mobile */
    }
    .page-game-bai__hero-description {
        font-size: 1em !important;
    }
    .page-game-bai__hero-container {
        padding: 20px 15px !important;
    }

    /* Buttons */
    .page-game-bai__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px !important; /* Add padding to container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Module 1: Three-column round images */
    .page-game-bai__icon-box-media {
        width: 150px !important; /* Smaller square */
        height: 150px !important;
        border-width: 3px !important;
    }
    .page-game-bai__icon-box-media img {
        height: 100% !important; /* Fill parent, object-fit:cover already set */
        width: 100% !important;
    }

    /* Game Types Grid */
    .page-game-bai__game-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-game-bai__game-card img {
         /* Adjust card image height for mobile */
    }

    /* Guide Section */
    .page-game-bai__guide-steps {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .page-game-bai__guide-step {
        padding: 25px !important;
    }
    .page-game-bai__step-icon {
        width: 50px !important;
        height: 50px !important;
        line-height: 50px !important;
        font-size: 1.8em !important;
    }
    .page-game-bai__step-title {
        font-size: 1.4em !important;
    }

    /* Why Choose Section */
    .page-game-bai__benefits-list li {
        font-size: 1em !important;
        padding: 12px 15px !important;
    }

    /* FAQ Section */
    .page-game-bai__faq-question {
        padding: 15px 20px !important;
        font-size: 1.1em !important;
    }
    .page-game-bai__faq-answer {
        padding: 0 20px 15px !important;
        font-size: 0.95em !important;
    }

    /* General Content Area & Images */
    .page-game-bai__container {
        padding: 20px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-game-bai__section-title {
        font-size: 1.8em !important;
    }

    .page-game-bai__text-block {
        font-size: 1em !important;
    }

    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-game-bai__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-game-bai__guide-step img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Final CTA Section */
    .page-game-bai__cta-final-section .page-game-bai__container {
        padding: 40px 15px !important;
    }
}