.page-game-bai {
    font-family: 'Arial', sans-serif;
    color: #FFF1E8; /* Main text color for dark background */
    background-color: #140C0C; /* Page background */
    line-height: 1.6;
    padding-bottom: 40px; /* General padding for the bottom */
}

/* Container for max-width and centering */
.page-game-bai__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    padding-bottom: 40px;
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-game-bai__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.page-game-bai__hero-image {
    width: 100%;
    max-width: 1200px; /* Match width attribute */
    margin-bottom: 20px;
}

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

.page-game-bai__hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 15px;
}

.page-game-bai__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: #F3C54D; /* Gold color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-game-bai__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF1E8;
}

/* CTA Buttons */
.page-game-bai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__card-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Important for button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #140C0C; /* Dark text for bright button */
    border: 2px solid transparent;
}

.page-game-bai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-game-bai__btn-secondary {
    background-color: transparent;
    color: #F3C54D; /* Gold text */
    border: 2px solid #F3C54D; /* Gold border */
}

.page-game-bai__btn-secondary:hover {
    background-color: #F3C54D;
    color: #140C0C; /* Dark text for gold background */
    transform: translateY(-2px);
}

/* Card Button (used within game cards) */
.page-game-bai__card-button {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #140C0C;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: auto; /* Push button to bottom of card */
}

.page-game-bai__card-button:hover {
    opacity: 0.9;
}

/* General Section Styling */
.page-game-bai__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #F3C54D; /* Gold color for section titles */
    text-align: center;
    margin-bottom: 30px;
    padding-top: 50px;
}

.page-game-bai__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #FFF1E8;
    text-align: justify;
}

/* Dark Background Sections */
.page-game-bai__dark-section {
    background-color: #2A1212; /* Card BG color for sections */
    padding: 60px 0;
    border-top: 1px solid #6A1E1E; /* Border color */
    border-bottom: 1px solid #6A1E1E;
}

/* Introduction Section */
.page-game-bai__introduction-section .page-game-bai__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Game Types Section */
.page-game-bai__game-types-section {
    padding: 60px 0;
}

.page-game-bai__game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    gap: 30px;
    margin-top: 40px;
}

.page-game-bai__game-card {
    background-color: #2A1212; /* Card BG color */
    border: 1px solid #6A1E1E; /* Border color */
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-game-bai__game-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-game-bai__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F3C54D; /* Gold for card titles */
    line-height: 1.3;
}

.page-game-bai__card-title a {
    color: #F3C54D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-bai__card-title a:hover {
    color: #FFB04A; /* Lighter gold on hover */
}

.page-game-bai__card-description {
    font-size: 0.95rem;
    color: #FFF1E8;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Why Choose Us Section */
.page-game-bai__why-choose-us {
    padding: 60px 0;
}

.page-game-bai__feature-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
    gap: 30px;
    margin-top: 40px;
}

.page-game-bai__feature-item {
    text-align: center;
    background-color: #2A1212;
    border: 1px solid #6A1E1E;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s ease;
}

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

.page-game-bai__feature-item img {
    width: 200px; /* Specific width for these feature images */
     /* Specific height for these feature images */
    object-fit: contain; /* Ensure image content is visible */
    margin-bottom: 15px;
    border-radius: 8px;
}

.page-game-bai__feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #F3C54D;
    margin-bottom: 10px;
}

.page-game-bai__feature-description {
    font-size: 0.95rem;
    color: #FFF1E8;
}

/* How to Play Section */
.page-game-bai__how-to-play-section {
    padding: 60px 0;
}

.page-game-bai__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for desktop */
    gap: 30px;
}

.page-game-bai__step-item {
    background-color: #2A1212;
    border: 1px solid #6A1E1E;
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-game-bai__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #FFB04A; /* Orange-gold for step titles */
    margin-bottom: 10px;
}

.page-game-bai__step-description {
    font-size: 1rem;
    color: #FFF1E8;
    flex-grow: 1;
}

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

.page-game-bai__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    gap: 30px;
}

.page-game-bai__promo-item {
    background-color: #140C0C; /* Darker background for promo items */
    border: 1px solid #7E0D0D; /* Deep Red border */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-game-bai__promo-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFB04A;
    margin-bottom: 10px;
}