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

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

.page-game-bai__article-wrap {
    max-width: 900px; /* Narrower for long-form content */
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding as per rule */
    padding-bottom: 50px;
    background-color: #f8f9fa; /* Light background for hero */
    text-align: center;
}

.page-game-bai__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-bai__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size clamp */
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-game-bai__description {
    font-size: 1.15rem;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Important for mobile adaption */
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-game-bai__btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%; /* For mobile button adaption */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    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;
    transform: translateY(-2px);
}

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

.page-game-bai__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-game-bai__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* General Section Styling */
.page-game-bai__section {
    padding: 60px 0;
}

.page-game-bai__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-game-bai__dark-bg .page-game-bai__section-title,
.page-game-bai__dark-bg .page-game-bai__paragraph,
.page-game-bai__dark-bg .page-game-bai__list-item,
.page-game-bai__dark-bg .page-game-bai__step-title,
.page-game-bai__dark-bg .page-game-bai__step-description,
.page-game-bai__dark-bg .page-game-bai__contact-item,
.page-game-bai__dark-bg .page-game-bai__faq-qtext {
    color: #FFFFFF;
}

.page-game-bai__dark-bg a {
    color: #f0f0f0;
    text-decoration: underline;
}

.page-game-bai__dark-bg a:hover {
    color: #FFFFFF;
}

.page-game-bai__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

.page-game-bai__paragraph {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.page-game-bai__figure {
    margin: 30px 0;
    text-align: center;
}

.page-game-bai__figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

/* Why Choose Section */
.page-game-bai__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-game-bai__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1.8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-game-bai__list-item strong {
    color: #FFFFFF;
}

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

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

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

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

.page-game-bai__game-card-title {
    font-size: 1.8rem;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-game-bai__game-card-description {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensure description takes available space */
}

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

.page-game-bai__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-game-bai__step-title {
    font-size: 1.6rem;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* Promo Section */
.page-game-bai__promo-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 30px;
    color: #FFFFFF;
}