.page-game-bai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #333333);
    background-color: var(--bg, #F5F7FA);
}

/* Hero Section */
.page-game-bai__top-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 40px;
    text-align: center;
    overflow: hidden;
}

.page-game-bai__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.page-game-bai__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

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

.page-game-bai__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color, #E53935);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-game-bai__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main, #333333);
}

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

.page-game-bai__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-game-bai__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
    transform: translateY(-2px);
}

.page-game-bai__btn-secondary {
    background: #ffffff;
    color: var(--primary-color, #E53935);
    border: 2px solid var(--primary-color, #E53935);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-game-bai__btn-secondary:hover {
    background: var(--primary-color, #E53935);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
    transform: translateY(-2px);
}

/* General Section Styling */
.page-game-bai__section {
    padding: 50px 0;
    margin-bottom: 30px;
}

.page-game-bai__container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-game-bai__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color, #E53935);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-game-bai__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF5A4F, #E53935);
    border-radius: 2px;
}

.page-game-bai__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-main, #333333);
}

.page-game-bai__text-block--light {
    color: #ffffff;
}

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

.page-game-bai__game-card {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-game-bai__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-game-bai__game-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #E53935);
    margin: 20px 20px 10px;
    text-align: center;
}

.page-game-bai__game-card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main, #333333);
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-game-bai__btn-play {
    margin: 0 20px 20px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
    width: calc(100% - 40px);
    box-shadow: 0 3px 10px rgba(229, 57, 53, 0.3);
}

.page-game-bai__btn-play:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.5);
    transform: translateY(-2px);
}

.page-game-bai__cta-buttons--centered {
    margin-top: 50px;
    justify-content: center;
}

/* Guide Section */
.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: var(--card-bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding-bottom: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-game-bai__step-figure {
    margin: 0;
    padding: 0;
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-game-bai__step-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-game-bai__step-caption {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color, #E53935);
    margin-top: 15px;
    padding: 0 15px;
}

.page-game-bai__step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main, #333333);
    margin: 15px 15px 10px;
}

.page-game-bai__step-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main, #333333);
    padding: 0 15px;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-game-bai__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin: 0 15px 15px;
    width: calc(100% - 30px);
}

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