/* style/game-bai.css */

/* --- Base Styles --- */
.page-game-bai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* #F2FFF6 */
    background-color: var(--background-color); /* #08160F */
}

/* Custom CSS Variables based on provided palette */
.page-game-bai {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

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

.page-game-bai__section-title {
    font-size: 2.8em;
    font-weight: bold;
    color: var(--gold-color); /* Using gold for main titles for contrast */
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-game-bai__section-description {
    font-size: 1.1em;
    color: var(--text-secondary-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-game-bai__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: var(--text-main-color);
}

.page-game-bai__dark-section {
    background-color: var(--card-bg-color); /* Darker background for sections */
    padding: 60px 0;
}

.page-game-bai__dark-section .page-game-bai__section-title {
    color: var(--gold-color);
}

.page-game-bai__dark-section .page-game-bai__section-description,
.page-game-bai__dark-section .page-game-bai__text-block {
    color: var(--text-secondary-color);
}

/* --- Buttons --- */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-play,
.page-game-bai__btn-read-more,
.page-game-bai__btn-view-promo {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-bai__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-bai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-game-bai__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.page-game-bai__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-game-bai__btn-play,
.page-game-bai__btn-read-more,
.page-game-bai__btn-view-promo {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
    margin-top: 15px;
}

.page-game-bai__btn-play:hover,
.page-game-bai__btn-read-more:hover,
.page-game-bai__btn-view-promo:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-game-bai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-game-bai__cta-buttons--center {
    margin-top: 40px;
    text-align: center;
}

/* --- Hero Section --- */
.page-game-bai__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-color);
}

.page-game-bai__hero-image-container {
    width: 100%;
    max-height: 550px; /* Adjust height for visual appeal, not full 1080 */
    overflow: hidden;
    position: relative;
}

.page-game-bai__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-height: 200px; /* Minimum size requirement */
}

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

.page-game-bai__main-title {
    font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.page-game-bai__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- Popular Games Section --- */
.page-game-bai__popular-games-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-game-bai__game-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-game-bai__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    min-height: 200px; /* Minimum size requirement */
    object-fit: contain;
}

.page-game-bai__game-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-game-bai__game-title a {
    color: var(--gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-bai__game-title a:hover {
    color: var(--glow-color);
}

.page-game-bai__game-description {
    font-size: 0.95em;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1; /* Allow description to take available space */
}

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

.page-game-bai__features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-game-bai__feature-card {
    background-color: var(--background-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-game-bai__feature-icon {
    width: 100%;
    max-width: 300px; /* Constrain image width */
    height: auto;
    margin: 0 auto 20px;
    display: block;
    min-height: 200px; /* Minimum size requirement */
    object-fit: contain;
}

.page-game-bai__feature-title {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-game-bai__feature-description {
    font-size: 1em;
    color: var(--text-secondary-color);
}

/* --- How To Play Section --- */
.page-game-bai__how-to-play-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-game-bai__steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}