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

.page-game-bai {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--deep-navy); /* From shared.css, dark background */
}

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

/* Hero Section */
.page-game-bai__hero-section {
    position: relative;
    padding-top: 10px; /* As per fixed header rule */
    text-align: center;
    overflow: hidden;
    background: var(--main-color); /* Fallback */
}

.page-game-bai__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Constrain hero image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-bai__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-game-bai__hero-content {
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(17, 59, 122, 0.8) 0%, rgba(8, 22, 43, 0.9) 100%);
    color: var(--text-main);
}

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

.page-game-bai__description {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-small {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

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

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

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

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

.page-game-bai__btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    border-radius: 5px;
}

.page-game-bai__btn-small:hover {
    opacity: 0.9;
}

.page-game-bai__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--gold);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.page-game-bai__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.page-game-bai__text-block {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: justify;
}

.page-game-bai__text-block a {
    color: var(--gold);
    text-decoration: underline;
}

.page-game-bai__text-block a:hover {
    color: var(--glow);
}

/* Introduction Section */
.page-game-bai__introduction-section {
    padding: 60px 0;
}

.page-game-bai__dark-section {
    background-color: var(--main-color);
    color: var(--text-main);
}

/* Game Types Section */
.page-game-bai__game-types-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
}

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

.page-game-bai__game-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-game-bai__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-game-bai__game-title {
    font-size: 1.5rem;
    color: var(--gold);
    margin: 20px 15px 10px;
    font-weight: 600;
}

.page-game-bai__game-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0 15px 20px;
    line-height: 1.6;
}

/* Advantages Section */
.page-game-bai__advantages-section {
    padding: 60px 0;
}

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

.page-game-bai__advantage-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-game-bai__advantage-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    /* min-width/height are for original image, display size is width/height above */
    min-width: 200px;
    min-height: 200px;
}

.page-game-bai__advantage-title {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-bai__advantage-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

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

.page-game-bai__promo-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

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

.page-game-bai__promo-title {
    font-size: 1.4rem;
    color: var(--gold);
    margin: 20px 15px 10px;
    font-weight: 600;
}

.page-game-bai__promo-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0 15px 20px;
    line-height: 1.6;
}

.page-game-bai__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Guide Section */
.page-game-bai__guide-section {
    padding: 60px 0;
}

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

.page-game-bai__guide-step {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-game-bai__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--deep-navy);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.page-game-bai__step-title {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-bai__step-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.page-game-bai__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--main-color);
    border-bottom: 1px solid var(--divider);
}

.page-game-bai__faq-question:hover {
    background-color: rgba(var(--main-color-rgb), 0.9); /* Assuming --main-color-rgb is defined elsewhere or use rgba conversion */
}

.page-game-bai__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--gold);
}

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

.page-game-bai__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: justify;
}

/* Final CTA Section */
.page-game-bai__final-cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-game-bai__cta-content {
    max-width: 800px;
}

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

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

    .page-game-bai__main-title {
        font-size: 3rem;
    }

    .page-game-bai__description {
        font-size: 1.1rem;
    }

    .page-game-bai__game-grid,
    .page-game-bai__advantage-grid,
    .page-game-bai__promo-grid,
    .page-game-bai__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .page-game-bai__advantage-icon {
        width: 80px;
        height: 80px;
    }
}

/* Responsive Styles for 768px (Mobile) - MUST BE COMPLETE */
@media (max-width: 768px) {
    /* General Mobile Adaptations */
    .page-game-bai__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Ensure minimal top padding */
    }

    .page-game-bai__hero-image-wrapper {
        max-height: 250px;
    }
    
    .page-game-bai__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

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

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

    .page-game-bai__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-game-bai__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}