.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    position: relative;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
}

.page-game-bai__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for aesthetic */
    min-width: 200px;
    min-height: 200px;
}

.page-game-bai__hero-content {
    position: relative; /* Changed from absolute to relative to respect "image above text" rule */
    padding: 20px;
    max-width: 900px;
    margin: 20px auto 0 auto; /* Margin to separate from image */
    background: rgba(1, 116, 57, 0.8); /* Semi-transparent brand color background for text */
    border-radius: 10px;
}

.page-game-bai__hero-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-size: clamp(2rem, 5vw, 2.8rem); /* Use clamp for H1 as allowed */
}

.page-game-bai__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-game-bai__hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping for buttons */
}

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

.page-game-bai__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-game-bai__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.page-game-bai__btn-outline {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
    padding: 8px 15px;
    font-size: 0.9rem;
}

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

.page-game-bai__btn-center {
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 300px;
    width: 100%;
}

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

.page-game-bai__section-title {
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 15px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.3;
}

.page-game-bai__section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333333;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-game-bai__intro-section,
.page-game-bai__games-section,
.page-game-bai__strategy-section,
.page-game-bai__promo-section,
.page-game-bai__why-e88-section,
.page-game-bai__faq-section,
.page-game-bai__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-game-bai__dark-section {
    background-color: #017439;
    color: #FFFFFF;
}

.page-game-bai__dark-section .page-game-bai__section-title {
    color: #FFFFFF;
}

.page-game-bai__dark-section .page-game-bai__section-description {
    color: #f0f0f0;
}

.page-game-bai__light-bg {
    background-color: #FFFFFF; /* Explicitly white for light background */
    color: #333333;
}

.page-game-bai__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-game-bai__game-grid,
.page-game-bai__promo-cards,
.page-game-bai__advantages-grid,
.page-game-bai__tips-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: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-game-bai__game-card-image,
.page-game-bai__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency in cards */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-game-bai__game-card-title,
.page-game-bai__promo-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #017439;
    padding: 15px 15px 5px 15px;
    line-height: 1.4;
}

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

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

.page-game-bai__game-card-text,
.page-game-bai__promo-card-text {
    font-size: 0.95rem;
    color: #555555;
    padding: 0 15px 15px 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.page-game-bai__game-card .page-game-bai__btn-outline,
.page-game-bai__promo-card .page-game-bai__btn-outline {
    margin: 0 15px 15px 15px;
    align-self: flex-start;
}

.page-game-bai__tip-item,
.page-game-bai__advantage-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-bai__tip-title,
.page-game-bai__advantage-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
}

.page-game-bai__tip-text,
.page-game-bai__advantage-text {
    font-size: 1rem;
    color: #444444;
    line-height: 1.6;
}

.page-game-bai__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-game-bai__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    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;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For <summary> */
    user-select: none;
}

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

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
    border-bottom-color: transparent;
}

.page-game-bai__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439;
}

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

.page-game-bai__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    background-color: #f9f9f9;
}

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

.page-game-bai__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-game-bai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping for buttons */
}

/* General image styling for content area */
.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Global min image size */
    min-height: 200px; /* Global min image size */
    object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-game-bai__hero-section {
        padding-top: 10px;
    }

    .page-game-bai__hero-content {
        margin: 10px auto 0 auto;
        padding: 15px;
    }

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

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

    .page-game-bai__hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

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

    .page-game-bai__intro-section,
    .page-game-bai__games-section,
    .page-game-bai__strategy-section,
    .page-game-bai__promo-section,
    .page-game-bai__why-e88-section,
    .page-game-bai__faq-section,
    .page-game-bai__cta-section {
        padding: 40px 0;
    }

    .page-game-bai__game-grid,
    .page-game-bai__promo-cards,
    .page-game-bai__advantages-grid,
    .page-game-bai__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

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

    .page-game-bai__game-card-title,
    .page-game-bai__promo-card-title {
        font-size: 1.2rem;
        padding: 10px 15px 5px 15px;
    }

    .page-game-bai__game-card-text,
    .page-game-bai__promo-card-text {
        font-size: 0.9rem;
        padding: 0 15px 10px 15px;
    }

    .page-game-bai__game-card .page-game-bai__btn-outline,
    .page-game-bai__promo-card .page-game-bai__btn-outline {
        margin: 0 15px 15px 15px;
        width: calc(100% - 30px);
    }

    .page-game-bai__tip-item,
    .page-game-bai__advantage-item {
        padding: 20px;
    }

    .page-game-bai__tip-title,
    .page-game-bai__advantage-title {
        font-size: 1.15rem;
    }

    .page-game-bai__tip-text,
    .page-game-bai__advantage-text {
        font-size: 0.95rem;
    }

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

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

    .page-game-bai__cta-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
    }

    .page-game-bai__cta-buttons .page-game-bai__btn-primary,
    .page-game-bai__cta-buttons .page-game-bai__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-game-bai__section,
    .page-game-bai__card,
    .page-game-bai__container,
    .page-game-bai__game-grid,
    .page-game-bai__promo-cards,
    .page-game-bai__advantages-grid,
    .page-game-bai__tips-grid,
    .page-game-bai__faq-list,
    .page-game-bai__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
}