.page-game-bai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #FFF5E1); /* Default text color for dark background */
    background-color: var(--background-page-color, #B71C1C); /* Deep Red from custom colors */
    padding-bottom: 40px;
}

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

/* Hero Section */
.page-game-bai__hero-section {
    position: relative;
    text-align: center;
    padding-top: 10px; /* Small top padding as per rule */
    padding-bottom: 40px;
    background-color: var(--background-page-color, #B71C1C);
}

.page-game-bai__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Max height for desktop */
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 10px;
}

.page-game-bai__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-game-bai__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
    color: var(--text-main-color, #FFF5E1);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-game-bai__tagline {
    font-size: 1.2rem;
    color: var(--text-main-color, #FFF5E1);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-card,
.page-game-bai__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 200px; /* Default max-width for desktop buttons */
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #333333; /* Dark text for bright button */
    border: none;
}

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

.page-game-bai__btn-secondary {
    background: transparent;
    color: var(--text-main-color, #FFF5E1);
    border: 2px solid var(--border-color, #F2B544);
}

.page-game-bai__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
}

/* General Sections */
.page-game-bai__intro-section,
.page-game-bai__popular-games,
.page-game-bai__how-to-play,
.page-game-bai__tips-section,
.page-game-bai__promotions-section,
.page-game-bai__faq-section,
.page-game-bai__cta-final {
    padding: 60px 0;
}

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

.page-game-bai__light-bg {
    background-color: #f5f5f5; /* Using a light background for contrast sections */
    color: #333333; /* Dark text for light background */
}

.page-game-bai__section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
}

.page-game-bai__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.7;
    color: inherit;
}

.page-game-bai__content-image {
    width: 100%;
    height: auto;
    max-width: 800px; /* Example max width for content images */
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-game-bai__card {
    background-color: var(--card-bg-color, #D32F2F); /* Dark Red for cards */
    color: var(--text-main-color, #FFF5E1);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%; /* Ensure cards are same height */
    border: 1px solid var(--border-color, #F2B544);
}

.page-game-bai__card-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--gold-color, #F4D34D); /* Gold color for card titles */
}

.page-game-bai__card-description {
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

.page-game-bai__btn-card {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #333333;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    max-width: 150px; /* Smaller max-width for card buttons */
    margin-top: auto; /* Push to bottom */
}

.page-game-bai__btn-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* How to Play Section */
.page-game-bai__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-bai__step-item {
    background-color: var(--card-bg-color, #D32F2F);
    color: var(--text-main-color, #FFF5E1);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color, #F2B544);
}

.page-game-bai__step-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--gold-color, #F4D34D);
}

.page-game-bai__step-description {
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-game-bai__btn-link {
    background: transparent;
    color: var(--gold-color, #F4D34D);
    border: 1px solid var(--gold-color, #F4D34D);
    padding: 8px 15px;
    font-size: 0.9rem;
    max-width: 180px;
    margin-top: auto;
}

.page-game-bai__btn-link:hover {
    background-color: rgba(244, 211, 77, 0.1);
}

/* Tips Section */
.page-game-bai__tips-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-game-bai__tips-list li {
    background-color: #ffffff; /* Light background for list items */
    color: #333333; /* Dark text for list items */
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    border-left: 5px solid var(--primary-color, #C91F17); /* Primary color accent */
}

.page-game-bai__tips-list li strong {
    color: var(--primary-color, #C91F17);
}

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

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

.page-game-bai__faq-item {
    background-color: #ffffff; /* Light background for FAQ items */
    color: #333333; /* Dark text for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.page-game-bai__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color, #C91F17); /* Primary color for question */
}

.page-game-bai__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-game-bai__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

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