.page-game-bai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default background from shared.css var(--secondary-color) */
}

.page-game-bai__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    background-color: #0a0a0a; /* Dark background for hero to make image and text pop */
    color: #ffffff;
    text-align: center;
    padding-bottom: 40px;
}

.page-game-bai__hero-image {
    margin-bottom: 20px;
}

.page-game-bai__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for aesthetic */
}

.page-game-bai__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom font color for H1 in hero */
}

.page-game-bai__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    max-width: 100%;
}

/* Custom button colors for Login/Register as per prompt */
.page-game-bai__hero-section .page-game-bai__btn-primary { /* Đăng Ký Ngay */
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-game-bai__hero-section .page-game-bai__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-game-bai__hero-section .page-game-bai__btn-secondary { /* Đăng Nhập */
    background-color: transparent;
    color: #C30808;
    border: 2px solid #C30808;
}

.page-game-bai__hero-section .page-game-bai__btn-secondary:hover {
    background-color: #C30808;
    color: #FFFF00;
}

/* General primary/secondary buttons outside hero that don't imply login/register */
.page-game-bai__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-game-bai__btn-primary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

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

.page-game-bai__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #017439;
}


.page-game-bai__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-game-bai__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-game-bai__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 8px;
}

.page-game-bai__image-centered {
    display: block;
    margin: 0 auto 30px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Dark Section */
.page-game-bai__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 60px 0;
}

.page-game-bai__dark-section .page-game-bai__section-title {
    color: #ffffff;
}

.page-game-bai__dark-section .page-game-bai__text-block {
    color: #f0f0f0;
}

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

/* Benefits Section */
.page-game-bai__benefits-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

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

.page-game-bai__benefit-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-game-bai__benefit-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

.page-game-bai__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #017439; /* Brand color for card titles */
}

.page-game-bai__card-description {
    font-size: 1em;
    color: #555555;
}

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

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

.page-game-bai__game-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for dark section */
    border-radius: 12px;
    padding: 25px;
    color: #ffffff;
}

.page-game-bai__game-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFF00; /* Yellow for game titles */
}

.page-game-bai__game-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #f0f0f0;
}

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

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

.page-game-bai__step-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: #333333;
}

.page-game-bai__step-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #017439;
}

.page-game-bai__step-description {
    font-size: 1em;
    color: #555555;
}

.page-game-bai__step-description a {
    color: #017439;
    text-decoration: underline;
}

.page-game-bai__step-description a:hover {
    color: #005f2e;
}

.page-game-bai__cta-buttons--center {
    justify-content: center;
    margin-top: 40px;
}

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

.page-game-bai__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-game-bai__strategy-list li {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-game-bai__strategy-item-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-game-bai__strategy-list li p {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
}

/* Promotions Section */
.page-game-bai__promotions-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-game-bai__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-game-bai__promo-list li {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-game-bai__promo-item-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #017439;
}

.page-game-bai__promo-list li p {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

.page-game-bai__promo-list li a {
    color: #017439;
    text-decoration: underline;
}

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

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

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

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    color: #017439;
    transition: background-color 0.3s ease;
}

.page-game-bai__faq-question:hover {
    background-color: #e0e0e0;
}

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

.page-game-bai__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-game-bai__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
}

.page-game-bai__faq-answer p {
    padding-top: 15px;
    padding-bottom: 15px;
    color: #555555;
}

.page-game-bai__faq-item.active .page-game-bai__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    padding: 0 25px 15px 25px;
}

.page-game-bai__faq-item.active .page-game-bai__faq-toggle {
    content: '-';
}

.page-game-bai__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-game-bai__faq-answer a:hover {
    color: #005f2e;
}

/* Conclusion Section */
.page-game-bai__conclusion-section {
    padding: 60px 0;
    text-align: center;
}

/* General image styling for content sections */
.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

    .page-game-bai__main-title {
        font-size: 2em !important; /* Force smaller H1 on mobile */
        margin-bottom: 10px;
    }

    .page-game-bai__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .page-game-bai__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }

    .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;
        padding-right: 15px;
    }

    /* 长文区 - General content sections */
    .page-game-bai__section-title {
        font-size: 1.8em !important; /* Adjust section titles */
        margin-bottom: 30px;
        padding-top: 30px;
    }

    .page-game-bai__container {
        padding: 0 15px;
    }

    .page-game-bai__text-block {
        font-size: 0.95em;
    }

    /* 通用图片与容器 */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-game-bai__benefits-grid,
    .page-game-bai__game-list,
    .page-game-bai__guide-steps {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-game-bai__benefit-card,
    .page-game-bai__game-item,
    .page-game-bai__step-item,
    .page-game-bai__strategy-list li,
    .page-game-bai__promo-list li {
        padding: 20px;
        border-radius: 8px;
    }

    .page-game-bai__card-title,
    .page-game-bai__game-title,
    .page-game-bai__step-title,
    .page-game-bai__strategy-item-title,
    .page-game-bai__promo-item-title {
        font-size: 1.2em;
    }

    /* FAQ Section */
    .page-game-bai__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-game-bai__faq-answer {
        padding: 0 20px;
    }

    .page-game-bai__faq-item.active .page-game-bai__faq-answer {
        padding: 0 20px 10px 20px;
    }
    
    /* Ensure all content containers are constrained */
    .page-game-bai__section,
    .page-game-bai__card,
    .page-game-bai__container,
    .page-game-bai__cta-buttons,
    .page-game-bai__button-group,
    .page-game-bai__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}