/* style/game-bai.css */
.page-game-bai {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set for clarity, though body might handle */
}

/* Hero Section */
.page-game-bai__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 40px; /* Top padding 10px for header offset */
    background-color: #017439; /* Primary color background */
    color: #ffffff;
    overflow: hidden; /* Ensure content stays within bounds */
}

.page-game-bai__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-game-bai__hero-content {
    max-width: 900px;
    z-index: 1;
}

.page-game-bai__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for prominence */
    letter-spacing: 0.5px;
}

.page-game-bai__description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
    max-width: 500px; /* Constrain button group width */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent overflow */
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-tertiary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    flex-grow: 1; /* Allow buttons to grow */
    max-width: 100%; /* Ensure button does not exceed container */
    box-sizing: border-box;
}

.page-game-bai__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-game-bai__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-game-bai__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-game-bai__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

.page-game-bai__btn-tertiary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.page-game-bai__btn-tertiary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

/* General Sections */
.page-game-bai__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #017439;
}

.page-game-bai__dark-section .page-game-bai__section-title {
    color: #ffffff;
}

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

.page-game-bai__text-block {
    font-size: 1.1rem;
    text-align: justify;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-game-bai__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-game-bai__center-text {
    text-align: center;
}

.page-game-bai__center-button {
    display: block;
    margin: 30px auto 0 auto;
    max-width: 300px;
}

/* Intro Section */
.page-game-bai__intro-section .page-game-bai__text-block {
    font-size: 1.15rem;
}

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

.page-game-bai__game-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}