/* style/game-bai.css */

.page-game-bai {
    font-family: Arial, sans-serif;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
    line-height: 1.6;
}

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

.page-game-bai__section-title {
    color: #1F2D3D; /* Text Main */
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.page-game-bai__text-block {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: #F4F7FB; /* Background */
}

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

.page-game-bai__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
    color: #1F2D3D; /* Text Main */
}

.page-game-bai__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1F2D3D; /* Text Main */
}

.page-game-bai__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
}

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

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

/* Buttons */
.page-game-bai__cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
    color: #ffffff;
    border: none;
}

.page-game-bai__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-game-bai__btn-secondary {
    background-color: #ffffff;
    color: #2F6BFF; /* Primary color */
    border: 2px solid #2F6BFF; /* Primary color */
    margin-left: 20px;
}

.page-game-bai__btn-secondary:hover {
    background-color: #F4F7FB; /* Background */
    color: #1F2D3D; /* Text Main */
    border-color: #1F2D3D; /* Text Main */
}

.page-game-bai__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

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

/* Intro Section */
.page-game-bai__intro-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

/* Game Types Section */
.page-game-bai__game-types-section {
    padding: 60px 0;
    background-color: #ffffff; /* Card BG */
}

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

.page-game-bai__game-card {
    background-color: #ffffff; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-game-bai__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.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: 22px;
    font-weight: bold;
    margin: 20px 20px 10px;
    color: #1F2D3D; /* Text Main */
}

.page-game-bai__card-title a {
    text-decoration: none;
    color: #2F6BFF; /* Primary color */
}

.page-game-bai__card-title a:hover {
    text-decoration: underline;
}

.page-game-bai__card-description {
    font-size: 15px;
    color: #1F2D3D; /* Text Main */
    padding: 0 20px 20px;
    text-align: left;
}

/* Guide Section */
.page-game-bai__guide-section {
    padding: 60px 0;
    background-color: #2F6BFF; /* Primary color for dark background */
    color: #ffffff;
}

.page-game-bai__guide-section .page-game-bai__section-title,
.page-game-bai__guide-section .page-game-bai__text-block {
    color: #ffffff;
}

.page-game-bai__guide-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-game-bai__guide-text {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-game-bai__guide-list {
    list-style: decimal;
    padding-left: 20px;
    margin-bottom: 30px;
    font-size: 16px;
}

.page-game-bai__guide-list li {
    margin-bottom: 10px;
}

.page-game-bai__guide-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-game-bai__guide-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Promo Section */
.page-game-bai__promo-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

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

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

.page-game-bai__faq-item {
    background-color: #ffffff; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #1F2D3D; /* Text Main */
    cursor: pointer;
    background-color: #F4F7FB; /* Background */
    border-bottom: 1px solid #D6E2FF; /* Border */
    list-style: none; /* For details/summary */
}

.page-game-bai__faq-item[open] > .page-game-bai__faq-question {
    border-bottom: none;
}

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

.page-game-bai__faq-toggle {
    font-size: 24px;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #2F6BFF; /* Primary color */
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-game-bai__faq-answer {
    padding: 0 20px 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #1F2D3D; /* Text Main */
}

.page-game-bai__faq-answer p {
    margin-bottom: 0;
    text-align: left;
}

/* CTA Section */
.page-game-bai__cta-section {
    padding: 80px 0;
    background-color: #2F6BFF; /* Primary color for dark background */
    color: #ffffff;
    text-align: center;
}

.page-game-bai__cta-section .page-game-bai__section-title,
.page-game-bai__cta-section .page-game-bai__text-block {
    color: #ffffff;
}

.page-game-bai__cta-container {
    max-width: 900px; /* Slightly narrower for CTA */
}


/* --- Responsive Design --- */

/* All images general responsive */
.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* All containers general responsive */
.page-game-bai__section,
.page-game-bai__card,
.page-game-bai__container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Ensure content doesn't overflow */
}


@media (max-width: 1024px) {
    .page-game-bai__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-game-bai__hero-content {
        text-align: center;
    }
    .page-game-bai__hero-image {
        order: -1; /* Image above text on smaller screens */
    }
    .page-game-bai__guide-content {
        flex-direction: column;
    }
    .page-game-bai__guide-text {
        order: 1;
    }
    .page-game-bai__guide-image {
        order: -1;
    }
    .page-game-bai__btn-secondary {
        margin-left: 0;
        margin-top: 15px; /* Add margin for stacked buttons */
    }
    .page-game-bai__button-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-game-bai__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px !important;
    }
    .page-game-bai__hero-container {
        padding: 20px 15px !important;
        gap: 30px !important;
    }
    .page-game-bai__hero-title {
        font-size: clamp(2em, 8vw, 2.5em) !important;
        margin-bottom: 15px !important;
    }
    .page-game-bai__hero-description {
        font-size: 16px !important;
        margin-bottom: 25px !important;
    }
    .page-game-bai__hero-content {
        min-width: unset !important;
    }
    .page-game-bai__hero-image {
        min-width: unset !important;
    }

    /* General Sections and Text */
    .page-game-bai__container {
        padding: 20px 15px !important;
    }
    .page-game-bai__section-title {
        font-size: 26px !important;
        margin-bottom: 20px !important;
    }
    .page-game-bai__text-block {
        font-size: 15px !important;
        margin-bottom: 15px !important;
    }

    /* Buttons */
    .page-game-bai__cta-button,
    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary,
    .page-game-bai a[class*="button"],
    .page-game-bai a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-game-bai__btn-secondary {
        margin-left: 0 !important;
        margin-top: 10px !important; /* Adjust spacing for stacked buttons */
    }
    .page-game-bai__button-group,
    .page-game-bai__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        padding-left: 15px !important; /* Add padding to button containers */
        padding-right: 15px !important;
    }

    /* Game Types Section */
    .page-game-bai__game-grid {
        grid-template-columns: 1fr !important; /* Single column for game cards */
        gap: 20px !important;
    }
    .page-game-bai__game-card img {
         /* Adjust image height for mobile cards */
    }
    .page-game-bai__card-title {
        font-size: 20px !important;
        margin: 15px 15px 8px !important;
    }
    .page-game-bai__card-description {
        font-size: 14px !important;
        padding: 0 15px 15px !important;
    }

    /* Guide Section */
    .page-game-bai__guide-content {
        flex-direction: column !important;
        gap: 30px !important;
    }
    .page-game-bai__guide-text {
        min-width: unset !important;
        order: 1 !important;
    }
    .page-game-bai__guide-image {
        min-width: unset !important;
        order: -1 !important;
    }
    .page-game-bai__guide-list {
        font-size: 15px !important;
        padding-left: 18px !important;
    }

    /* FAQ Section */
    .page-game-bai__faq-question {
        padding: 15px !important;
        font-size: 16px !important;
    }
    .page-game-bai__faq-answer {
        padding: 0 15px 15px !important;
        font-size: 15px !important;
    }
    .page-game-bai__faq-toggle {
        font-size: 20px !important;
    }

    /* CTA Section */
    .page-game-bai__cta-section {
        padding: 60px 0 !important;
    }
}