/* style/game-bai.css */
.page-game-bai {
    background-color: #B71C1C; /* Custom Background */
    color: #FFF5E1; /* Custom Text Main */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-game-bai__hero-section {
    background: #B71C1C; /* Custom Background */
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
    padding-bottom: 40px;
    color: #FFF5E1;
}

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

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

.page-game-bai__hero-title {
    font-size: 3.2em;
    font-weight: 700;
    color: #F4D34D; /* Custom Gold */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.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: 8px;
}

/* General Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-play {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom Button */
    color: #7A0E0E; /* Custom Deep Red for contrast */
    border: none;
}

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

.page-game-bai__btn-secondary {
    background: #7A0E0E; /* Custom Deep Red */
    color: #FFD86A; /* Custom Gold for contrast */
    border: 2px solid #FFD86A; /* Custom Gold */
}

.page-game-bai__btn-secondary:hover {
    background: #FFD86A;
    color: #7A0E0E;
}

.page-game-bai__btn-play {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom Button */
    color: #7A0E0E; /* Custom Deep Red for contrast */
    border: none;
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-game-bai__btn-play:hover {
    opacity: 0.9;
}

/* Section Titles */
.page-game-bai__section-title {
    font-size: 2.5em;
    color: #F4D34D; /* Custom Gold */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.page-game-bai__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-game-bai__feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-game-bai__feature-item {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    text-align: center;
    background: #D32F2F; /* Custom Card BG */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.page-game-bai__icon-box-media {
    width: 180px;
    height: 180px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #F2B544; /* Custom Border */
}

.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;
    color: #F4D34D; /* Custom Gold */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-game-bai__feature-description {
    font-size: 1em;
    color: #FFF5E1;
}

/* Game Categories Section */
.page-game-bai__game-categories {
    padding: 60px 0;
    background-color: #B71C1C;
}

.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: #D32F2F; /* Custom Card BG */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    border: 1px solid #F2B544; /* Custom Border */
}

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

.page-game-bai__game-title {
    font-size: 1.4em;
    margin: 20px 10px 10px;
    font-weight: 600;
}

.page-game-bai__game-title a {
    color: #F4D34D; /* Custom Gold */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-bai__game-title a:hover {
    color: #FFD86A;
}

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

.page-game-bai__more-games-cta {
    text-align: center;
    margin-top: 50px;
}

/* Why Choose Us Section */
.page-game-bai__why-choose-us {
    padding: 60px 0;
    background-color: #7A0E0E; /* Custom Deep Red */
    color: #FFF5E1;
}

.page-game-bai__why-choose-us .page-game-bai__section-title {
    color: #F4D34D;
}

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

.page-game-bai__benefit-item {
    background: #D32F2F; /* Custom Card BG */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544;
}

.page-game-bai__benefit-item img {
    
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__benefit-title {
    font-size: 1.4em;
    color: #F4D34D; /* Custom Gold */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-game-bai__benefit-description {
    font-size: 0.95em;
    color: #FFF5E1;
}

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

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

.page-game-bai__guide-step-item {
    background: #D32F2F; /* Custom Card BG */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid #F2B544;
}

.page-game-bai__guide-step-title {
    font-size: 1.3em;
    color: #FFD86A; /* Lighter Gold for steps */
    margin-bottom: 10px;
    font-weight: 600;
}

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

.page-game-bai__guide-image {
    text-align: center;
    margin-bottom: 40px;
}

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

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

/* Promo Section */
.page-game-bai__promo-section {
    padding: 60px 0;
    background-color: #7A0E0E; /* Custom Deep Red */
    color: #FFF5E1;
}

.page-game-bai__promo-section .page-game-bai__section-title {
    color: #F4D34D;
}

.page-game-bai__promo-image {
    text-align: center;
    margin-bottom: 40px;
}

.page-game-bai__promo-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

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

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

.page-game-bai__faq-item {
    background: #D32F2F; /* Custom Card BG */
    border: 1px solid #F2B544; /* Custom Border */
    border-radius: 10px;
    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;
    font-weight: 600;
    color: #FFD86A; /* Custom Gold */
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

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

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

.page-game-bai__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFD86A;
}

.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: #FFF5E1;
}

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

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

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

/* Bottom CTA Section */
.page-game-bai__cta-bottom {
    padding: 60px 0;
    background-color: #B71C1C;
}

.page-game-bai__cta-bottom .page-game-bai__section-title {
    color: #F4D34D;
}

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

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

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

    .page-game-bai__feature-item {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .page-game-bai__container,
    .page-game-bai__hero-container {
        padding: 20px 15px !important; /* Mobile padding */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-game-bai__hero-section {
        padding-top: 10px !important;
        padding-bottom: 20px !important;
    }

    .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%;
        min-width: unset;
    }

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

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

    .page-game-bai__hero-cta-buttons,
    .page-game-bai__cta-buttons-bottom {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }

    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary,
    .page-game-bai__btn-play,
    .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;
        padding-right: 15px;
    }

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

    .page-game-bai__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-game-bai__feature-grid {
        flex-direction: column;
        gap: 20px;
    }

    .page-game-bai__feature-item {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 20px;
    }

    .page-game-bai__icon-box-media {
        width: 150px; /* Still square */
        height: 150px; /* Still square */
        margin-bottom: 15px;
        border-width: 2px;
    }

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

    .page-game-bai__game-card img {
        
    }

    .page-game-bai__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-bai__benefit-item {
        padding: 20px;
    }

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

    .page-game-bai__guide-step-item {
        padding: 20px;
    }

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

    .page-game-bai__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* General image responsive rules for content area */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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