/* Base Styles */
.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: 0 16px;
    box-sizing: border-box;
}

.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    background-color: #F4F7FB;
}

.page-game-bai__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
}

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

.page-game-bai__main-title {
    font-size: 2.8em;
    font-weight: 700;
    color: #1F2D3D;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-game-bai__description {
    font-size: 1.1em;
    color: #1F2D3D;
    margin-bottom: 30px;
}

.page-game-bai__cta-buttons {
    display: flex;
    gap: 15px;
    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: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-game-bai__btn-secondary {
    background: #ffffff; /* Card BG */
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
}

.page-game-bai__btn-secondary:hover {
    background: #2F6BFF;
    color: #ffffff;
}

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

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

.page-game-bai__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #1F2D3D;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-game-bai__text-block {
    font-size: 1em;
    color: #1F2D3D;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__intro-section {
    padding: 60px 0;
}

.page-game-bai__light-bg {
    background-color: #F4F7FB; /* Background */
    color: #1F2D3D; /* Text Main */
}

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

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

.page-game-bai__game-card {
    background: #ffffff; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-game-bai__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for cards */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-game-bai__game-card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #1F2D3D;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-game-bai__game-card-description {
    font-size: 0.95em;
    color: #1F2D3D;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-game-bai__game-card-button {
    margin: 0 auto;
}

.page-game-bai__why-choose-section {
    padding: 80px 0;
}

.page-game-bai__dark-bg {
    background-color: #2F6BFF; /* Main color */
    color: #ffffff;
}

.page-game-bai__dark-bg .page-game-bai__section-title,
.page-game-bai__dark-bg .page-game-bai__feature-title,
.page-game-bai__dark-bg .page-game-bai__feature-description {
    color: #ffffff;
}

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

.page-game-bai__feature-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-bai__feature-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-game-bai__feature-description {
    font-size: 0.95em;
    line-height: 1.5;
}

.page-game-bai__guide-section {
    padding: 60px 0;
}

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

.page-game-bai__guide-step-item {
    background: #ffffff; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-game-bai__guide-step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(47, 107, 255, 0.3);
}

.page-game-bai__guide-step-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #1F2D3D;
    margin-bottom: 10px;
}

.page-game-bai__guide-step-description {
    font-size: 0.95em;
    color: #1F2D3D;
}

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

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

.page-game-bai__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-game-bai__faq-item {
    background: #ffffff; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-game-bai__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.1em;
    color: #1F2D3D;
    cursor: pointer;
    outline: none;
    user-select: none;
}

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

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

.page-game-bai__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: #2F6BFF;
    margin-left: 15px;
    width: 24px;
    text-align: center;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    content: '−';
}

.page-game-bai__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    color: #1F2D3D;
    line-height: 1.7;
}

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

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

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

    .page-game-bai__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-game-bai__hero-content {
        text-align: center;
    }

    .page-game-bai__cta-buttons {
        justify-content: center;
    }

    .page-game-bai__game-card-image {
        height: 180px;
    }
}

/* Responsive Styles for 768px (Mobile) */
@media (max-width: 768px) {
    /* HERO Section */
    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body for header offset */
        padding-bottom: 40px !important;
    }
    .page-game-bai__hero-container {
        padding: 20px 15px !important;
        gap: 30px !important;
    }
    .page-game-bai__main-title {
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }
    .page-game-bai__description {
        font-size: 1em !important;
        margin-bottom: 25px !important;
    }
    .page-game-bai__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-game-bai__hero-image {
        min-width: unset !important;
        width: 100% !important;
        padding: 0 15px;
    }
    .page-game-bai__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    }

    /* General Sections & Text */
    .page-game-bai__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-game-bai__section-title {
        font-size: 1.6em !important;
        margin-bottom: 30px !important;
        padding-top: 30px !important;
    }
    .page-game-bai__text-block {
        font-size: 0.9em !important;
        margin-bottom: 20px !important;
    }
    .page-game-bai__intro-section,
    .page-game-bai__games-section,
    .page-game-bai__why-choose-section,
    .page-game-bai__guide-section,
    .page-game-bai__faq-section {
        padding: 40px 0 !important;
    }

    /* Game List Section */
    .page-game-bai__game-list {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-game-bai__game-card {
        padding-bottom: 15px !important;
    }
    .page-game-bai__game-card-image {
        height: 160px !important;
    }
    .page-game-bai__game-card-title {
        font-size: 1.2em !important;
    }
    .page-game-bai__game-card-description {
        font-size: 0.85em !important;
    }

    /* Why Choose Section */
    .page-game-bai__features-list {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-game-bai__feature-item {
        padding: 25px !important;
    }
    .page-game-bai__feature-title {
        font-size: 1.1em !important;
    }
    .page-game-bai__feature-description {
        font-size: 0.85em !important;
    }

    /* Guide Section */
    .page-game-bai__guide-steps {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-game-bai__guide-step-item {
        padding: 25px !important;
    }
    .page-game-bai__guide-step-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5em !important;
        margin-bottom: 15px !important;
    }
    .page-game-bai__guide-step-title {
        font-size: 1.1em !important;
    }
    .page-game-bai__guide-step-description {
        font-size: 0.85em !important;
    }
    .page-game-bai__cta-center {
        margin-top: 40px !important;
    }

    /* FAQ Section */
    .page-game-bai__faq-list {
        margin-top: 30px !important;
    }
    .page-game-bai__faq-item summary {
        padding: 18px 20px !important;
        font-size: 1em !important;
    }
    .page-game-bai__faq-toggle {
        font-size: 1.3em !important;
    }
    .page-game-bai__faq-answer {
        padding: 0 20px 18px !important;
        font-size: 0.9em !important;
    }

    /* Universal Image Adaptation */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-game-bai__card,
    .page-game-bai__section,
    .page-game-bai__container,
    .page-game-bai__game-list,
    .page-game-bai__features-list,
    .page-game-bai__guide-steps,
    .page-game-bai__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}