:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg: #D32F2F;
    --section-bg-dark: #B71C1C;
    --text-main: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red: #7A0E0E;
    --text-on-light-bg: #333333; /* For text on default white body background */
}

.page-game-bai {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-on-light-bg); /* Default text color for areas on white body background */
}

.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;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.page-game-bai__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-on-light-bg);
}

.page-game-bai__text-main {
    color: var(--text-main); /* For text on dark backgrounds */
}

.page-game-bai__bg-dark {
    background-color: var(--section-bg-dark);
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-game-bai__btn-primary {
    background: var(--button-gradient);
    color: var(--deep-red); /* Darker text for gold button */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-game-bai__btn-secondary {
    background-color: transparent;
    color: var(--text-on-light-bg); /* Default for light background */
    border: 2px solid var(--primary-color);
}

.page-game-bai__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
}

.page-game-bai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* For responsiveness */
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    overflow: hidden; /* For responsiveness */
}

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

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, not --header-offset */
    padding-bottom: 60px;
    background-color: #f5f5f5; /* Light background for hero */
}

.page-game-bai__hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-game-bai__hero-content {
    flex: 1 1 50%;
    max-width: 600px;
    text-align: left;
}

.page-game-bai__main-title {
    font-size: clamp(2.5em, 4vw, 3.5em); /* Use clamp for H1 */
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.1;
}

.page-game-bai__hero-description {
    font-size: 1.15em;
    margin-bottom: 30px;
    color: var(--text-on-light-bg);
}

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

.page-game-bai__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Intro Features Section */
.page-game-bai__intro-features {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--section-bg-dark); /* Use custom dark background */
}

.page-game-bai__intro-features .page-game-bai__section-title,
.page-game-bai__intro-features .page-game-bai__section-description {
    color: var(--text-main);
}