/* style/game-bai.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --button-login: #EA7C07;
    --bg-white: #FFFFFF;
    --bg-dark-blue: #26A9E0;
}

.page-game-bai {
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Adjusted for shared header offset */
    padding-bottom: 60px;
    background-color: var(--bg-dark-blue);
    color: var(--text-light);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-game-bai__hero-content {
    padding: 40px 20px;
    max-width: 800px;
}

.page-game-bai__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-game-bai__hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-bai__btn-primary {
    background-color: var(--button-login);
    color: var(--text-light);
    border: 2px solid var(--button-login);
}

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

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

.page-game-bai__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Section General Styles */
.page-game-bai__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-game-bai__section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.page-game-bai__light-bg {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 60px 0;
}

.page-game-bai__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
}

.page-game-bai__dark-section .page-game-bai__section-title,
.page-game-bai__dark-section .page-game-bai__section-subtitle {
    color: var(--text-light);
}

/* Intro Section */
.page-game-bai__intro-section .page-game-bai__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: center;
}

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

.page-game-bai__game-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-dark);
}

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

.page-game-bai__game-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 10px 15px;
    color: var(--primary-color);
}

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

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

.page-game-bai__game-card-description {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 15px 20px;
    flex-grow: 1;
    color: #555;
}

.page-game-bai__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: auto;
}

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

.page-game-bai__feature-item {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-bai__feature-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-game-bai__feature-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* How to Play Section */
.page-game-bai__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-bai__step-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-game-bai__step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--button-login);
    margin-bottom: 15px;
}

.page-game-bai__step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-game-bai__step-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

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

/* FAQ Section */
.page-game-bai__faq-items {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: var(--secondary-color);
}

.page-game-bai__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--primary-color);
}

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

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-game-bai__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
    color: var(--button-login);
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    color: var(--button-login);
}

.page-game-bai__faq-answer {
    padding: 15px 20px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    border-top: 1px solid #eee;
}

.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-bai__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-game-bai__hero-description {
        font-size: 1.05rem;
    }
    .page-game-bai__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
    .page-game-bai__game-card-image {
        height: 180px;
    }
    .page-game-bai__feature-icon {
        width: 100px;
        height: 100px;
    }
}

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

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

    .page-game-bai__hero-content {
        padding: 30px 15px;
    }

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

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

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

    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-bai__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-bai__light-bg,
    .page-game-bai__dark-section {
        padding: 40px 0;
    }

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

    .page-game-bai__section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-game-bai__intro-section .page-game-bai__text-block {
        font-size: 0.95rem;
    }

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

    .page-game-bai__game-card-image {
        height: 160px; /* Adjust height for mobile */
    }

    .page-game-bai__game-card-title {
        font-size: 1.2rem;
    }

    .page-game-bai__game-card-description {
        font-size: 0.9rem;
    }

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

    .page-game-bai__feature-item,
    .page-game-bai__step-item {
        padding: 25px 15px;
    }

    .page-game-bai__feature-icon {
        width: 80px;
        height: 80px;
    }

    .page-game-bai__feature-title,
    .page-game-bai__step-title {
        font-size: 1.1rem;
    }

    .page-game-bai__step-number {
        font-size: 2rem;
    }

    .page-game-bai__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }

    .page-game-bai__faq-toggle {
        font-size: 1.2rem;
    }

    .page-game-bai__faq-answer {
        font-size: 0.95rem;
        padding: 10px 15px 15px;
    }

    /* General image and container responsive rules */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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;
    }

    .page-game-bai__hero-cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        overflow: hidden;
    }

    .page-game-bai__game-card {
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-game-bai__features,
    .page-game-bai__steps {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-bai__faq-items {
        padding-left: 15px;
        padding-right: 15px;
    }
}