.page-game-bai {
    font-family: 'Arial', sans-serif;
    color: #FFF3E6; /* Main text color for dark background */
    background-color: #0D0E12; /* Overall page background */
}

.page-game-bai__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

/* --- Hero Section --- */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
    padding-bottom: 60px;
    background: linear-gradient(to right, #0D0E12, rgba(23, 25, 31, 0.8)); /* Subtle gradient for hero background */
}

.page-game-bai__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-game-bai__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
}

.page-game-bai__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: #FFB04D; /* Glow color for title */
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 176, 77, 0.5); /* Subtle glow effect */
}

.page-game-bai__hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #FFF3E6;
}

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

.page-game-bai__hero-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-game-bai__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* --- General Buttons --- */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    border: 2px solid #FFA53A;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-game-bai__btn-primary:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
    border-color: #FFB04D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-game-bai__btn-secondary {
    background: transparent;
    color: #FFA53A;
    border: 2px solid #FFA53A;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.2);
}

.page-game-bai__btn-secondary:hover {
    background: #FFA53A;
    color: #0D0E12;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.4);
}

.page-game-bai__btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    border: none;
    border-radius: 6px;
}

.page-game-bai__btn-small:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
    transform: translateY(-1px);
}

/* --- Section Titles & Text Blocks --- */
.page-game-bai__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #FFB04D;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 8px rgba(255, 176, 77, 0.3);
}

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

/* --- Intro Section --- */
.page-game-bai__intro-section {
    padding: 80px 0;
    background-color: #17191F; /* Card BG color */
}

.page-game-bai__intro-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-game-bai__feature-item {
    flex: 1 1 30%;
    min-width: 280px;
    text-align: center;
    background-color: #0D0E12;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-game-bai__icon-box-media {
    width: 200px; /* Fixed size for circular image */
    height: 200px; /* Fixed size for circular image */
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #FF8C1A;
    box-shadow: 0 0 15px rgba(255, 140, 26, 0.6);
}

.page-game-bai__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-game-bai__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFA53A;
    margin-bottom: 15px;
}

.page-game-bai__feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #FFF3E6;
}

/* --- Game Types Section --- */
.page-game-bai__game-types-section {
    padding: 80px 0;
}

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

.page-game-bai__game-card {
    background-color: #17191F;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-game-bai__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-game-bai__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-game-bai__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 20px 20px 10px;
}

.page-game-bai__card-title a {
    color: #FFA53A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-bai__card-title a:hover {
    color: #FFB04D;
    text-decoration: underline;
}

.page-game-bai__card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #FFF3E6;
    padding: 0 20px 20px;
    flex-grow: 1; /* Make description take available space */
}

.page-game-bai__game-card .page-game-bai__btn-small {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

.page-game-bai__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* --- Guide Section --- */
.page-game-bai__guide-section {
    padding: 80px 0;
    background-color: #17191F; /* Card BG color */
}

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

.page-game-bai__step-item {
    text-align: center;
    background-color: #0D0E12;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__step-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-game-bai__step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 25px;
    box-shadow: 0 0 15px rgba(255, 165, 58, 0.5);
}

.page-game-bai__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #FFA53A;
    margin-bottom: 15px;
}

.page-game-bai__step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #FFF3E6;
}

/* --- Benefits Section --- */
.page-game-bai__benefits-section {
    padding: 80px 0;
}

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

.page-game-bai__benefit-item {
    text-align: center;
    background-color: #17191F;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-game-bai__benefit-item img {
    max-width: 100%;
     /* Consistent height for benefit images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__benefit-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #FFA53A;
    margin-bottom: 15px;
}

.page-game-bai__benefit-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #FFF3E6;
}

/* --- FAQ Section --- */
.page-game-bai__faq-section {
    padding: 80px 0;
    background-color: #0D0E12; /* Darker background for contrast */
}

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

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

.page-game-bai__faq-item[open] {
    background-color: #1a1c24; /* Slightly lighter when open */
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #FFB04D;
    cursor: pointer;
    list-style: none; /* Hide default marker for details/summary */
    transition: color 0.3s ease;
}

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

.page-game-bai__faq-question:hover {
    color: #FFA53A;
}

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

.page-game-bai__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 20px;
    color: #FFA53A;
    transition: transform 0.3s ease;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X */
}

.page-game-bai__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: #FFF3E6;
}

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


/* --- Final CTA Section --- */
.page-game-bai__cta-final-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%);
}

.page-game-bai__cta-content {
    max-width: 800px;
}

.page-game-bai__cta-content .page-game-bai__section-title {
    margin-bottom: 25px;
}

.page-game-bai__cta-content .page-game-bai__text-block {
    margin-bottom: 40px;
}

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-game-bai__container {
        padding: 20px 15px;
    }

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

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

    /* HERO Section */
    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }

    .page-game-bai__hero-container {
        flex-direction: column;
        gap: 30px;
    }

    .page-game-bai__hero-content {
        text-align: center;
    }

    .page-game-bai__hero-title {
        font-size: 2.2rem;
        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;
    }

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

    /* Intro Section - Feature Items */
    .page-game-bai__intro-section {
        padding: 40px 0;
    }

    .page-game-bai__intro-features {
        flex-direction: column;
        gap: 20px;
    }

    .page-game-bai__feature-item {
        min-width: unset;
        width: 100%;
        padding: 25px;
    }

    .page-game-bai__icon-box-media {
        width: 150px; /* Smaller circular image for mobile */
        height: 150px; /* Smaller circular image for mobile */
        margin-bottom: 20px;
    }

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

    /* Game Types Section - Game Cards */
    .page-game-bai__game-types-section {
        padding: 40px 0;
    }

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

    .page-game-bai__game-card img {
         /* Adjust image height for mobile cards */
    }

    .page-game-bai__card-title {
        font-size: 1.25rem;
        margin: 15px 15px 8px;
    }

    .page-game-bai__card-description {
        font-size: 0.9rem;
        padding: 0 15px 15px;
    }

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

    /* Guide Section - Steps */
    .page-game-bai__guide-section {
        padding: 40px 0;
    }

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

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

    .page-game-bai__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

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

    /* Benefits Section - Grid */
    .page-game-bai__benefits-section {
        padding: 40px 0;
    }

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

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

    .page-game-bai__benefit-item img {
        
        margin-bottom: 20px;
    }

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

    /* FAQ Section */
    .page-game-bai__faq-section {
        padding: 40px 0;
    }

    .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;
    }

    /* Final CTA Section */
    .page-game-bai__cta-final-section {
        padding: 40px 0;
    }

    .page-game-bai__cta-content .page-game-bai__text-block {
        margin-bottom: 30px;
    }

    /* Universal image and container responsive styles */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !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__game-types-section,
    .page-game-bai__guide-section,
    .page-game-bai__benefits-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;
    }
}