:root {
    --vf555-primary: #FF8C1A;
    --vf555-secondary: #FFA53A;
    --vf555-card-bg: #17191F;
    --vf555-background: #0D0E12;
    --vf555-text-main: #FFF3E6;
    --vf555-border: #A84F0C;
    --vf555-glow: #FFB04D;
    --vf555-deep-orange: #D96800;
}

.page-game-bai {
    background-color: var(--vf555-background);
    color: var(--vf555-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    background-color: var(--vf555-background);
    text-align: center;
}

.page-game-bai__hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 15px;
}

.page-game-bai__main-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--vf555-primary);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-game-bai__description {
    font-size: 1.1em;
    color: var(--vf555-text-main);
    margin-bottom: 30px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__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 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, var(--vf555-secondary) 0%, var(--vf555-deep-orange) 100%);
    color: var(--vf555-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-game-bai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

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

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

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

.page-game-bai__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--vf555-primary);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-game-bai__section-description {
    font-size: 1.05em;
    color: var(--vf555-text-main);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__games-showcase-section,
.page-game-bai__why-choose-section,
.page-game-bai__faq-section {
    padding: 60px 0;
    background-color: var(--vf555-background);
}

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

.page-game-bai__game-card,
.page-game-bai__feature-item {
    background-color: var(--vf555-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    border: 1px solid var(--vf555-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__game-card:hover,
.page-game-bai__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-game-bai__game-image,
.page-game-bai__feature-icon {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 15px;
}

.page-game-bai__game-title,
.page-game-bai__feature-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--vf555-primary);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-game-bai__game-title a,
.page-game-bai__feature-title a {
    color: var(--vf555-primary);
    text-decoration: none;
}

.page-game-bai__game-title a:hover,
.page-game-bai__feature-title a:hover {
    color: var(--vf555-secondary);
    text-decoration: underline;
}

.page-game-bai__game-meta,
.page-game-bai__feature-description {
    font-size: 0.95em;
    color: var(--vf555-text-main);
    padding: 0 15px;
}

.page-game-bai__view-all-button-wrapper {
    text-align: center;
    margin-top: 20px;
}

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

.page-game-bai__faq-item {
    background-color: var(--vf555-card-bg);
    border: 1px solid var(--vf555-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.1em;
    font-weight: 600;
    color: var(--vf555-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
}

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

.page-game-bai__faq-qtext {
    flex-grow: 1;
    color: var(--vf555-text-main);
}

.page-game-bai__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--vf555-primary);
    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: 1em;
    color: var(--vf555-text-main);
    line-height: 1.7;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-bai__main-title {
        font-size: 2.5em;
    }
    .page-game-bai__section-title {
        font-size: 2em;
    }
    .page-game-bai__game-grid,
    .page-game-bai__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@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__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-game-bai__description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-game-bai__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
    }
    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-game-bai__container {
        padding: 0 15px;
    }
    .page-game-bai__section-title {
        font-size: 1.8em;
        padding-top: 30px;
    }
    .page-game-bai__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-game-bai__games-showcase-section,
    .page-game-bai__why-choose-section,
    .page-game-bai__faq-section {
        padding: 40px 0;
    }
    .page-game-bai__game-grid,
    .page-game-bai__features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-game-bai__game-image,
    .page-game-bai__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-game-bai__game-card,
    .page-game-bai__feature-item,
    .page-game-bai__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-bai__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-game-bai__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-game-bai__main-title {
        font-size: 1.8em;
    }
    .page-game-bai__section-title {
        font-size: 1.6em;
    }
    .page-game-bai__game-title,
    .page-game-bai__feature-title {
        font-size: 1.3em;
    }
}