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

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

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background: #140C0C; /* Background */
}

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

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

.page-game-bai__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFF1E8; /* Text Main */
}

.page-game-bai__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF1E8; /* Text Main */
}

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

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

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

/* General Buttons */
.page-game-bai__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color */
    color: #140C0C; /* Dark text for bright button */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-game-bai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-game-bai__btn-secondary {
    background-color: transparent;
    color: #FFB04A; /* Gold color for secondary text */
    border: 2px solid #FFB04A;
    box-shadow: none;
}

.page-game-bai__btn-secondary:hover {
    background-color: rgba(255, 176, 74, 0.1);
    transform: translateY(-2px);
}

.page-game-bai__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
}

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

/* Section Titles & Descriptions */
.page-game-bai__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #FFF1E8; /* Text Main */
}

.page-game-bai__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #FFF1E8; /* Text Main */
}

/* Intro Section */
.page-game-bai__intro-section {
    padding: 60px 0;
    background-color: #140C0C; /* Background */
}

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

.page-game-bai__feature-item {
    flex: 1 1 calc(33.333% - 40px); /* 3 columns with gap */
    min-width: 280px;
    background-color: #2A1212; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #6A1E1E; /* Border */
}

.page-game-bai__icon-box-media {
    width: 200px; /* Fixed width for circular image */
    height: 200px; /* Fixed height for circular image */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #F3C54D; /* Gold border */
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.page-game-bai__feature-text {
    font-size: 1rem;
    color: #FFF1E8; /* Text Main */
}

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

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

.page-game-bai__game-card {
    background-color: #2A1212; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #6A1E1E; /* Border */
    display: flex;
    flex-direction: column;
}

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

.page-game-bai__game-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-game-bai__game-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-game-bai__game-card-title a {
    color: #FFB04A; /* Gold for titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-bai__game-card-title a:hover {
    color: #F3C54D; /* Gold hover */
}

.page-game-bai__game-card-text {
    font-size: 1rem;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-game-bai__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 50px;
}

.page-game-bai__step-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    background-color: #2A1212; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #6A1E1E; /* Border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__step-item:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image and text */
}

.page-game-bai__step-item img {
    flex: 1 1 45%;
    min-width: 280px;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__step-content {
    flex: 1 1 45%;
    min-width: 280px;
}

.page-game-bai__step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color */
    color: #140C0C; /* Dark text */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    flex-shrink: 0; /* Prevent shrinking */
}

.page-game-bai__step-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFB04A; /* Gold color */
    flex-basis: 100%; /* Take full width for title */
}

.page-game-bai__step-text {
    font-size: 1rem;
    color: #FFF1E8; /* Text Main */
}

/* FAQ Section */
.page-game-bai__faq-section {
    padding: 60px 0;
    background-color: #140C0C; /* Background */
}

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

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

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFB04A; /* Gold color */
    cursor: pointer;
    background-color: #2A1212; /* Card BG */
    position: relative;
    user-select: none;
}

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

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

.page-game-bai__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-game-bai__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: #F3C54D; /* Gold */
    transition: transform 0.3s ease;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate + */
}

.page-game-bai__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #FFF1E8; /* Text Main */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    transition: max-height 0.5s ease-in;
}

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


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-bai__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-game-bai__section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    .page-game-bai__features-grid,
    .page-game-bai__game-grid {
        gap: 20px;
    }
    .page-game-bai__feature-item {
        flex: 1 1 calc(50% - 30px); /* 2 columns */
    }
    .page-game-bai__game-card {
        max-width: calc(50% - 10px);
    }
    .page-game-bai__hero-container {
        padding: 30px 15px;
    }
    .page-game-bai__hero-content,
    .page-game-bai__hero-image {
        flex: 1 1 100%; /* Stack on smaller screens */
        min-width: unset;
    }
    .page-game-bai__hero-image {
        order: -1; /* Image above text on mobile */
    }
}

@media (max-width: 768px) {
    .page-game-bai__container {
        padding: 15px;
    }

    /* HERO Section */
    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }
    .page-game-bai__hero-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px 15px;
    }
    .page-game-bai__hero-content {
        text-align: center;
        width: 100%;
    }
    .page-game-bai__hero-image {
        width: 100%;
        order: -1; /* Image above text */
    }
    .page-game-bai__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-game-bai__hero-title {
        font-size: 2rem;
    }
    .page-game-bai__hero-description {
        font-size: 1rem;
    }
    .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 */
    }

    /* Buttons */
    .page-game-bai__btn,
    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary,
    .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-left: 15px;
        padding-right: 15px;
    }
    .page-game-bai__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-game-bai__cta-buttons--center {
        padding: 0;
    }

    /* Section Headers */
    .page-game-bai__section-title {
        font-size: 1.8rem;
    }
    .page-game-bai__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    /* Intro Section - Module 1 */
    .page-game-bai__intro-section {
        padding: 40px 0;
    }
    .page-game-bai__features-grid {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }
    .page-game-bai__feature-item {
        flex: 1 1 100%;
        min-width: unset;
        padding: 25px;
    }
    .page-game-bai__icon-box-media {
        width: 150px !important; /* Maintain circularity, smaller size */
        height: 150px !important;
        margin-bottom: 15px;
    }
    .page-game-bai__feature-title {
        font-size: 1.3rem;
    }
    .page-game-bai__feature-text {
        font-size: 0.9rem;
    }

    /* Popular Games Section */
    .page-game-bai__popular-games-section {
        padding: 40px 0;
    }
    .page-game-bai__game-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
        margin-top: 30px;
    }
    .page-game-bai__game-card {
        max-width: 100%;
    }
    .page-game-bai__game-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-game-bai__game-card-title {
        font-size: 1.2rem;
    }
    .page-game-bai__game-card-text {
        font-size: 0.9rem;
    }

    /* Guide Section */
    .page-game-bai__guide-section {
        padding: 40px 0;
    }
    .page-game-bai__guide-steps {
        gap: 40px;
        margin-top: 30px;
    }
    .page-game-bai__step-item {
        flex-direction: column !important; /* Stack image and text vertically */
        gap: 20px;
        padding: 25px;
    }
    .page-game-bai__step-item img {
        flex: 1 1 100%;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        order: -1; /* Image above text in step */
    }
    .page-game-bai__step-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    .page-game-bai__step-title {
        font-size: 1.4rem;
        text-align: center;
    }
    .page-game-bai__step-text {
        font-size: 0.9rem;
        text-align: center;
    }

    /* 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: 1.1rem;
    }
    .page-game-bai__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* General image and container rules for mobile */
    .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__features-grid,
    .page-game-bai__game-grid,
    .page-game-bai__guide-steps,
    .page-game-bai__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}