/* style/game-bai.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background-main: #08160F; /* This matches the assumed body background */
    --color-text-main: #F2FFF6; /* Main text on dark background */
    --color-text-secondary: #A7D9B8; /* Secondary text on dark background */
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-game-bai {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background-main); /* Ensure consistency if body background is not fully propagated */
}

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

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

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

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1em;
    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: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* White-ish text on green button */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-game-bai__btn-secondary {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text-main);
    box-shadow: inset 0 0 0 1px var(--color-border);
}

.page-game-bai__btn-secondary:hover {
    background: var(--color-border);
    color: var(--color-text-main);
    transform: translateY(-2px);
}

.page-game-bai__btn-play {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    padding: 8px 20px;
    font-size: 0.9em;
    border-radius: 6px;
}

.page-game-bai__btn-play:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


/* HERO Section */
.page-game-bai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    background-color: var(--color-background-main);
    overflow: hidden;
}

.page-game-bai__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width for the image container */
    margin-bottom: 20px; /* Space between image and content */
}

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

.page-game-bai__hero-content-wrapper {
    max-width: 900px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center;
}

.page-game-bai__hero-content {
    padding: 20px 0;
}

.page-game-bai__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 900;
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.4); /* Glow effect */
}

.page-game-bai__description {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-game-bai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


/* Intro Section (Module 1 - 3 columns with circular images) */
.page-game-bai__intro-section {
    padding: 80px 0;
    background-color: var(--color-background-main);
}

.page-game-bai__intro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-game-bai__icon-box {
    background-color: var(--color-card-bg);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--color-glow);
}

.page-game-bai__icon-box-media {
    width: 180px; /* Smaller for desktop, will be 200px on mobile */
    height: 180px;
    aspect-ratio: 1/1;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(var(--color-primary), 0.5);
}

.page-game-bai__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%; /* Ensure image itself is circular */
}

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

.page-game-bai__icon-box-text {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    line-height: 1.6;
}


/* Game Tabs Section */
.page-game-bai__game-tabs-section {
    padding: 80px 0;
    background-color: var(--color-deep-green);
}

.page-game-bai__tab-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--color-divider);
    padding-bottom: 15px;
}