.page-game-bai {
    font-family: 'Arial', sans-serif;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
}

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

.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1A202C 0%, #0A0A0A 100%);
    padding-bottom: 40px;
}

.page-game-bai__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-game-bai__hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 900px;
}

.page-game-bai__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #FFD36B; /* Glow */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-game-bai__hero-description {
    font-size: 1.1rem;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 30px;
    line-height: 1.6;
}

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

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

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button */
    color: #0A0A0A; /* Dark text for bright button */
    border: none;
}

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

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

.page-game-bai__btn-secondary:hover {
    background: #FFD36B;
    color: #0A0A0A; /* Dark text for bright button */
    transform: translateY(-2px);
}

.page-game-bai__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #FFD36B; /* Glow */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    padding-top: 40px;
}

.page-game-bai__section-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
    text-align: justify;
}

.page-game-bai__dark-bg {
    background-color: #0A0A0A; /* Background */
    color: #FFF6D6;
    padding-bottom: 40px;
}

.page-game-bai__light-bg {
    background-color: #111111; /* Card BG */
    color: #FFF6D6;
    padding-bottom: 40px;
}

.page-game-bai__about-section,
.page-game-bai__games-list-section,
.page-game-bai__features-section,
.page-game-bai__guide-section,
.page-game-bai__strategy-section,
.page-game-bai__faq-section,
.page-game-bai__cta-section {
    padding: 60px 0;
}

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

.page-game-bai__game-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__game-card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-game-bai__game-card-title {
    font-size: 1.5rem;
    color: #F2C14E; /* Primary */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-game-bai__game-card-description {
    font-size: 0.95rem;
    color: #FFF6D6; /* Text Main */
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-game-bai__game-card-button {
    margin-top: auto;
    width: 80%;
}

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

.page-game-bai__feature-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__feature-card-icon {
    width: 100%;
    max-width: 300px; /* Max width for feature icon */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-game-bai__feature-card-title {
    font-size: 1.3rem;
    color: #F2C14E; /* Primary */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-game-bai__feature-card-description {
    font-size: 0.95rem;
    color: #FFF6D6; /* Text Main */
    line-height: 1.6;
    flex-grow: 1;
}

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

.page-game-bai__step-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-bai__step-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFD36B; /* Glow */
    margin-bottom: 15px;
    background: rgba(255, 211, 107, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-game-bai__step-title {
    font-size: 1.4rem;
    color: #F2C14E; /* Primary */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-game-bai__step-description {
    font-size: 0.95rem;
    color: #FFF6D6; /* Text Main */
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-game-bai__step-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
}

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

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

.page-game-bai__strategy-list li {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #FFF6D6; /* Text Main */
    display: flex;
    align-items: flex-start;
}

.page-game-bai__strategy-list li strong {
    color: #F2C14E; /* Primary */
    margin-right: 10px;
    flex-shrink: 0;
}

.page-game-bai__strategy-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 30px auto 0 auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-game-bai__faq-items {
    margin-top: 40px;
}

.page-game-bai__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 8px;
    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.2rem;
    font-weight: bold;
    color: #F2C14E; /* Primary */
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
}

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

.page-game-bai__faq-question .page-game-bai__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-game-bai__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-answer {
    max-height: 500px; /* Adjust as needed for content length */
    transition: max-height 0.5s ease-in;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-game-bai__container {
        padding: 20px 30px;
    }

    .page-game-bai__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

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

    .page-game-bai__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

    .page-game-bai__games-grid,
    .page-game-bai__features-grid,
    .page-game-bai__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .page-game-bai__game-card-title,
    .page-game-bai__feature-card-title {
        font-size: 1.3rem;
    }

    .page-game-bai__step-title {
        font-size: 1.25rem;
    }

    .page-game-bai__faq-question {
        font-size: 1.1rem;
    }
}

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

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

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

    .page-game-bai__hero-image-wrapper {
        max-height: 400px;
        margin-bottom: 15px;
    }

    .page-game-bai__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-game-bai__hero-content {
        padding: 0 10px;
    }

    .page-game-bai__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 10px;
    }

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

    .page-game-bai__hero-cta-buttons,
    .page-game-bai__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .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% !important;
        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, 6vw, 2rem);
        padding-top: 30px;
        margin-bottom: 20px;
    }

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

    .page-game-bai__about-section,
    .page-game-bai__games-list-section,
    .page-game-bai__features-section,
    .page-game-bai__guide-section,
    .page-game-bai__strategy-section,
    .page-game-bai__faq-section,
    .page-game-bai__cta-section {
        padding: 40px 0;
    }

    .page-game-bai__games-grid,
    .page-game-bai__features-grid,
    .page-game-bai__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .page-game-bai__game-card,
    .page-game-bai__feature-card,
    .page-game-bai__step-item {
        padding: 20px;
    }

    .page-game-bai__game-card-image,
    .page-game-bai__feature-card-icon,
    .page-game-bai__step-image,
    .page-game-bai__strategy-image,
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-game-bai__game-card-button {
        width: 100%;
    }

    .page-game-bai__strategy-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        font-size: 0.95rem;
    }

    .page-game-bai__strategy-list li strong {
        margin-bottom: 5px;
    }

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

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