.page-game-bai {
    font-family: 'Arial', sans-serif;
    background-color: #140C0C; /* Custom Background */
    color: #FFF1E8; /* Custom Text Main */
    line-height: 1.6;
}

.page-game-bai__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.page-game-bai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per instructions */
    padding-bottom: 40px;
    text-align: center;
    background-color: #140C0C;
}

.page-game-bai__hero-image {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-bai__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-game-bai__hero-content {
    max-width: 800px;
    margin: 30px auto 0;
    padding: 0 15px;
}

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

.page-game-bai__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #FFF1E8;
}

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

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-link,
.page-game-bai__card-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom Button */
    color: #ffffff;
    border: none;
}

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

.page-game-bai__btn-secondary {
    background-color: transparent;
    color: #FFB04A; /* Gold */
    border: 2px solid #FFB04A;
}

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

.page-game-bai__btn-link {
    background-color: #7E0D0D; /* Deep Red */
    color: #FFF1E8;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
}

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

.page-game-bai__card-button {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom Button */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    margin-top: 15px;
    align-self: flex-start;
}

.page-game-bai__card-button:hover {
    opacity: 0.9;
}

.page-game-bai__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #F3C54D; /* Gold */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    padding-top: 20px;
}

.page-game-bai__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
    color: #FFF1E8;
}

.page-game-bai__intro-section,
.page-game-bai__guide-section,
.page-game-bai__promo-section,
.page-game-bai__faq-section {
    padding: 50px 0;
}

.page-game-bai__dark-section {
    background-color: #2A1212; /* Custom Card BG */
}

.page-game-bai__games-section,
.page-game-bai__strategy-section,
.page-game-bai__download-section {
    padding: 50px 0;
    background-color: #140C0C; /* Custom Background */
}

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

.page-game-bai__card {
    background-color: #2A1212; /* Custom Card BG */
    border: 1px solid #6A1E1E; /* Custom Border */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #FFF1E8;
}

.page-game-bai__card-image {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.page-game-bai__card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
}

.page-game-bai__card-title {
    font-size: 1.4rem;
    color: #F3C54D; /* Gold */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-game-bai__card-description {
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    color: #FFF1E8;
}

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

.page-game-bai__step-item {
    background-color: #140C0C; /* Custom Background */
    border: 1px solid #6A1E1E; /* Custom Border */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    color: #FFF1E8;
}

.page-game-bai__step-title {
    font-size: 1.3rem;
    color: #FFB04A; /* Gold tone for steps */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-bai__step-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #FFF1E8;
}

.page-game-bai__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-game-bai__strategy-list li {
    background-color: #2A1212; /* Custom Card BG */
    border-left: 5px solid #FFB04A; /* Gold accent */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #FFF1E8;
}

.page-game-bai__strategy-item-title {
    font-size: 1.2rem;
    color: #F3C54D; /* Gold */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-game-bai__strategy-list p {
    font-size: 1rem;
    line-height: 1.5;
    color: #FFF1E8;
}

.page-game-bai__promo-card {
    text-align: left;
}

.page-game-bai__promo-card .page-game-bai__card-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

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

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

.page-game-bai__app-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
}

.page-game-bai__faq-list {
    margin-top: 30px;
}

.page-game-bai__faq-item {
    background-color: #140C0C; /* Custom Background */
    border: 1px solid #6A1E1E; /* Custom Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF1E8;
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F3C54D; /* Gold */
    cursor: pointer;
    background-color: #2A1212; /* Custom Card BG */
    border-bottom: 1px solid #6A1E1E;
}

.page-game-bai__faq-question::marker, /* Hide default marker */
.page-game-bai__faq-question::-webkit-details-marker {
    display: none;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
    border-bottom: 1px solid #6A1E1E;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    transform: rotate(45deg);
}

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

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

.page-game-bai__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: #FFF1E8;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-bai__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-game-bai__section-title {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
    }
    .page-game-bai__card {
        padding: 20px;
    }
    .page-game-bai__game-grid,
    .page-game-bai__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-game-bai {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-game-bai__hero-section {
        padding-bottom: 30px;
    }
    .page-game-bai__hero-content {
        margin-top: 20px;
    }
    .page-game-bai__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-game-bai__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-game-bai__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        padding: 0 15px; /* Add padding to buttons container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-game-bai__cta-buttons--center {
        padding: 0 15px;
    }

    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary,
    .page-game-bai__btn-link,
    .page-game-bai__card-button,
    .page-game-bai a[class*="button"],
    .page-game-bai a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    
    .page-game-bai__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 20px;
        padding-top: 15px;
    }
    .page-game-bai__text-block,
    .page-game-bai__step-description,
    .page-game-bai__strategy-list p,
    .page-game-bai__faq-answer p {
        font-size: 0.95rem;
    }
    .page-game-bai__intro-section,
    .page-game-bai__guide-section,
    .page-game-bai__promo-section,
    .page-game-bai__faq-section,
    .page-game-bai__games-section,
    .page-game-bai__strategy-section,
    .page-game-bai__download-section {
        padding: 30px 0;
    }

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

    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-game-bai__card-image img,
    .page-game-bai__app-image img {
        min-width: auto;
        min-height: auto;
    }

    .page-game-bai__game-grid,
    .page-game-bai__promo-grid,
    .page-game-bai__steps-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-bai__card {
        padding: 20px;
    }
    .page-game-bai__card-title {
        font-size: 1.2rem;
    }
    .page-game-bai__step-title {
        font-size: 1.15rem;
    }
    .page-game-bai__strategy-list li {
        padding: 15px;
    }
    .page-game-bai__strategy-item-title {
        font-size: 1.1rem;
    }
    .page-game-bai__download-cta {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to download CTA */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-game-bai__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-game-bai__faq-answer {
        padding: 15px 20px;
    }
    .page-game-bai__faq-toggle {
        font-size: 1.2rem;
    }
}