.page-game-bai {
    font-family: 'Arial', sans-serif;
    color: #F3F8FF; /* Text Main */
    background-color: var(--deep-navy); /* Body background from shared.css */
}

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

.page-game-bai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    margin-bottom: 40px;
    color: #F3F8FF;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
}

.page-game-bai__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.page-game-bai__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-game-bai__hero-content {
    padding: 40px 20px;
    background: linear-gradient(180deg, #10233F 0%, #08162B 100%); /* Card BG */
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-top: -10px;
    position: relative;
    z-index: 1;
}

.page-game-bai__main-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #F2C14E; /* Gold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #AFC4E8; /* Text Secondary */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__cta-buttons {
    display: flex;
    justify-content: center;
    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 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-game-bai__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Gold */
    border: 2px solid #F2C14E; /* Gold */
}

.page-game-bai__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    color: #F3F8FF; /* Text Main */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__section {
    padding: 60px 0;
}

.page-game-bai__section:nth-of-type(odd) {
    background-color: var(--deep-navy);
}

.page-game-bai__section:nth-of-type(even) {
    background-color: #08162B; /* Deep Navy */
}

.page-game-bai__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2C14E; /* Gold */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-game-bai__content-area {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    line-height: 1.7;
    color: #F3F8FF; /* Text Main */
}

.page-game-bai__light-bg {
    background-color: #10233F; /* Card BG */
    color: #F3F8FF;
}

.page-game-bai__dark-section {
    background-color: #08162B; /* Deep Navy */
    color: #F3F8FF;
}

.page-game-bai__content-area p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #AFC4E8; /* Text Secondary */
}

.page-game-bai__content-area strong {
    color: #F2C14E; /* Gold */
}

.page-game-bai__games-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 */
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-game-bai__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-game-bai__card-title {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F2C14E; /* Gold */
}

.page-game-bai__card-description {
    font-size: 0.95em;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 100px; /* Ensure consistent card height */
}

.page-game-bai__card-button {
    width: auto;
    margin-top: auto;
}

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

.page-game-bai__step-item {
    background-color: #08162B; /* Deep Navy */
    border: 1px solid #244D84; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-game-bai__step-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #F2C14E; /* Gold */
}

.page-game-bai__step-item p {
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-game-bai__step-button {
    width: 100%;
    max-width: 200px;
}

.page-game-bai__promotion-list,
.page-game-bai__strategy-list,
.page-game-bai__advantages-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.page-game-bai__promotion-list li,
.page-game-bai__strategy-list li,
.page-game-bai__advantages-list li {
    background-color: #10233F; /* Card BG */
    border: 1px solid #1B3357; /* Divider */
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.05em;
    color: #AFC4E8; /* Text Secondary */
    display: flex;
    align-items: flex-start;
}

.page-game-bai__promotion-list li::before,
.page-game-bai__advantages-list li::before {
    content: '✅';
    margin-right: 10px;
    font-size: 1.2em;
    line-height: 1;
    color: #4FA8FF; /* Glow */
}

.page-game-bai__strategy-list li::before {
    content: counter(strategy-counter) ". ";
    counter-increment: strategy-counter;
    margin-right: 10px;
    font-weight: bold;
    color: #F2C14E; /* Gold */
    font-size: 1.2em;
}

.page-game-bai__strategy-list {
    counter-reset: strategy-counter;
}

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

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

details.page-game-bai__faq-item summary.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #F3F8FF; /* Text Main */
    font-weight: 600;
}

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

details.page-game-bai__faq-item summary.page-game-bai__faq-question:hover {
    background: #1B3357; /* Divider */
}

.page-game-bai__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.5;
    text-align: left;
    color: #F3F8FF;
}

.page-game-bai__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #F2C14E; /* Gold */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-game-bai__faq-item .page-game-bai__faq-answer {
    padding: 0 20px 20px;
    background: #08162B; /* Deep Navy */
    border-radius: 0 0 5px 5px;
    color: #AFC4E8; /* Text Secondary */
    font-size: 1em;
    line-height: 1.6;
}

.page-game-bai__faq-answer p {
    color: #AFC4E8;
    margin-bottom: 0;
}

.page-game-bai__cta-bottom {
    text-align: center;
    padding: 80px 0;
}

.page-game-bai__cta-bottom .page-game-bai__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #F2C14E; /* Gold */
}

.page-game-bai__cta-bottom .page-game-bai__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #AFC4E8; /* Text Secondary */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-bai__hero-content {
        padding: 30px 20px;
    }

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

    .page-game-bai__description {
        font-size: 1em;
    }

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

    .page-game-bai__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-game-bai__card-title {
        font-size: 1.4em;
    }

    .page-game-bai__card-description {
        min-height: 90px;
    }

    .page-game-bai__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-game-bai__step-title {
        font-size: 1.3em;
    }

    .page-game-bai__promotion-list li,
    .page-game-bai__strategy-list li,
    .page-game-bai__advantages-list li {
        font-size: 1em;
        padding: 12px 15px;
    }

    .page-game-bai__faq-qtext {
        font-size: 1em;
    }
}

@media (max-width: 849px) {
    .page-game-bai__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
    }
}

@media (max-width: 768px) {
    .page-game-bai__hero-section {
        margin-bottom: 30px;
    }

    .page-game-bai__hero-content {
        padding: 25px 15px;
    }

    .page-game-bai__main-title {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .page-game-bai__description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

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

    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-game-bai__section {
        padding: 40px 0;
    }

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

    .page-game-bai__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .page-game-bai__content-area {
        padding: 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-game-bai__content-area p {
        font-size: 0.95em;
    }

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

    .page-game-bai__game-card {
        padding: 20px;
    }

    .page-game-bai__game-image {
        height: 180px;
    }

    .page-game-bai__card-title {
        font-size: 1.3em;
    }

    .page-game-bai__card-description {
        font-size: 0.9em;
        min-height: auto;
    }

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

    .page-game-bai__step-item {
        padding: 25px;
    }

    .page-game-bai__step-title {
        font-size: 1.2em;
    }

    .page-game-bai__promotion-list li,
    .page-game-bai__strategy-list li,
    .page-game-bai__advantages-list li {
        font-size: 0.95em;
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .page-game-bai__promotion-list li::before,
    .page-game-bai__advantages-list li::before,
    .page-game-bai__strategy-list li::before {
        margin-bottom: 5px;
    }

    details.page-game-bai__faq-item summary.page-game-bai__faq-question {
        padding: 15px;
    }

    .page-game-bai__faq-qtext {
        font-size: 1em;
    }

    .page-game-bai__faq-toggle {
        font-size: 1.5em;
        width: 24px;
        margin-left: 10px;
    }

    details.page-game-bai__faq-item .page-game-bai__faq-answer {
        padding: 0 15px 15px;
    }

    .page-game-bai__cta-bottom {
        padding: 60px 0;
    }

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

    .page-game-bai__cta-bottom .page-game-bai__description {
        font-size: 1em;
    }

    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-game-bai__hero-image-wrapper,
    .page-game-bai__popular-games,
    .page-game-bai__how-to-play,
    .page-game-bai__promotions,
    .page-game-bai__tips-strategies,
    .page-game-bai__why-choose-uc8,
    .page-game-bai__faq-section,
    .page-game-bai__cta-bottom {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}