.page-game-bai {
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Main text color */
    background-color: #0A0A0A; /* Page background color */
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    background-color: #0A0A0A;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    box-sizing: border-box;
}

.page-game-bai__hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    gap: 40px;
    box-sizing: border-box;
}

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

.page-game-bai__main-title {
    font-size: 2.8em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFD36B; /* Auxiliary color for title for contrast */
    max-width: 600px;
}

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

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for light button background */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

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

.page-game-bai__btn-secondary {
    background: #111111; /* Card BG for secondary button */
    color: #FFD36B; /* Auxiliary color for text */
    border: 2px solid #F2C14E; /* Main color for border */
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-game-bai__btn-secondary:hover {
    background: #F2C14E;
    color: #111111;
    border-color: #FFD36B;
    transform: translateY(-2px);
}

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

.page-game-bai__hero-side-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
}

/* General Container & Section Styles */
.page-game-bai__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    width: 100%;
}

.page-game-bai__section-title {
    font-size: 2.2em;
    color: #FFD36B;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-game-bai__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #FFF6D6;
}

/* Intro Section (Feature Grid) */
.page-game-bai__intro-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #0A0A0A;
}

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

.page-game-bai__feature-item {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
    background-color: #111111; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border color */
    box-sizing: border-box;
}

.page-game-bai__icon-box-media {
    width: 160px; /* Smaller for intro */
    height: 160px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #F2C14E; /* Main color border */
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.6); /* Glow */
}

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

.page-game-bai__feature-title {
    font-size: 1.5em;
    color: #FFD36B;
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Game Types Section (Game Grid) */
.page-game-bai__game-types-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #0A0A0A;
}

.page-game-bai__game-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.page-game-bai__game-card {
    flex: 1 1 calc(25% - 22.5px); /* 4 cards per row */
    min-width: 280px;
    background-color: #111111; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-game-bai__game-card:hover {
    transform: translateY(-5px);
}

.page-game-bai__game-media {
    width: 100%;
    height: 180px; /* Fixed height for image area */
    overflow: hidden;
}

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

.page-game-bai__game-card .page-game-bai__game-title {
    font-size: 1.4em;
    color: #FFD36B;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-game-bai__game-card .page-game-bai__game-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #FFF6D6;
    padding: 0 20px 20px 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-game-bai__game-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
    padding: 12px 0;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-bai__game-btn:hover {
    opacity: 0.9;
}

/* Trial Section */
.page-game-bai__trial-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #0A0A0A;
}

.page-game-bai__game-iframe-wrapper {
    background-color: #111111; /* Card BG */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12;
    margin-bottom: 40px;
    overflow: hidden; /* Ensure iframe stays within bounds */
}

.page-game-bai__game-trial-frame {
    border: none;
    width: 100%;
    height: 600px;
    display: block;
}

.page-game-bai__cta-center {
    text-align: center;
}

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

.page-game-bai__guide-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.page-game-bai__guide-item {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
    background-color: #111111; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12;
    box-sizing: border-box;
    position: relative;
    padding-top: 80px; /* Space for icon */
}

.page-game-bai__guide-icon {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.8); /* Glow */
}

.page-game-bai__guide-title {
    font-size: 1.5em;
    color: #FFD36B;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-bai__guide-description {
    font-size: 1em;
    line-height: 1.6;
    color: #FFF6D6;
}

/* FAQ Section */
.page-game-bai__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #0A0A0A;
}

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

.page-game-bai__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #FFD36B;
    cursor: pointer;
    background-color: #111111;
    list-style: none; /* For details/summary */
    position: relative;
}

.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: 1.5em;
    margin-left: 20px;
    transition: transform 0.3s ease;
    color: #F2C14E;
}

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

.page-game-bai__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #FFF6D6;
}

/* --- Responsive Design --- */

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

@media (max-width: 1024px) {
    .page-game-bai__hero-section {
        min-height: 450px;
    }
    .page-game-bai__main-title {
        font-size: 2.5em;
    }
    .page-game-bai__section-title {
        font-size: 2em;
    }
    .page-game-bai__game-card {
        flex: 1 1 calc(33.333% - 20px); /* 3 cards per row */
    }
    .page-game-bai__guide-item {
        flex: 1 1 calc(50% - 15px); /* 2 items per row */
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body for header offset */
        padding-bottom: 40px !important;
        min-height: auto !important;
    }
    .page-game-bai__hero-container {
        flex-direction: column-reverse !important; /* Image on top, content below */
        padding: 30px 15px !important;
        gap: 30px !important;
    }
    .page-game-bai__hero-content {
        text-align: center !important;
        flex: 1 1 100% !important;
    }
    .page-game-bai__main-title {
        font-size: 2em !important;
        margin-bottom: 15px !important;
        max-width: 100% !important;
    }
    .page-game-bai__description {
        font-size: 1em !important;
        margin-bottom: 25px !important;
    }
    .page-game-bai__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }
    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-game-bai__hero-image {
        flex: 1 1 100% !important;
    }
    .page-game-bai__hero-side-image {
        max-width: 90% !important;
        width: 100% !important;
    }

    /* General Container & Section Styles */
    .page-game-bai__container {
        padding: 30px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-game-bai__section-title {
        font-size: 1.8em !important;
        margin-bottom: 25px !important;
    }
    .page-game-bai__text-block {
        font-size: 0.95em !important;
        margin-bottom: 40px !important;
        max-width: 100% !important;
    }

    /* Intro Section (Feature Grid) */
    .page-game-bai__intro-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .page-game-bai__features-grid {
        flex-direction: column !important;
    }
    .page-game-bai__feature-item {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    .page-game-bai__icon-box-media {
        width: 140px !important; /* Keep square */
        height: 140px !important; /* Keep square */
        margin-bottom: 20px !important;
    }
    .page-game-bai__feature-title {
        font-size: 1.3em !important;
    }

    /* Game Types Section (Game Grid) */
    .page-game-bai__game-types-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .page-game-bai__game-grid {
        flex-direction: column !important;
    }
    .page-game-bai__game-card {
        flex: 1 1 100% !important; /* Single column */
        max-width: 100% !important;
    }
    .page-game-bai__game-media {
        height: 200px !important; /* Adjust height for mobile */
    }
    .page-game-bai__game-card .page-game-bai__game-title {
        font-size: 1.2em !important;
    }
    .page-game-bai__game-card .page-game-bai__game-description {
        font-size: 0.9em !important;
    }

    /* Trial Section */
    .page-game-bai__trial-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .page-game-bai__game-iframe-wrapper {
        padding: 15px !important;
        margin-bottom: 30px !important;
    }
    .page-game-bai__game-trial-frame {
        height: 400px !important; /* Adjust iframe height for mobile */
    }

    /* Guide Section */
    .page-game-bai__guide-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .page-game-bai__guide-steps {
        flex-direction: column !important;
    }
    .page-game-bai__guide-item {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        padding-top: 70px !important;
    }
    .page-game-bai__guide-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.6em !important;
        top: 15px !important;
    }
    .page-game-bai__guide-title {
        font-size: 1.3em !important;
    }

    /* FAQ Section */
    .page-game-bai__faq-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .page-game-bai__faq-question {
        padding: 15px !important;
        font-size: 1em !important;
    }
    .page-game-bai__faq-answer {
        padding: 0 15px 15px 15px !important;
        font-size: 0.95em !important;
    }

    /* Ensure all images and containers are responsive */
    .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__game-iframe-wrapper,
    .page-game-bai__faq-list,
    .page-game-bai__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .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 !important;
    }
}