/* style/game-bai.css */

/* Variables from custom colors */
:root {
    --page-game-bai-primary-color: #FF8C1A;
    --page-game-bai-secondary-color: #FFA53A;
    --page-game-bai-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --page-game-bai-card-bg: #17191F;
    --page-game-bai-background: #0D0E12;
    --page-game-bai-text-main: #FFF3E6;
    --page-game-bai-border-color: #A84F0C;
    --page-game-bai-glow-color: #FFB04D;
    --page-game-bai-deep-orange: #D96800;
}

.page-game-bai {
    background-color: var(--page-game-bai-background); /* Dark background */
    color: var(--page-game-bai-text-main); /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-game-bai__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--page-game-bai-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-game-bai__text-block {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--page-game-bai-text-main);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__text-block .highlight {
    color: var(--page-game-bai-secondary-color);
    font-weight: bold;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Assuming shared.css handles body padding */
    padding-bottom: 60px;
    background-color: var(--page-game-bai-background);
}

.page-game-bai__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.page-game-bai__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
    color: var(--page-game-bai-text-main);
}

.page-game-bai__hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--page-game-bai-text-main);
}

.page-game-bai__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--page-game-bai-text-main);
}

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

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

.page-game-bai__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 30px var(--page-game-bai-glow-color);
}

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

.page-game-bai__btn-primary {
    background: var(--page-game-bai-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

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

.page-game-bai__btn-secondary {
    background: transparent;
    color: var(--page-game-bai-secondary-color);
    border: 2px solid var(--page-game-bai-secondary-color);
}

.page-game-bai__btn-secondary:hover {
    background: rgba(255, 165, 58, 0.1);
    transform: translateY(-2px);
}

.page-game-bai__btn-small {
    padding: 10px 20px;
    font-size: 16px;
}

.page-game-bai__btn-large {
    padding: 18px 35px;
    font-size: 20px;
}

/* Intro Section */
.page-game-bai__intro-section {
    background-color: var(--page-game-bai-card-bg);
    padding-bottom: 60px;
}

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

.page-game-bai__icon-box {
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
    background-color: var(--page-game-bai-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-game-bai-border-color);
}

.page-game-bai__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--page-game-bai-secondary-color);
    box-shadow: 0 0 15px var(--page-game-bai-glow-color);
}

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

.page-game-bai__icon-box-title {
    font-size: 24px;
    color: var(--page-game-bai-secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-game-bai__icon-box-description {
    font-size: 16px;
    color: var(--page-game-bai-text-main);
}

/* Game List Section */
.page-game-bai__game-list-section {
    background-color: var(--page-game-bai-background);
    padding-bottom: 60px;
}

.page-game-bai__game-card {
    background-color: var(--page-game-bai-card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-game-bai-border-color);
}

.page-game-bai__game-card-title {
    font-size: 28px;
    color: var(--page-game-bai-secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
}

.page-game-bai__game-card-description {
    font-size: 17px;
    color: var(--page-game-bai-text-main);
    margin-bottom: 25px;
    text-align: center;
}

.page-game-bai__game-trial-frame {
    border: none;
    border-radius: 8px;
    width: 100%;
    height: 600px;
    background-color: #000;
}

/* Benefits Section */
.page-game-bai__benefits-section {
    background-color: var(--page-game-bai-card-bg);
    padding-bottom: 60px;
}

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

.page-game-bai__benefit-card {
    background-color: var(--page-game-bai-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-game-bai-border-color);
    text-align: center;
}

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

.page-game-bai__benefit-card-title {
    font-size: 22px;
    color: var(--page-game-bai-secondary-color);
    margin: 20px 15px 10px;
    font-weight: 700;
}

.page-game-bai__benefit-card-description {
    font-size: 16px;
    color: var(--page-game-bai-text-main);
    padding: 0 15px 20px;
}

/* Guide Section */
.page-game-bai__guide-section {
    background-color: var(--page-game-bai-background);
    padding-bottom: 60px;
}

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

.page-game-bai__guide-step {
    background-color: var(--page-game-bai-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-game-bai-border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-game-bai__guide-step-title {
    font-size: 24px;
    color: var(--page-game-bai-primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-game-bai__guide-step-description {
    font-size: 16px;
    color: var(--page-game-bai-text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-game-bai__guide-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 60px auto 0;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 140, 26, 0.5);
}

/* Promo Section */
.page-game-bai__promo-section {
    background-color: var(--page-game-bai-card-bg);
    padding-bottom: 60px;
}

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

.page-game-bai__promo-card {
    background-color: var(--page-game-bai-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-game-bai-border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-game-bai__promo-card-title {
    font-size: 22px;
    color: var(--page-game-bai-secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-game-bai__promo-card-description {
    font-size: 16px;
    color: var(--page-game-bai-text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-game-bai__promo-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 60px auto 0;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 140, 26, 0.5);
}

/* FAQ Section */
.page-game-bai__faq-section {
    background-color: var(--page-game-bai-background);
    padding-bottom: 60px;
}

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

.page-game-bai__faq-item {
    background-color: var(--page-game-bai-card-bg);
    border: 1px solid var(--page-game-bai-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    color: var(--page-game-bai-secondary-color);
    cursor: pointer;
    list-style: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

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

.page-game-bai__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.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: 16px;
    color: var(--page-game-bai-text-main);
    line-height: 1.7;
}

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

/* Why Choose Section */
.page-game-bai__why-choose-section {
    background-color: var(--page-game-bai-card-bg);
    padding-bottom: 60px;
}

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

.page-game-bai__why-choose-item {
    background-color: var(--page-game-bai-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-game-bai-border-color);
    text-align: center;
}

.page-game-bai__why-choose-item-title {
    font-size: 24px;
    color: var(--page-game-bai-primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-game-bai__why-choose-item-description {
    font-size: 16px;
    color: var(--page-game-bai-text-main);
}

.page-game-bai__why-choose-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 60px auto 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 140, 26, 0.5);
}

/* Conclusion Section */
.page-game-bai__conclusion-section {
    background-color: var(--page-game-bai-background);
    padding-bottom: 60px;
    text-align: center;
}

/* Global image and button responsive styles */
.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
}

.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%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-bai__hero-cta-buttons,
.page-game-bai__button-group,
.page-game-bai__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-game-bai {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-game-bai__container {
        padding: 20px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-game-bai__text-block {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* HERO Section Mobile */
    .page-game-bai__hero-section {
        padding-top: 10px !important; /* Specific override for mobile, relying on body padding */
        padding-bottom: 40px;
    }

    .page-game-bai__hero-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }

    .page-game-bai__hero-content {
        text-align: center;
        flex: 1 1 100%;
    }

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

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

    .page-game-bai__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 17px !important;
    }

    .page-game-bai__hero-image {
        flex: 1 1 100%;
    }

    /* Intro Section Mobile */
    .page-game-bai__icon-boxes {
        flex-direction: column;
        gap: 20px;
    }

    .page-game-bai__icon-box {
        max-width: 100%;
        padding: 25px;
    }

    .page-game-bai__icon-box-media {
        width: 180px;
        height: 180px;
        margin-bottom: 15px;
    }

    .page-game-bai__icon-box-title {
        font-size: 20px;
    }

    .page-game-bai__icon-box-description {
        font-size: 15px;
    }

    /* Game List Section Mobile */
    .page-game-bai__game-card {
        padding: 25px;
        margin-bottom: 20px;
    }

    .page-game-bai__game-card-title {
        font-size: 24px;
    }

    .page-game-bai__game-card-description {
        font-size: 15px;
    }

    .page-game-bai__game-trial-frame {
        height: 400px; /* Adjust iframe height for mobile */
    }

    /* Benefits Section Mobile */
    .page-game-bai__benefit-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-game-bai__benefit-card-title {
        font-size: 20px;
    }

    .page-game-bai__benefit-card-description {
        font-size: 15px;
    }

    /* Guide Section Mobile */
    .page-game-bai__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-bai__guide-step-title {
        font-size: 20px;
    }

    .page-game-bai__guide-step-description {
        font-size: 15px;
    }

    .page-game-bai__guide-image {
        margin-top: 40px;
    }

    /* Promo Section Mobile */
    .page-game-bai__promo-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-bai__promo-card-title {
        font-size: 20px;
    }

    .page-game-bai__promo-card-description {
        font-size: 15px;
    }

    .page-game-bai__promo-image {
        margin-top: 40px;
    }

    /* FAQ Section Mobile */
    .page-game-bai__faq-list {
        margin-top: 30px;
    }

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

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

    /* Why Choose Section Mobile */
    .page-game-bai__why-choose-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-bai__why-choose-item-title {
        font-size: 20px;
    }

    .page-game-bai__why-choose-item-description {
        font-size: 15px;
    }

    .page-game-bai__why-choose-image {
        margin-top: 40px;
    }

    /* Conclusion Section Mobile */
    .page-game-bai__conclusion-section .page-game-bai__section-title {
        font-size: 28px;
    }

    .page-game-bai__conclusion-section .page-game-bai__text-block {
        font-size: 16px;
    }

    .page-game-bai__btn-large {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 25px !important;
        font-size: 18px !important;
    }

    /* General image and container handling for mobile */
    .page-game-bai img:not(.page-game-bai__icon-box-media img) {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-game-bai__section,
    .page-game-bai__card,
    .page-game-bai__container,
    .page-game-bai__icon-box,
    .page-game-bai__game-card,
    .page-game-bai__benefit-card,
    .page-game-bai__guide-step,
    .page-game-bai__promo-card,
    .page-game-bai__faq-item,
    .page-game-bai__why-choose-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Special handling for circular images to maintain aspect ratio */
    .page-game-bai__icon-box-media {
        width: 200px !important; /* Maintain square shape */
        height: 200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .page-game-bai__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Button group specific handling for mobile */
    .page-game-bai__hero-cta-buttons,
    .page-game-bai__button-group {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
}