:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* Body background */
}

.page-game-bai {
    background-color: var(--deep-navy);
    color: var(--text-main); /* Light text on dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-game-bai__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-game-bai__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--deep-navy);
}

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

.page-game-bai__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: var(--text-main);
}

.page-game-bai__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.page-game-bai__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-game-bai__hero-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-game-bai__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn-secondary {
    background: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-bai__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--deep-navy);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

.page-game-bai__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element for max-width */
    margin: 0 auto;
}

/* Intro Section */
.page-game-bai__intro-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
}

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

.page-game-bai__icon-box {
    flex: 1 1 300px;
    max-width: 350px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-bai__icon-box-media {
    width: 200px; /* Maintain square for circular image */
    height: 200px; /* Maintain square for circular image */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--gold-color);
    box-shadow: 0 0 0 5px rgba(242, 193, 78, 0.3);
    display: flex; /* For centering image if needed */
    align-items: center;
    justify-content: center;
}

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

.page-game-bai__icon-box-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-game-bai__icon-box-text {
    color: var(--text-secondary);
    font-size: 1em;
}

/* Games Section */
.page-game-bai__games-section {
    padding: 60px 0;
    background-color: var(--deep-navy); /* Already dark, so text is light */
}

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

.page-game-bai__game-card {
    flex: 1 1 300px;
    max-width: 350px;
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.page-game-bai__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-game-bai__game-card-title {
    font-size: 1.6em;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-game-bai__game-card-text {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-bottom: 20px;
}

.page-game-bai__game-card-btn {
    width: auto; /* Allow button to size naturally */
    min-width: 150px;
    padding: 10px 20px;
    font-size: 1em;
}

/* Benefits Section */
.page-game-bai__benefits-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
}

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

.page-game-bai__benefits-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-game-bai__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-game-bai__benefits-list li {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 5px solid var(--gold-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    font-size: 1.05em;
}

.page-game-bai__list-highlight {
    color: var(--gold-color);
    font-weight: 700;
}

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

.page-game-bai__benefits-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

/* Guide Section */
.page-game-bai__guide-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
    text-align: center;
}

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

.page-game-bai__guide-step {
    flex: 1 1 250px;
    max-width: 300px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__guide-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-bai__guide-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--button-gradient);
    color: #ffffff;
    font-size: 2em;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__guide-step-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-game-bai__guide-step-text {
    color: var(--text-secondary);
    font-size: 0.95em;
}

.page-game-bai__guide-cta {
    margin-top: 50px;
}

/* FAQ Section */
.page-game-bai__faq-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
}

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

.page-game-bai__faq-item {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    overflow: hidden; /* For smooth transition */
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--primary-color);
    border-radius: 8px; /* For summary tag */
    list-style: none; /* Hide default marker */
    position: relative;
}

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

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

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

.page-game-bai__faq-toggle {
    font-size: 1.8em;
    font-weight: 300;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    content: "−";
}

.page-game-bai__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider-color);
}

.page-game-bai__faq-answer p {
    margin: 0;
    color: var(--text-secondary);
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-game-bai__hero-container,
    .page-game-bai__benefits-container {
        flex-direction: column;
        text-align: center;
    }
    .page-game-bai__hero-content,
    .page-game-bai__benefits-content {
        flex: 1 1 100%;
        max-width: 700px;
        margin: 0 auto;
    }
    .page-game-bai__hero-cta-buttons {
        justify-content: center;
    }
    .page-game-bai__hero-image,
    .page-game-bai__benefits-image {
        flex: 1 1 100%;
        max-width: 700px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-game-bai__container {
        padding: 30px 15px;
    }
    .page-game-bai__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-game-bai__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* HERO Section */
    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Enforce small top padding */
        padding-bottom: 40px;
    }
    .page-game-bai__hero-container {
        padding: 30px 15px;
        gap: 30px;
    }
    .page-game-bai__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust H1 for mobile */
        text-align: center;
    }
    .page-game-bai__hero-description {
        font-size: 1em;
        text-align: center;
    }
    .page-game-bai__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
    }
    .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__hero-side-image {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Module 1: Intro Section (Circular Images) */
    .page-game-bai__intro-section {
        padding: 40px 0;
    }
    .page-game-bai__icon-boxes {
        flex-direction: column; /* Stack icon boxes */
        align-items: center;
        gap: 25px;
    }
    .page-game-bai__icon-box {
        max-width: 90%; /* Adjust width for mobile */
        padding: 25px;
    }
    .page-game-bai__icon-box-media {
        width: 160px; /* Maintain square for circular image on mobile */
        height: 160px; /* Maintain square for circular image on mobile */
        border: 3px solid var(--gold-color);
        box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.2);
    }
    .page-game-bai__icon-box-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Games Section */
    .page-game-bai__games-section {
        padding: 40px 0;
    }
    .page-game-bai__game-cards {
        flex-direction: column; /* Stack game cards */
        align-items: center;
        gap: 25px;
    }
    .page-game-bai__game-card {
        max-width: 90%; /* Adjust width for mobile */
        padding: 20px;
    }
    .page-game-bai__game-card-image {
        height: 180px; /* Adjust image height for mobile */
    }

    /* Benefits Section */
    .page-game-bai__benefits-section {
        padding: 40px 0;
    }
    .page-game-bai__benefits-container {
        padding: 30px 15px;
        gap: 30px;
    }
    .page-game-bai__benefits-list li {
        padding: 12px 18px;
        font-size: 1em;
    }
    .page-game-bai__benefits-side-image {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Guide Section */
    .page-game-bai__guide-section {
        padding: 40px 0;
    }
    .page-game-bai__guide-steps {
        flex-direction: column; /* Stack guide steps */
        align-items: center;
        gap: 25px;
    }
    .page-game-bai__guide-step {
        max-width: 90%; /* Adjust width for mobile */
        padding: 25px;
    }

    /* 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.05em;
    }
    .page-game-bai__faq-toggle {
        font-size: 1.5em;
    }
    .page-game-bai__faq-answer {
        padding: 12px 20px 15px;
        font-size: 0.95em;
    }

    /* General image and container responsiveness for mobile */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-game-bai__container,
    .page-game-bai__hero-content,
    .page-game-bai__hero-image,
    .page-game-bai__intro-section,
    .page-game-bai__icon-box,
    .page-game-bai__games-section,
    .page-game-bai__game-card,
    .page-game-bai__benefits-section,
    .page-game-bai__benefits-content,
    .page-game-bai__benefits-image,
    .page-game-bai__guide-section,
    .page-game-bai__guide-step,
    .page-game-bai__faq-section,
    .page-game-bai__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by specific sections/containers */
    }
    .page-game-bai__hero-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;
    }
}