/* style/game-bai.css */

/* General Styles */
.page-game-bai {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Text Main */
    background-color: #F5F7FA; /* Background */
    line-height: 1.6;
    font-size: 16px;
}

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

.page-game-bai__section-title {
    font-size: 36px;
    color: #E53935; /* Main color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-game-bai__section-title--light {
    color: #ffffff; /* White text on dark background */
}

.page-game-bai__text-block {
    text-align: center;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__text-block--light {
    color: #f0f0f0; /* Lighter text for dark backgrounds */
}

/* Buttons */
.page-game-bai__cta-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

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

.page-game-bai__btn-secondary {
    background-color: #ffffff;
    color: #E53935; /* Main color */
    border: 2px solid #E53935; /* Main color border */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-game-bai__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-game-bai__btn-link {
    display: inline-block;
    color: #E53935; /* Main color */
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-game-bai__btn-link:hover {
    color: #FF5A4F; /* Auxiliary color */
    text-decoration: underline;
}

/* Card Styles */
.page-game-bai__card {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Image Styles (General) */
.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding to avoid double header offset */
    padding-bottom: 60px;
    background-color: #F5F7FA; /* Background */
}

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

.page-game-bai__hero-content {
    flex: 1;
    max-width: 55%;
    text-align: left;
}

.page-game-bai__hero-title {
    font-size: 48px;
    color: #E53935; /* Main color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-game-bai__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #333333; /* Text Main */
}

.page-game-bai__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

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

.page-game-bai__hero-image img {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

/* Why Choose Section (Feature) */
.page-game-bai__why-choose-section {
    padding: 60px 0;
    background-color: #ffffff; /* Card BG */
}

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

.page-game-bai__icon-box-media {
    width: 240px; /* Desktop size */
    height: 240px; /* Desktop size */
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #E53935; /* Main color */
    box-shadow: 0 0 0 8px rgba(229, 57, 53, 0.2);
}

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

.page-game-bai__icon-box-title {
    font-size: 24px;
    color: #E53935; /* Main color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-bai__icon-box-description {
    font-size: 16px;
    color: #333333; /* Text Main */
}

/* Popular Games Section */
.page-game-bai__popular-games-section {
    padding: 60px 0;
    background-color: #F5F7FA; /* Background */
}

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

.page-game-bai__game-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px; /* Adjusted padding */
}

.page-game-bai__game-card img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

.page-game-bai__game-card-title {
    font-size: 22px;
    color: #E53935; /* Main color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-game-bai__game-card-description {
    font-size: 15px;
    color: #333333; /* Text Main */
    flex-grow: 1; /* Allow description to take available space */
}

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

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

.page-game-bai__guide-steps {
    flex: 1;
    max-width: 55%;
}

.page-game-bai__guide-step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    text-align: left;
}

.page-game-bai__guide-step-number {
    font-size: 32px;
    font-weight: bold;
    color: #E53935; /* Main color */
    margin-right: 15px;
    min-width: 40px; /* Ensure number doesn't wrap */
    text-align: center;
}

.page-game-bai__guide-step-title {
    font-size: 20px;
    color: #E53935; /* Main color */
    margin-bottom: 5px;
    font-weight: bold;
}

.page-game-bai__guide-step-description {
    font-size: 16px;
    color: #333333; /* Text Main */
}

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

.page-game-bai__guide-image img {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Promo Section */
.page-game-bai__promo-section {
    padding: 60px 0;
    background-color: #E53935; /* Main color for dark background */
    color: #ffffff; /* White text */
}

.page-game-bai__promo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.page-game-bai__promo-content img {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

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

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

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

.page-game-bai__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    color: #333333; /* Text Main */
    cursor: pointer;
    outline: none;
    list-style: none; /* Hide default marker */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.page-game-bai__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-game-bai__faq-qtext {
    flex-grow: 1;
    text-align: left;
    color: #E53935; /* Main color for questions */
}

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

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-game-bai__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    color: #333333; /* Text Main */
    text-align: left;
}

/* Final CTA Section */
.page-game-bai__cta-final-section {
    padding: 60px 0;
    background-color: #E53935; /* Main color for dark background */
    color: #ffffff; /* White text */
    text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-bai__hero-title {
        font-size: 42px;
    }
    .page-game-bai__hero-description {
        font-size: 18px;
    }
    .page-game-bai__section-title {
        font-size: 32px;
    }
    .page-game-bai__icon-box-media {
        width: 200px;
        height: 200px;
    }
    .page-game-bai__guide-step-title {
        font-size: 18px;
    }
    .page-game-bai__guide-step-description {
        font-size: 15px;
    }
}


@media (max-width: 768px) {
    /* General Mobile */
    .page-game-bai {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    .page-game-bai__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-game-bai__section-title {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important; /* Ensure images fill space without distortion */
    }

    /* HERO Section */
    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px !important;
    }
    .page-game-bai__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px !important;
        gap: 30px !important;
    }
    .page-game-bai__hero-content {
        max-width: 100%;
        text-align: center;
    }
    .page-game-bai__hero-title {
        font-size: 32px !important;
        margin-bottom: 15px !important;
    }
    .page-game-bai__hero-description {
        font-size: 16px !important;
        margin-bottom: 25px !important;
    }
    .page-game-bai__hero-cta-buttons {
        flex-direction: column;
        gap: 15px !important;
        justify-content: center;
        align-items: center;
        width: 100%; /* Ensure button container is full width */
    }
    .page-game-bai__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
    .page-game-bai__hero-image {
        max-width: 100%;
    }

    /* Intro Section */
    .page-game-bai__intro-section {
        padding: 40px 0 !important;
    }

    /* Why Choose Section (Feature) */
    .page-game-bai__why-choose-section {
        padding: 40px 0 !important;
    }
    .page-game-bai__icon-box-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    .page-game-bai__icon-box-media {
        width: 160px !important; /* Smaller square for mobile */
        height: 160px !important; /* Smaller square for mobile */
        margin-bottom: 15px !important;
        border-width: 3px !important;
        box-shadow: 0 0 0 6px rgba(229, 57, 53, 0.15) !important;
    }
    .page-game-bai__icon-box-title {
        font-size: 20px !important;
    }
    .page-game-bai__icon-box-description {
        font-size: 15px !important;
    }
    .page-game-bai__card {
        padding: 20px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }

    /* Popular Games Section */
    .page-game-bai__popular-games-section {
        padding: 40px 0 !important;
    }
    .page-game-bai__game-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    .page-game-bai__game-card-title {
        font-size: 20px !important;
    }
    .page-game-bai__game-card-description {
        font-size: 15px !important;
    }

    /* Guide Section */
    .page-game-bai__guide-section {
        padding: 40px 0 !important;
    }
    .page-game-bai__guide-content {
        flex-direction: column-reverse; /* Image first, then steps */
        gap: 30px !important;
    }
    .page-game-bai__guide-steps {
        max-width: 100%;
    }
    .page-game-bai__guide-step-item {
        margin-bottom: 20px !important;
    }
    .page-game-bai__guide-step-number {
        font-size: 28px !important;
        min-width: 35px !important;
    }
    .page-game-bai__guide-step-title {
        font-size: 18px !important;
    }
    .page-game-bai__guide-step-description {
        font-size: 15px !important;
    }
    .page-game-bai__guide-image {
        max-width: 100%;
    }

    /* Promo Section */
    .page-game-bai__promo-section {
        padding: 40px 0 !important;
    }
    .page-game-bai__promo-content {
        gap: 20px !important;
    }

    /* FAQ Section */
    .page-game-bai__faq-section {
        padding: 40px 0 !important;
    }
    .page-game-bai__faq-list {
        margin-top: 30px !important;
    }
    .page-game-bai__faq-item {
        margin-bottom: 10px !important;
    }
    .page-game-bai__faq-item summary {
        padding: 15px 20px !important;
        font-size: 16px !important;
    }
    .page-game-bai__faq-qtext {
        font-size: 16px !important;
    }
    .page-game-bai__faq-toggle {
        font-size: 20px !important;
    }
    .page-game-bai__faq-answer {
        padding: 0 20px 15px 20px !important;
        font-size: 15px !important;
    }

    /* Final CTA Section */
    .page-game-bai__cta-final-section {
        padding: 40px 0 !important;
    }
    .page-game-bai__cta-final-buttons {
        flex-direction: column;
        gap: 15px !important;
        margin-top: 25px !important;
    }
}