.page-game-bai {
    font-family: Arial, sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

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

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

.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: #08160F;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-game-bai__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-game-bai__hero-content {
    padding: 0 20px 60px;
    max-width: 900px;
    z-index: 1;
}

.page-game-bai__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

.page-game-bai__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-game-bai__section-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #F2FFF6; /* Text Main */
}

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

.page-game-bai__dark-section {
    background-color: #11271B; /* Card BG */
}

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

.page-game-bai__game-card, .page-game-bai__promo-card {
    background-color: #0A4B2C; /* Deep Green */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.page-game-bai__game-card-image, .page-game-bai__promo-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #2E7A4E;
}

.page-game-bai__game-card-title, .page-game-bai__promo-card-title {
    font-size: 1.4rem;
    color: #F2C14E; /* Gold */
    padding: 15px 20px 10px;
    margin: 0;
    font-weight: bold;
}

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

.page-game-bai__game-card .page-game-bai__btn-primary, .page-game-bai__promo-card .page-game-bai__btn-primary {
    margin: 0 20px 20px;
    align-self: flex-start;
    width: auto;
}

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

.page-game-bai__feature-item {
    background-color: #0A4B2C; /* Deep Green */
    border: 1px solid #2E7A4E;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-game-bai__feature-item:hover {
    transform: translateY(-5px);
}

.page-game-bai__feature-title {
    font-size: 1.5rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-game-bai__all-promos-cta {
    text-align: center;
    margin-top: 50px;
}

.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-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.page-game-bai__step-icon {
    font-size: 2.5rem;
    color: #F2C14E; /* Gold */
    font-weight: bold;
    margin-bottom: 15px;
}

.page-game-bai__step-title {
    font-size: 1.4rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-game-bai__step-description {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.6;
}

.page-game-bai__get-started-cta-buttons, .page-game-bai__cta-final-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

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

.page-game-bai__faq-item {
    background-color: #0A4B2C; /* Deep Green */
    border: 1px solid #2E7A4E;
    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.15rem;
    color: #F2FFF6; /* Text Main */
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

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

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

.page-game-bai__faq-toggle {
    font-size: 1.8rem;
    color: #F2C14E; /* Gold */
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.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;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.6;
    border-top: 1px solid #1E3A2A; /* Divider */
    margin-top: -1px; /* Overlap border with summary */
}

.page-game-bai__btn-primary, .page-game-bai__btn-secondary {
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff; /* White text for contrast */
    border: none;
}

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

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

.page-game-bai__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .page-game-bai__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

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

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

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

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

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

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

    .page-game-bai__container {
        padding: 0 10px; /* Smaller padding for mobile */
    }

    .page-game-bai__hero-section {
        padding-top: 10px;
    }

    .page-game-bai__hero-image-wrapper {
        max-height: 400px;
    }

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

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

    .page-game-bai__hero-title {
        font-size: 2.2rem; /* Adjusted for mobile */
        margin-bottom: 15px;
    }

    .page-game-bai__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-game-bai__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }

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

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

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

    .page-game-bai__game-cards-grid, .page-game-bai__promo-cards-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 25px;
    }

    .page-game-bai__game-card-image, .page-game-bai__promo-card-image {
        height: 180px; /* Adjust image height for mobile cards */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-game-bai__game-card-title, .page-game-bai__promo-card-title {
        font-size: 1.25rem;
        padding: 12px 18px 8px;
    }

    .page-game-bai__game-card-description, .page-game-bai__promo-card-description {
        font-size: 0.9rem;
        padding: 0 18px 12px;
    }

    .page-game-bai__game-card .page-game-bai__btn-primary, .page-game-bai__promo-card .page-game-bai__btn-primary {
        margin: 0 18px 18px;
        width: calc(100% - 36px);
    }

    .page-game-bai__feature-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

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

    .page-game-bai__feature-description {
        font-size: 0.95rem;
    }

    .page-game-bai__all-promos-cta {
        margin-top: 40px;
    }

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

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

    .page-game-bai__step-icon {
        font-size: 2rem;
    }

    .page-game-bai__step-title {
        font-size: 1.25rem;
    }

    .page-game-bai__step-description {
        font-size: 0.95rem;
    }

    .page-game-bai__get-started-cta-buttons, .page-game-bai__cta-final-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

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

    /* General image and container rules for mobile */
    .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__featured-games-section, .page-game-bai__why-choose-section, .page-game-bai__promotions-section, .page-game-bai__get-started-section, .page-game-bai__faq-section, .page-game-bai__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-bai__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-game-bai__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-game-bai__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure no horizontal scroll */
    .page-game-bai {
        overflow-x: hidden;
    }
}