/* style/game-bai.css */

/* General styles for the page */
.page-game-bai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly set body background for clarity */
}

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

.page-game-bai__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-game-bai__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

.page-game-bai__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit color from parent section */
}

/* Buttons */
.page-game-bai__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-bai__btn--primary {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-game-bai__btn--primary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-game-bai__btn--secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-game-bai__btn--secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

.page-game-bai__btn--outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-game-bai__btn--outline:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-game-bai__btn--link {
    background-color: transparent;
    color: #017439;
    border: none;
    padding: 0;
    text-decoration: underline;
}

.page-game-bai__btn--link:hover {
    color: #005a2e;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding if shared.css handles body padding-top */
    padding-bottom: 40px;
    background-color: #ffffff; /* Light background for hero */
}

.page-game-bai__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    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;
    color: #333333;
}

.page-game-bai__main-title {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #017439; /* Brand color for H1 */
}

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

.page-game-bai__hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

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

/* Why Choose Section (Module 1 equivalent, uses feature images) */
.page-game-bai__why-choose-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-game-bai__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-game-bai__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    color: #ffffff;
}

.page-game-bai__icon-box-media {
    width: 200px; /* Fixed size for circular image */
    height: 200px; /* Fixed size for circular image */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ffffff; /* White background for icons */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-game-bai__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.page-game-bai__feature-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-game-bai__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Game Types Section */
.page-game-bai__game-types-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #f9f9f9;
}

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

.page-game-bai__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    color: #333333;
}

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

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

.page-game-bai__game-card-title {
    font-size: 1.4em;
    font-weight: bold;
    padding: 15px 20px 5px;
}

.page-game-bai__game-card-title a {
    color: #017439;
    text-decoration: none;
}

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

.page-game-bai__game-card-text {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: #555555;
}

/* Guide Section */
.page-game-bai__guide-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-game-bai__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-game-bai__guide-step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-bai__guide-step-icon {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    color: #017439;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-game-bai__guide-step-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-game-bai__guide-step-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Make text block grow to align buttons */
}

/* Tips Section */
.page-game-bai__tips-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #f9f9f9;
}

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

.page-game-bai__tip-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    color: #333333;
}

.page-game-bai__tip-card:hover {
    transform: translateY(-5px);
}

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

.page-game-bai__tip-card-title {
    font-size: 1.4em;
    font-weight: bold;
    padding: 15px 20px 5px;
    color: #017439;
}

.page-game-bai__tip-card-text {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: #555555;
}

/* Promo Section */
.page-game-bai__promo-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-game-bai__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #ffffff;
}

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

.page-game-bai__promo-card-title {
    font-size: 1.4em;
    font-weight: bold;
    padding: 15px 20px 5px;
    color: #ffffff;
}

.page-game-bai__promo-card-text {
    padding: 0 20px 15px;
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-game-bai__cta-buttons--center {
    text-align: center;
}

/* FAQ Section */
.page-game-bai__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #f9f9f9;
}

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

.page-game-bai__faq-item {
    background-color: #ffffff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    color: #333333;
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #017439;
    list-style: none; /* For details/summary */
}

.page-game-bai__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-game-bai__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}

.page-game-bai__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-game-bai__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #e0e0e0;
}

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

.page-game-bai__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-game-bai__faq-answer a:hover {
    color: #005a2e;
}

/* Final CTA Section */
.page-game-bai__cta-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

.page-game-bai__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-bai__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-bai__main-title {
        font-size: 2.5em;
    }
    .page-game-bai__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-game-bai__hero-content,
    .page-game-bai__hero-image {
        flex: 1 1 100%;
    }
    .page-game-bai__hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* General mobile padding and font adjustments */
    .page-game-bai__container {
        padding: 30px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-game-bai__section-description {
        font-size: 1em !important;
        margin-bottom: 30px !important;
    }

    /* HERO Section */
    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px !important;
    }
    .page-game-bai__main-title {
        font-size: 2em !important;
        max-width: 100% !important;
    }
    .page-game-bai__hero-description {
        font-size: 1.1em !important;
    }
    .page-game-bai__hero-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }
    .page-game-bai__btn,
    .page-game-bai__hero-buttons .page-game-bai__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__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Why Choose Section (Module 1 equivalent) */
    .page-game-bai__why-choose-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .page-game-bai__features-grid {
        grid-template-columns: 1fr !important; /* Single column */
    }
    .page-game-bai__icon-box-media {
        width: 150px !important; /* Smaller circular image */
        height: 150px !important; /* Smaller circular image */
    }
    .page-game-bai__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Game Types Section */
    .page-game-bai__game-types-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .page-game-bai__game-cards-grid {
        grid-template-columns: 1fr !important; /* Single column */
    }
    .page-game-bai__game-card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Allow height to adjust */
    }

    /* Guide Section */
    .page-game-bai__guide-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .page-game-bai__guide-steps {
        grid-template-columns: 1fr !important; /* Single column */
    }

    /* Tips Section */
    .page-game-bai__tips-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .page-game-bai__tips-grid {
        grid-template-columns: 1fr !important; /* Single column */
    }
    .page-game-bai__tip-card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}