/* Base Styles for page-game-bai */
.page-game-bai {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F3F8FF; /* Text Main on dark body background */
    background-color: #08162B; /* Deep Navy, matching the dark body background from shared.css */
}

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

.page-game-bai__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-game-bai__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #F3F8FF;
}

.page-game-bai__text-secondary {
    color: #AFC4E8; /* Text Secondary */
}

.page-game-bai__card {
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    color: #F3F8FF;
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

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

.page-game-bai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

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

.page-game-bai__btn-secondary:hover {
    background-color: #2B73F6;
    color: #F3F8FF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

.page-game-bai__btn-large {
    padding: 15px 35px;
    font-size: 1.2em;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 550px;
}

.page-game-bai__hero-image {
    width: 100%;
    max-height: 500px; /* Limit height for desktop */
    overflow: hidden;
}

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

.page-game-bai__hero-content {
    position: relative;
    z-index: 1;
    padding: 30px 15px;
    max-width: 900px;
    margin-top: 20px;
    background-color: rgba(8, 22, 43, 0.8); /* Deep Navy semi-transparent */
    border-radius: 15px;
}

.page-game-bai__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    font-weight: 900;
}

.page-game-bai__hero-description {
    font-size: 1.2em;
    color: #AFC4E8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Intro Section */
.page-game-bai__intro-section {
    padding: 60px 0;
    background-color: #08162B;
}

/* Featured Games Section */
.page-game-bai__featured-games {
    padding: 60px 0;
    background-color: #08162B;
}

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

.page-game-bai__game-card {
    text-align: center;
    justify-content: space-between; /* Push button to bottom */
}

.page-game-bai__game-card-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.page-game-bai__game-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-game-bai__game-card-title {
    font-size: 1.5em;
    color: #F2C14E; /* Gold */
    margin-bottom: 10px;
}

.page-game-bai__game-card-title a {
    color: #F2C14E;
    text-decoration: none;
}

.page-game-bai__game-card-title a:hover {
    text-decoration: underline;
}

.page-game-bai__game-card-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

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

.page-game-bai__benefits-section .page-game-bai__container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-game-bai__benefits-section .page-game-bai__content-wrapper,
.page-game-bai__benefits-section .page-game-bai__image-wrapper {
    flex: 1;
}

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

.page-game-bai__benefit-item {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #F3F8FF;
    position: relative;
    padding-left: 30px;
}

.page-game-bai__benefit-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #F2C14E; /* Gold */
}

.page-game-bai__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

/* How To Play Section */
.page-game-bai__how-to-play {
    padding: 60px 0;
    background-color: #08162B;
}

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

.page-game-bai__step-card {
    text-align: center;
    justify-content: space-between;
}

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

.page-game-bai__step-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-game-bai__download-cta {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #10233F; /* Card BG */
    border-radius: 10px;
    border: 1px solid #244D84;
}

.page-game-bai__download-cta .page-game-bai__text-block {
    margin-bottom: 20px;
}

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

.page-game-bai__promotions-section .page-game-bai__container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-game-bai__promotions-section .page-game-bai__content-wrapper,
.page-game-bai__promotions-section .page-game-bai__image-wrapper {
    flex: 1;
}

.page-game-bai__promotions-section .page-game-bai__section-title {
    text-align: left;
    color: #F3F8FF;
}

.page-game-bai__promotions-section .page-game-bai__text-block {
    color: #F3F8FF;
}

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

.page-game-bai__faq-list {
    margin-top: 40px;
    display: grid;
    gap: 20px;
}

.page-game-bai__faq-item {
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #F2C14E; /* Gold */
    border-bottom: 1px solid #1B3357; /* Divider */
}

.page-game-bai__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1);
}

.page-game-bai__faq-toggle {
    font-size: 1.5em;
    transition: transform 0.3s ease;
    color: #F3F8FF;
}

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

.page-game-bai__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: #AFC4E8;
}

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

.page-game-bai__faq-item summary {
    list-style: none;
}

/* CTA Section */
.page-game-bai__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #113B7A;
}

.page-game-bai__cta-section .page-game-bai__text-block {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

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

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

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

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

    /* HERO Section */
    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        min-height: auto;
    }

    .page-game-bai__hero-image {
        max-height: 300px; /* Adjust height for mobile */
    }

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

    .page-game-bai__hero-content {
        padding: 20px 15px !important;
        margin-top: 15px;
        border-radius: 10px;
    }

    .page-game-bai__main-title {
        font-size: 2em !important; /* Adjust H1 for mobile */
        margin-bottom: 15px !important;
    }

    .page-game-bai__hero-description {
        font-size: 1em !important;
        margin-bottom: 20px !important;
    }

    .page-game-bai__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary,
    .page-game-bai a[class*="button"],
    .page-game-bai a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        font-size: 1em !important;
    }

    .page-game-bai__btn-large {
        padding: 12px 25px !important;
        font-size: 1.1em !important;
    }

    /* Featured Games Grid */
    .page-game-bai__game-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page-game-bai__game-card-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Benefits Section */
    .page-game-bai__benefits-section .page-game-bai__container {
        flex-direction: column-reverse !important; /* Image below text */
        gap: 30px !important;
    }

    .page-game-bai__benefits-section .page-game-bai__section-title {
        text-align: center !important;
    }

    /* How To Play Section */
    .page-game-bai__steps-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Promotions Section */
    .page-game-bai__promotions-section .page-game-bai__container {
        flex-direction: column !important; /* Image above text */
        gap: 30px !important;
    }

    .page-game-bai__promotions-section .page-game-bai__section-title {
        text-align: center !important;
    }

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

    .page-game-bai__faq-answer {
        font-size: 0.95em !important;
        padding: 10px 20px 15px !important;
    }

    /* General Image & Container Responsiveness */
    .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__content-wrapper,
    .page-game-bai__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-game-bai__flex-reverse-mobile {
        flex-direction: column-reverse !important;
    }
    .page-game-bai__flex-mobile {
        flex-direction: column !important;
    }
}