.page-game-bai {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Default text color for light backgrounds */
    background-color: #F4F7FB; /* Default background for the page */
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #F4F7FB 0%, #E0E8F5 100%); /* Light gradient background */
}

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

.page-game-bai__hero-text-block {
    flex: 1 1 45%;
    min-width: 300px;
    color: #1F2D3D;
}

.page-game-bai__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 clamp font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #000000; /* Custom Color_1776249996415 */
}

.page-game-bai__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box; /* Ensure padding doesn't push width */
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-game-bai__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-game-bai__btn-secondary {
    background: #ffffff;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-game-bai__btn-secondary:hover {
    background: #e0e8f5;
    color: #2F6BFF;
    border-color: #2F6BFF;
}

.page-game-bai__hero-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-game-bai__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* General Section Styles */
.page-game-bai__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
}

.page-game-bai__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #000000;
}

.page-game-bai__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #1F2D3D;
}

.page-game-bai__light-bg {
    background-color: #F4F7FB;
    color: #1F2D3D;
}

.page-game-bai__dark-section {
    background-color: #2F6BFF; /* Primary brand color */
    color: #ffffff;
}

.page-game-bai__dark-section .page-game-bai__section-title,
.page-game-bai__dark-section .page-game-bai__section-description {
    color: #ffffff;
}

/* Intro Section (Module 1 - Three circular images) */
.page-game-bai__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-bai__feature-item {
    text-align: center;
    background: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-game-bai__icon-box-media {
    width: 200px; /* Fixed width for circular image */
    height: 200px; /* Fixed height for circular image */
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e0e8f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px #A5C4FF; /* Glow color */
}

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

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

.page-game-bai__feature-text {
    font-size: 1rem;
    color: #1F2D3D;
}

/* Game Types Section */
.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,
.page-game-bai__promo-card,
.page-game-bai__blog-card {
    background: #FFFFFF; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-game-bai__game-card:hover,
.page-game-bai__promo-card:hover,
.page-game-bai__blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-game-bai__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 20px 20px 10px;
    color: #000000;
}

.page-game-bai__card-title a {
    color: #000000;
    text-decoration: none;
}

.page-game-bai__card-title a:hover {
    color: #2F6BFF;
}

.page-game-bai__card-text {
    font-size: 0.95rem;
    color: #1F2D3D;
    padding: 0 20px 15px;
    flex-grow: 1; /* Allow text to grow */
}

.page-game-bai__card-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 15px;
    text-align: center;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    box-sizing: border-box;
}

.page-game-bai__card-btn:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

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

/* Guide Section */
.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: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-game-bai__step-icon {
    width: 60px;
    height: 60px;
    background-color: #2F6BFF;
    color: #ffffff;
    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 0 8px rgba(47, 107, 255, 0.2);
}

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

.page-game-bai__step-text {
    font-size: 1rem;
    color: #1F2D3D;
}

.page-game-bai__guide-cta {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Promo Section (similar to game types section) */
.page-game-bai__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-game-bai__faq-item {
    background: #FFFFFF;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #D6E2FF; /* Border color */
}

.page-game-bai__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

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

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

.page-game-bai__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2F6BFF;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

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

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

.page-game-bai__faq-cta {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Blog Section (similar to game types section) */
.page-game-bai__blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

    .page-game-bai__hero-text-block,
    .page-game-bai__hero-image {
        flex: 1 1 100%;
        min-width: unset;
    }

    .page-game-bai__cta-buttons,
    .page-game-bai__guide-cta,
    .page-game-bai__faq-cta {
        justify-content: center;
    }
}

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

    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Small top padding, assuming body handles --header-offset */
        padding-bottom: 40px;
    }

    .page-game-bai__hero-content-wrapper {
        padding: 20px 15px;
        gap: 30px;
    }

    .page-game-bai__main-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

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

    .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,
    .page-game-bai__button-group,
    .page-game-bai__btn-container,
    .page-game-bai__guide-cta,
    .page-game-bai__faq-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    .page-game-bai__hero-image {
        padding: 10px;
    }

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

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

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

    .page-game-bai__features-grid,
    .page-game-bai__game-list,
    .page-game-bai__guide-steps,
    .page-game-bai__promo-grid,
    .page-game-bai__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-bai__icon-box-media {
        width: 150px; /* Adjust size for mobile */
        height: 150px;
        margin-bottom: 20px;
        box-shadow: 0 0 0 6px #A5C4FF;
    }

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

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

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

    .page-game-bai__card-text {
        padding: 0 15px 10px;
    }

    .page-game-bai__card-btn {
        width: calc(100% - 30px);
        margin: 0 15px 15px;
        padding: 10px 12px;
    }

    .page-game-bai__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin-bottom: 20px;
        box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.2);
    }

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

    .page-game-bai__faq-item summary {
        padding: 15px 20px;
        font-size: 1.05rem;
    }

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

    /* General image responsive for content area */
    .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__hero-content-wrapper,
    .page-game-bai__features-grid,
    .page-game-bai__game-list,
    .page-game-bai__guide-steps,
    .page-game-bai__promo-grid,
    .page-game-bai__blog-grid,
    .page-game-bai__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}