.page-game-bai {
    color: #F3F8FF; /* Text Main */
    background-color: var(--deep-navy-color); /* Matches body background from shared.css */
}

.page-game-bai__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, not --header-offset */
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

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

.page-game-bai__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    padding-right: 20px;
}

.page-game-bai__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 20px;
}

.page-game-bai__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-game-bai__hero-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color */
    color: #F3F8FF; /* Text Main */
    border: 2px solid transparent;
}

.page-game-bai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-game-bai__btn-secondary {
    background: transparent;
    color: #F3F8FF; /* Text Main */
    border: 2px solid #2B73F6;
}

.page-game-bai__btn-secondary:hover {
    background: rgba(43, 115, 246, 0.1);
    transform: translateY(-2px);
}

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

.page-game-bai__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Section Titles and Descriptions */
.page-game-bai__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #F3F8FF; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
}

.page-game-bai__section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #AFC4E8; /* Text Secondary */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

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

.page-game-bai__feature-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;
    background-color: #10233F; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #244D84; /* Border color */
}

.page-game-bai__icon-box-media {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #F2C14E; /* Gold */
    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%;
    display: block;
}

.page-game-bai__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 15px;
}

.page-game-bai__feature-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #AFC4E8; /* Text Secondary */
}

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

.page-game-bai__tab-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 2px solid #1B3357; /* Divider */
    padding-bottom: 15px;
}

.page-game-bai__tab-button {
    background: transparent;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #AFC4E8; /* Text Secondary */
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.page-game-bai__tab-button:hover,
.page-game-bai__tab-button.is-active {
    color: #F3F8FF; /* Text Main */
    background-color: #1D5FD1; /* Auxiliary color */
    box-shadow: 0 4px 15px rgba(29, 95, 209, 0.4);
}

.page-game-bai__game-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page-game-bai__game-panel.is-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.page-game-bai__game-card {
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.page-game-bai__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-game-bai__game-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-game-bai__game-card-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
    padding: 0 15px;
}

.page-game-bai__game-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color */
    color: #F3F8FF; /* Text Main */
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin: 0 15px;
    box-sizing: border-box;
    max-width: calc(100% - 30px);
    white-space: normal;
    word-wrap: break-word;
}

.page-game-bai__game-card-button:hover {
    opacity: 0.9;
}

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

.page-game-bai__guide-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-game-bai__guide-text {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-game-bai__guide-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 25px;
}

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

.page-game-bai__guide-list li {
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border color */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
    color: #F3F8FF; /* Text Main */
    counter-increment: step-counter;
    position: relative;
    padding-left: 60px;
}

.page-game-bai__guide-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1D5FD1; /* Auxiliary color */
    color: #F3F8FF; /* Text Main */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.page-game-bai__guide-list strong {
    color: #F2C14E; /* Gold */
}

.page-game-bai__guide-cta {
    margin-top: 20px;
}

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

.page-game-bai__guide-visual {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-game-bai__promo-card {
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border color */
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-game-bai__promo-image {
    flex: 1 1 40%;
    min-width: 300px;
    height: auto;
    object-fit: cover;
}

.page-game-bai__promo-content {
    flex: 1 1 50%;
    min-width: 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-game-bai__promo-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 15px;
}

.page-game-bai__promo-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-game-bai__promo-date {
    font-size: 0.9rem;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 20px;
}

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

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

.page-game-bai__faq-item {
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #F3F8FF; /* Text Main */
    cursor: pointer;
    list-style: none; /* For <summary> */
    position: relative;
}

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

.page-game-bai__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #F2C14E; /* Gold */
    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: 1rem;
    line-height: 1.6;
    color: #AFC4E8; /* Text Secondary */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-answer {
    max-height: 500px; /* Sufficiently large for content */
    padding-top: 10px;
}

.page-game-bai__faq-cta {
    text-align: center;
    margin-top: 40px;
}

/* General Image Styling */
.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

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

    .page-game-bai__hero-content {
        padding-right: 0;
    }

    .page-game-bai__hero-image {
        order: -1; /* Image above text on smaller screens */
    }

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

    .page-game-bai__guide-content {
        flex-direction: column;
    }

    .page-game-bai__guide-image {
        order: -1; /* Image above text in guide */
    }

    .page-game-bai__promo-card {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Ensure small padding */
        padding-bottom: 40px;
    }

    .page-game-bai__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-game-bai__hero-description {
        font-size: 1rem;
    }

    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }

    .page-game-bai__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }

    .page-game-bai__content-area {
        padding: 30px 15px;
    }

    .page-game-bai__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 15px;
    }

    .page-game-bai__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    /* Module 1: Intro Section (Three-column round images) */
    .page-game-bai__feature-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-game-bai__icon-box-media {
        width: 180px;
        height: 180px;
        border-width: 3px;
    }

    .page-game-bai__feature-title {
        font-size: 1.3rem;
    }

    .page-game-bai__feature-text {
        font-size: 0.9rem;
    }

    /* Seven Tab Game Area */
    .page-game-bai__tab-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-bottom: 10px;
    }

    .page-game-bai__tab-button {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .page-game-bai__game-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-bai__game-card-image {
        height: 180px; /* Adjust height for mobile card images */
    }

    .page-game-bai__game-card-title {
        font-size: 1.2rem;
    }

    .page-game-bai__game-card-description {
        font-size: 0.9rem;
    }

    .page-game-bai__game-card-button {
        padding: 10px 15px;
        font-size: 0.95rem;
        margin: 0 15px;
        max-width: calc(100% - 30px) !important;
        width: calc(100% - 30px) !important;
    }

    /* Tutorial / Promo / Trust / FAQ / blog content modules */
    .page-game-bai__guide-content,
    .page-game-bai__promo-card {
        flex-direction: column;
        gap: 25px;
    }

    .page-game-bai__guide-text,
    .page-game-bai__guide-image,
    .page-game-bai__promo-image,
    .page-game-bai__promo-content {
        min-width: unset;
        flex: 1 1 100%;
        padding: 0 15px; /* Add padding for content within sections */
        box-sizing: border-box;
    }

    .page-game-bai__guide-visual {
        border-radius: 8px;
    }

    .page-game-bai__guide-list li {
        padding: 15px 15px 15px 50px;
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .page-game-bai__guide-list li::before {
        width: 25px;
        height: 25px;
        font-size: 1rem;
        left: 15px;
    }

    .page-game-bai__promo-title {
        font-size: 1.5rem;
    }

    .page-game-bai__promo-text {
        font-size: 0.95rem;
    }

    .page-game-bai__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-game-bai__faq-toggle {
        font-size: 1.2rem;
    }

    .page-game-bai__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* General Images and Containers */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-game-bai__section,
    .page-game-bai__card,
    .page-game-bai__container,
    .page-game-bai__hero-section,
    .page-game-bai__intro-section,
    .page-game-bai__game-tabs-section,
    .page-game-bai__guide-section,
    .page-game-bai__promo-section,
    .page-game-bai__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-bai__promo-card .page-game-bai__promo-image {
        padding: 0 !important; /* Remove specific padding for image within card */
    }
    .page-game-bai__promo-card .page-game-bai__promo-content {
        padding: 20px 15px !important; /* Adjust padding for content within card */
    }
}