.page-game-bai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main */
    background-color: #0D0E12; /* Background */
}

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

.page-game-bai__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #FFB04D; /* Glow */
    line-height: 1.2;
}

.page-game-bai__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF3E6; /* Text Main */
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared body padding-top */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%); /* Card BG to Background */
}

.page-game-bai__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px 16px;
}

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

.page-game-bai__hero-title {
    font-size: clamp(32px, 5vw, 48px); /* H1 font size with clamp */
    font-weight: 900;
    margin-bottom: 20px;
    color: #FFB04D; /* Glow */
    line-height: 1.2;
}

.page-game-bai__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #FFF3E6; /* Text Main */
    max-width: 600px;
}

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

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

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

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

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff;
    border: none;
}

.page-game-bai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

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

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

.page-game-bai__btn-link {
    background-color: transparent;
    color: #FFA53A; /* Aux color */
    border: 1px solid #FFA53A;
    padding: 10px 20px;
    font-size: 14px;
}

.page-game-bai__btn-link:hover {
    background-color: #FFA53A;
    color: #0D0E12; /* Background */
}

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

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

.page-game-bai__feature-item {
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background-color: #0D0E12; /* Background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid #A84F0C; /* Border */
}

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

.page-game-bai__icon-box-media {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FFA53A; /* Aux color */
    box-shadow: 0 0 15px rgba(255, 165, 58, 0.5);
}

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

.page-game-bai__feature-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FF8C1A; /* Main color */
}

.page-game-bai__feature-text {
    font-size: 16px;
    color: #FFF3E6; /* Text Main */
}

/* Popular Games Section */
.page-game-bai__popular-games-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background */
}

.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; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid #A84F0C; /* Border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-game-bai__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 140, 26, 0.3);
}

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

.page-game-bai__game-title {
    font-size: 22px;
    font-weight: bold;
    padding: 15px 20px 0;
    color: #FFB04D; /* Glow */
}

.page-game-bai__game-description {
    font-size: 15px;
    padding: 10px 20px;
    color: #FFF3E6; /* Text Main */
    flex-grow: 1;
}

.page-game-bai__game-card .page-game-bai__btn-link {
    margin: 15px 20px 20px;
    align-self: flex-start;
}

/* Benefits Section */
.page-game-bai__benefits-section {
    background-color: #17191F; /* Card BG */
    padding: 60px 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 {
    background-color: #0D0E12; /* Background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C; /* Border */
    transition: background-color 0.3s ease;
}

.page-game-bai__benefit-item:hover {
    background-color: #2a2c33;
}

.page-game-bai__benefit-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FF8C1A; /* Main color */
}

.page-game-bai__benefit-text {
    font-size: 16px;
    color: #FFF3E6; /* Text Main */
}

/* Guide Section */
.page-game-bai__guide-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background */
}

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

.page-game-bai__guide-step-item {
    background-color: #17191F; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C; /* Border */
}

.page-game-bai__guide-step-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFB04D; /* Glow */
}

.page-game-bai__guide-step-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: #FFF3E6; /* Text Main */
}

/* FAQ Section */
.page-game-bai__faq-section {
    background-color: #17191F; /* Card BG */
    padding: 60px 0;
}

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

.page-game-bai__faq-item {
    background-color: #0D0E12; /* Background */
    border: 1px solid #A84F0C; /* Border */
    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: 18px;
    font-weight: bold;
    color: #FF8C1A; /* Main color */
    cursor: pointer;
    list-style: none;
}

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

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

.page-game-bai__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: #FFB04D; /* Glow */
}

.page-game-bai__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: #FFF3E6; /* Text Main */
}

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

.page-game-bai__cta-section .page-game-bai__cta-buttons {
    justify-content: center;
    margin-top: 40px;
}

/* General Image styles */
.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-bai__hero-container {
        flex-direction: column;
        text-align: center;
    }

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

    .page-game-bai__hero-cta-buttons {
        justify-content: center;
    }

    .page-game-bai__features-grid,
    .page-game-bai__game-list,
    .page-game-bai__benefits-grid,
    .page-game-bai__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-game-bai__icon-box-media {
        width: 180px;
        height: 180px;
    }
}

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

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

    .page-game-bai__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

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

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

    .page-game-bai__hero-title {
        font-size: clamp(28px, 8vw, 38px);
        margin-bottom: 15px;
    }

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

    .page-game-bai__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to buttons container */
    }

    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary,
    .page-game-bai__btn-link,
    .page-game-bai a[class*="button"],
    .page-game-bai a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 15px;
    }

    /* Intro Section - Circular Images */
    .page-game-bai__features-grid {
        gap: 20px;
    }

    .page-game-bai__feature-item {
        padding: 15px;
        max-width: 100%;
    }

    .page-game-bai__icon-box-media {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }

    .page-game-bai__feature-title {
        font-size: 20px;
    }

    /* Popular Games Section */
    .page-game-bai__game-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-game-bai__game-title {
        font-size: 20px;
    }

    .page-game-bai__game-description {
        font-size: 14px;
    }

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

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

    .page-game-bai__benefit-title {
        font-size: 20px;
    }

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

    .page-game-bai__guide-step-item {
        padding: 20px;
    }

    .page-game-bai__guide-step-title {
        font-size: 22px;
    }

    /* FAQ Section */
    .page-game-bai__faq-list {
        margin-top: 30px;
    }

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

    .page-game-bai__faq-toggle {
        font-size: 20px;
    }

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

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

    .page-game-bai__cta-section .page-game-bai__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to buttons container */
    }

    /* General Image and Container Responsiveness */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

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

    .page-game-bai__section,
    .page-game-bai__card,
    .page-game-bai__container,
    .page-game-bai__hero-container,
    .page-game-bai__features-grid,
    .page-game-bai__game-list,
    .page-game-bai__benefits-grid,
    .page-game-bai__guide-steps {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}