.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding to avoid double spacing with shared header */
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
}

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

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

.page-game-bai__hero-content {
    max-width: 900px;
    padding: 0 15px;
    color: #333333;
}

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

.page-game-bai__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555555;
}

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

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

.page-game-bai__btn-primary {
    background-color: #C30808; /* Màu đăng nhập/đăng ký */
    color: #FFFF00; /* Màu chữ đăng nhập/đăng ký */
    border: 2px solid #C30808;
}

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

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

.page-game-bai__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-game-bai__section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-game-bai__section:nth-of-type(even) {
    background-color: #f9f9f9;
}

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

.page-game-bai__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
}

.page-game-bai__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Why Choose Section */
.page-game-bai__why-choose .page-game-bai__text-block {
    margin-bottom: 60px;
}

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

.page-game-bai__feature-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-game-bai__feature-icon {
    width: 200px; /* Minimum size requirement */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

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

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

/* Featured Games Section */
.page-game-bai__featured-games {
    background-color: #f0f0f0;
}

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

.page-game-bai__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-game-bai__game-image {
    width: 100%;
    height: 220px; /* Consistent height for game images */
    object-fit: cover;
    display: block;
}

.page-game-bai__game-card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #017439;
    padding: 15px 20px 10px;
}

.page-game-bai__game-card-description {
    font-size: 0.9em;
    line-height: 1.6;
    color: #666666;
    padding: 0 20px 15px;
    flex-grow: 1;
}

.page-game-bai__btn-outline {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 20px 20px;
    border: 2px solid #017439;
    color: #017439;
    background-color: transparent;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
}

.page-game-bai__btn-outline:hover {
    background-color: #017439;
    color: #ffffff;
}

/* How To Play Section */
.page-game-bai__how-to-play {
    background-color: #ffffff;
}

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

.page-game-bai__step-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-bai__step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #017439;
    color: #ffffff;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
}

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

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

.page-game-bai__cta-buttons--centered {
    margin-top: 40px;
}

/* Promotions Section */
.page-game-bai__promotions {
    background-color: #f0f0f0;
}

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

.page-game-bai__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-game-bai__promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.page-game-bai__promo-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #017439;
    padding: 15px 20px 10px;
}

.page-game-bai__promo-description {
    font-size: 0.9em;
    line-height: 1.6;
    color: #666666;
    padding: 0 20px 15px;
    flex-grow: 1;
}

/* Tips Section */
.page-game-bai__tips {
    background-color: #ffffff;
}

.page-game-bai__tips-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 900px;
}

.page-game-bai__tip-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.05em;
    line-height: 1.6;
    color: #444444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-game-bai__tip-item strong {
    color: #017439;
}

/* App Download Section */
.page-game-bai__app-download {
    background-color: #017439;
    color: #ffffff;
}

.page-game-bai__app-download .page-game-bai__section-title {
    color: #ffffff;
}

.page-game-bai__app-download .page-game-bai__text-block {
    color: #e0e0e0;
}

.page-game-bai__app-download-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-game-bai__app-text {
    flex: 1;
    min-width: 300px;
}

.page-game-bai__app-benefits {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.page-game-bai__app-benefits li {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: #ffffff;
}

.page-game-bai__app-benefits li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FFFF00; /* Yellow checkmark for contrast */
}

.page-game-bai__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-bai__app-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

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

.page-game-bai__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #017439;
    cursor: pointer;
    background-color: #e6f7ed;
    border-bottom: 1px solid #d0e8d6;
    list-style: none; /* Remove default marker for details/summary */
}

.page-game-bai__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit browsers */
}

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
    border-bottom: 1px solid #017439;
}

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

.page-game-bai__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    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: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
    background-color: #ffffff;
}

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

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

/* Mobile responsive styles */
@media (max-width: 1024px) {
    .page-game-bai__hero-content {
        max-width: 768px;
    }
    .page-game-bai__features-grid,
    .page-game-bai__game-cards-grid,
    .page-game-bai__steps-list,
    .page-game-bai__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-game-bai__app-download-content {
        flex-direction: column;
        text-align: center;
    }
    .page-game-bai__app-text,
    .page-game-bai__app-image-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-game-bai__app-benefits {
        text-align: left;
    }
    .page-game-bai__app-image {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }
    .page-game-bai__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
        margin-bottom: 10px;
    }
    .page-game-bai__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .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 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Sections */
    .page-game-bai__section {
        padding: 40px 0;
    }
    .page-game-bai__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 20px;
    }
    .page-game-bai__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-game-bai__container {
        padding: 0 20px;
    }

    /* Why Choose Section */
    .page-game-bai__features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-game-bai__feature-item {
        padding: 25px;
    }
    .page-game-bai__feature-icon {
        width: 150px; /* Adjusted for mobile, still >200px equivalent area */
    }

    /* Featured Games Section */
    .page-game-bai__game-cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-game-bai__game-card-title {
        font-size: 1.2em;
    }
    .page-game-bai__btn-outline {
        max-width: calc(100% - 40px) !important;
    }

    /* How To Play Section */
    .page-game-bai__steps-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-game-bai__step-item {
        padding: 25px;
    }
    .page-game-bai__cta-buttons--centered {
        margin-top: 30px;
    }

    /* Promotions Section */
    .page-game-bai__promo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-game-bai__promo-title {
        font-size: 1.2em;
    }

    /* Tips Section */
    .page-game-bai__tips-list {
        margin-top: 30px;
    }
    .page-game-bai__tip-item {
        font-size: 1em;
        padding: 18px 20px;
    }

    /* App Download Section */
    .page-game-bai__app-download-content {
        gap: 30px;
    }
    .page-game-bai__app-benefits li {
        font-size: 1em;
    }

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

    /* Universal mobile image adaptation */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-game-bai__hero-image-wrapper,
    .page-game-bai__game-image,
    .page-game-bai__promo-image,
    .page-game-bai__app-image-wrapper,
    .page-game-bai__feature-icon,
    .page-game-bai__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-game-bai__section,
    .page-game-bai__card,
    .page-game-bai__container,
    .page-game-bai__feature-item,
    .page-game-bai__game-card,
    .page-game-bai__step-item,
    .page-game-bai__promo-card,
    .page-game-bai__app-download-content,
    .page-game-bai__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-game-bai__cta-buttons {
        flex-direction: column;
    }
}