/* Base styles for the game-bai page */
.page-game-bai {
    font-family: Arial, sans-serif;
    color: #333333;
    background-color: #f8f9fa;
}

.page-game-bai h1,
.page-game-bai h2,
.page-game-bai h3 {
    color: #000080;
    text-align: center;
    margin-bottom: 20px;
}

.page-game-bai h1 {
    color: #FFD700;
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -1px;
}

.page-game-bai h2 {
    font-size: clamp(1.8em, 4vw, 2.8em);
    margin-top: 40px;
}

.page-game-bai h3 {
    font-size: clamp(1.5em, 3vw, 2.2em);
    margin-top: 30px;
}

.page-game-bai__section-title {
    color: #000080;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-bai__section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    line-height: 1.6;
}

.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, transform 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-bai__btn--primary {
    background-color: #FFD700;
    color: #000080;
    border: 2px solid #FFD700;
}

.page-game-bai__btn--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

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

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

.page-game-bai__btn--small {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px;
    margin-top: 0;
    background-color: #000080;
    color: #f8f9fa;
    padding-bottom: 50px;
}

.page-game-bai__hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
    align-items: center;
}

.page-game-bai__hero-content {
    text-align: left;
}

.page-game-bai__hero-title {
    color: #FFD700;
    text-align: left;
    margin-bottom: 20px;
}

.page-game-bai__hero-description {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #e0e0e0;
}

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

.page-game-bai__hero-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    min-width: 200px;
    min-height: 200px;
}

/* Why Choose Us Section */
.page-game-bai__why-choose-us-section {
    padding: 50px 16px;
    background-color: #ffffff;
}

.page-game-bai__why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.page-game-bai__card {
    background-color: #f0f2f5;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-game-bai__card-title {
    color: #000080;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-bai__card-text {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

/* Game Types Section */
.page-game-bai__game-types-section {
    padding: 50px 16px;
    background-color: #f8f9fa;
}

.page-game-bai__game-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

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

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

.page-game-bai__game-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-game-bai__game-title {
    color: #000080;
    font-size: 1.3em;
    margin: 15px 0 10px 0;
    padding: 0 15px;
}

.page-game-bai__game-description {
    font-size: 0.95em;
    line-height: 1.5;
    color: #666666;
    padding: 0 15px 20px 15px;
}

.page-game-bai__game-card .page-game-bai__btn {
    margin-bottom: 20px;
}

.page-game-bai__cta-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #555555;
}

.page-game-bai__cta-bottom p a {
    color: #000080;
    text-decoration: none;
    font-weight: bold;
}

.page-game-bai__cta-bottom p a:hover {
    text-decoration: underline;
}

.page-game-bai__cta-bottom .page-game-bai__btn {
    margin-top: 20px;
}

/* Promotion Section */
.page-game-bai__promotion-section {
    padding: 50px 16px;
    background-color: #e0f7fa;
}

.page-game-bai__promotion-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 30px auto;
}

.page-game-bai__promotion-content img {
    flex: 1;
    max-width: 50%;
    border-radius: 12px;
    min-width: 200px;
    min-height: 200px;
}

.page-game-bai__promotion-content ul {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-game-bai__promotion-content li {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333333;
}

.page-game-bai__promotion-content li strong {
    color: #000080;
}

/* How To Register Section */
.page-game-bai__how-to-register-section {
    padding: 50px 16px;
    background-color: #ffffff;
}

.page-game-bai__steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 16px;
}

.page-game-bai__step-card {
    background-color: #f0f2f5;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-game-bai__step-title {
    color: #FFD700;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-bai__step-text {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

/* Other Games Section */
.page-game-bai__other-games-section {
    padding: 50px 16px;
    background-color: #f8f9fa;
}

.page-game-bai__other-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* FAQ Section */
.page-game-bai__faq-section {
    padding: 50px 16px;
    background-color: #ffffff;
    max-width: 900px;
    margin: 0 auto;
}

.page-game-bai__faq-item {
    border-bottom: 1px solid #eeeeee;
    padding: 20px 0;
}

.page-game-bai__faq-item:last-child {
    border-bottom: none;
}

.page-game-bai__faq-question {
    color: #000080;
    font-size: 1.2em;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.page-game-bai__faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-game-bai__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-game-bai__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    padding-top: 0;
    color: #555555;
    line-height: 1.6;
}

.page-game-bai__faq-answer.open {
    max-height: 200px; /* Adjust as needed */
    padding-top: 15px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-game-bai__hero-grid,
    .page-game-bai__why-grid,
    .page-game-bai__game-types-grid,
    .page-game-bai__steps-grid,
    .page-game-bai__other-games-grid {
        grid-template-columns: 1fr;
    }

    .page-game-bai__hero-content {
        text-align: center;
    }

    .page-game-bai__hero-title {
        text-align: center;
    }

    .page-game-bai__hero-ctas {
        justify-content: center;
    }

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

    .page-game-bai__promotion-content img {
        max-width: 100%;
    }

    .page-game-bai__promotion-content ul {
        text-align: center;
    }

    .page-game-bai__btn {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-game-bai img {
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .page-game-bai__hero-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-game-bai__hero-description {
        font-size: 1em;
    }

    .page-game-bai__btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}