.page-game-bai {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default dark text for light body background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set default background */
}

.page-game-bai__container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    text-align: center;
    background-color: #f8f9fa; /* Light background for hero */
}

.page-game-bai__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size */
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-game-bai__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-game-bai__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure button fits container */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-game-bai__btn--primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-game-bai__btn--primary:hover {
    background-color: #1a8cc7;
    border-color: #1a8cc7;
}

.page-game-bai__btn--secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-game-bai__btn--secondary:hover {
    background-color: #e0f2ff;
    color: #1a8cc7;
    border-color: #1a8cc7;
}

.page-game-bai__btn--small {
    padding: 8px 18px;
    font-size: 0.9em;
    border-radius: 6px;
}

.page-game-bai__btn--center {
    margin-left: auto;
    margin-right: auto;
    display: block; /* Make it a block element to center with margin auto */
    width: fit-content; /* Adjust width to content */
    margin-top: 30px;
}

/* Sections */
.page-game-bai__section {
    padding: 60px 0;
}

.page-game-bai__section:nth-child(even) {
    background-color: #f0f8ff; /* Light blue tint for alternating sections */
}

.page-game-bai__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-game-bai__section-title--white {
    color: #FFFFFF;
}

.page-game-bai__text--white {
    color: #FFFFFF;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 30px;
}

/* Images & Figures */
.page-game-bai__figure {
    margin: 30px auto;
    max-width: 680px; /* Consistent max-width for blog type images */
    text-align: center;
    background-color: #FFFFFF;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-game-bai__figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
    min-width: 200px; /* Minimum size requirement */
}

.page-game-bai__figcaption {
    font-size: 0.9em;
    color: #555555;
    margin-top: 10px;
}

/* Game Grid */
.page-game-bai__game-grid,
.page-game-bai__feature-grid,
.page-game-bai__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-game-bai__game-card,
.page-game-bai__feature-card,
.page-game-bai__promo-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-game-bai__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-bai__game-card p,
.page-game-bai__feature-card p,
.page-game-bai__promo-card p {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to grow */
}

/* How-To Steps */
.page-game-bai__step-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-game-bai__step-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-game-bai__step-item p {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

/* Tips & Strategies List */
.page-game-bai__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-game-bai__list-title {
    font-size: 1.2em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-game-bai__list li {
    background-color: #FFFFFF;
    border-left: 5px solid #26A9E0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-game-bai__list li p {
    color: #555555;
    font-size: 0.95em;
}

/* FAQ Section */
.page-game-bai__faq-section {
    background-color: #f0f8ff;
}

.page-game-bai__faq-list {
    margin-top: 30px;
}

.page-game-bai__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #eaf6ff; /* Lighter blue for summary */
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* Hide default marker for details/summary */
}

.page-game-bai__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
    border-bottom: 1px solid #d0d0d0;
    background-color: #d0e8ff; /* Slightly darker when open */
}

.page-game-bai__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-game-bai__faq-answer {
    padding: 15px 25px 20px;
    font-size: 0.95em;
    color: #555555;
    background-color: #FFFFFF;
}

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

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

/* Final CTA */
.page-game-bai__final-cta .page-game-bai__container {
    background-color: #26A9E0; /* Brand color as background */
    padding: 50px 20px;
    border-radius: 10px;
    text-align: center;
}

.page-game-bai__final-cta .page-game-bai__btn--primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    border-color: #EA7C07;
}

.page-game-bai__final-cta .page-game-bai__btn--primary:hover {
    background-color: #d46f06;
    border-color: #d46f06;
}

.page-game-bai__final-cta .page-game-bai__btn--secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border-color: #FFFFFF;
}

.page-game-bai__final-cta .page-game-bai__btn--secondary:hover {
    background-color: #f0f0f0;
    color: #1a8cc7;
    border-color: #f0f0f0;
}

/* General image styling for content area */
.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-bai__container {
        padding: 0 15px;
    }

    .page-game-bai__hero-section {
        padding-bottom: 30px;
    }

    .page-game-bai__section {
        padding: 50px 0;
    }

    .page-game-bai__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }

    .page-game-bai__description {
        font-size: 1em;
    }

    .page-game-bai__cta-buttons {
        gap: 10px;
    }

    .page-game-bai__btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .page-game-bai__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
        margin-bottom: 30px;
    }

    .page-game-bai__game-grid,
    .page-game-bai__feature-grid,
    .page-game-bai__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-game-bai__game-card,
    .page-game-bai__feature-card,
    .page-game-bai__promo-card,
    .page-game-bai__step-item {
        padding: 20px;
    }

    .page-game-bai__card-title,
    .page-game-bai__step-title {
        font-size: 1.2em;
    }
}