/* style/game-bai.css */
.page-game-bai {
    font-family: Arial, sans-serif;
    color: #F3F8FF; /* Text Main */
    background-color: #08162B; /* Deep Navy from body background */
    line-height: 1.6;
}

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

.page-game-bai__section-title {
    font-size: 2.5em;
    color: #F3F8FF; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-game-bai__text-block {
    font-size: 1em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 1em;
    text-align: justify;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #113B7A 0%, #08162B 100%);
    display: flex;
    align-items: center;
}

.page-game-bai__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    box-sizing: border-box;
}

.page-game-bai__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #F3F8FF;
}

.page-game-bai__main-title {
    font-size: 3em;
    color: #F3F8FF;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-game-bai__hero-description {
    font-size: 1.2em;
    color: #AFC4E8;
    margin-bottom: 30px;
}

.page-game-bai__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-game-bai__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 0 15px rgba(79, 168, 255, 0.6);
}

.page-game-bai__btn-secondary {
    background: #10233F; /* Card BG */
    color: #F3F8FF; /* Text Main */
    border: 2px solid #244D84; /* Border */
}

.page-game-bai__btn-secondary:hover {
    background: #1B3357; /* Divider */
    border-color: #4FA8FF; /* Glow */
    color: #4FA8FF;
}

.page-game-bai__hero-image {
    flex: 1 1 40%;
    min-width: 280px;
    text-align: center;
}

.page-game-bai__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-game-bai__intro-section {
    padding: 60px 0;
    background-color: #10233F; /* Card BG */
}

.page-game-bai__dark-section {
    background-color: #10233F; /* Card BG */
    color: #F3F8FF;
}

/* Games Section */
.page-game-bai__games-section {
    padding: 60px 0;
    background-color: #08162B; /* Deep Navy */
}

.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-color: #10233F; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-game-bai__game-card:hover {
    transform: translateY(-8px);
}

.page-game-bai__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-game-bai__card-title {
    font-size: 1.5em;
    color: #F3F8FF; /* Text Main */
    margin: 20px 20px 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-game-bai__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-game-bai__card-title a:hover {
    color: #4FA8FF; /* Glow */
}

.page-game-bai__card-description {
    font-size: 0.95em;
    color: #AFC4E8; /* Text Secondary */
    padding: 0 20px 20px;
    flex-grow: 1;
}

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

/* Benefits Section */
.page-game-bai__benefits-section {
    padding: 60px 0;
    background-color: #113B7A; /* Main Color */
}

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

.page-game-bai__benefit-item {
    background-color: rgba(16, 35, 63, 0.7); /* Card BG with transparency */
    border: 1px solid #244D84; /* Border */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-game-bai__benefit-title {
    font-size: 1.6em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: bold;
}

/* Guide Section */
.page-game-bai__guide-section {
    padding: 60px 0;
    background-color: #08162B; /* Deep Navy */
}

.page-game-bai__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-bai__guide-step {
    background-color: #10233F; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left: 5px solid #1D5FD1; /* Auxiliary Color */
}

.page-game-bai__guide-step-title {
    font-size: 1.4em;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
}

/* FAQ Section */
.page-game-bai__faq-section {
    padding: 60px 0;
    background-color: #10233F; /* Card BG */
}

.page-game-bai__faq-list {
    margin-top: 40px;
}

.page-game-bai__faq-item {
    background-color: #08162B; /* Deep Navy */
    border: 1px solid #1B3357; /* Divider */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    color: #F3F8FF; /* Text Main */
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

.page-game-bai__faq-question::-webkit-details-marker {
    display: none;
}

.page-game-bai__faq-question::marker {
    display: none;
}

.page-game-bai__faq-qtext {
    flex-grow: 1;
}

.page-game-bai__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #4FA8FF; /* Glow */
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    transform: rotate(45deg);
}

.page-game-bai__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #AFC4E8; /* Text Secondary */
    line-height: 1.6;
}

/* Final CTA Section */
.page-game-bai__cta-final-section {
    padding: 60px 0;
    background-color: #08162B; /* Deep Navy */
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-bai__main-title {
        font-size: 2.5em;
    }

    .page-game-bai__hero-description {
        font-size: 1.1em;
    }

    .page-game-bai__section-title {
        font-size: 2em;
    }

    .page-game-bai__game-grid,
    .page-game-bai__benefit-grid,
    .page-game-bai__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-game-bai {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-game-bai__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO Section */
    .page-game-bai__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-game-bai__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
        gap: 30px;
    }

    .page-game-bai__hero-content {
        flex: 1 1 100%;
    }

    .page-game-bai__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-game-bai__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-game-bai__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-game-bai__hero-image {
        flex: 1 1 100%;
        width: 100%;
    }

    .page-game-bai__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* General Sections */
    .page-game-bai__intro-section,
    .page-game-bai__games-section,
    .page-game-bai__benefits-section,
    .page-game-bai__guide-section,
    .page-game-bai__faq-section,
    .page-game-bai__cta-final-section {
        padding: 40px 0;
    }

    .page-game-bai__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-game-bai__text-block {
        font-size: 0.95em;
    }

    /* Games Section */
    .page-game-bai__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-bai__game-card img {
         /* Adjust height for mobile */
    }

    .page-game-bai__card-title {
        font-size: 1.3em;
    }

    /* Benefits Section */
    .page-game-bai__benefit-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-bai__benefit-title {
        font-size: 1.4em;
    }

    /* Guide Section */
    .page-game-bai__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-bai__guide-step-title {
        font-size: 1.2em;
    }

    /* FAQ Section */
    .page-game-bai__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-game-bai__faq-answer {
        padding: 0 20px 15px;
    }

    /* General Image Responsiveness */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}