/* style/game-bai.css */
.page-game-bai {
    font-family: 'Arial', sans-serif;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
    line-height: 1.6;
}

.page-game-bai__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-game-bai__content-area--center {
    text-align: center;
}

.page-game-bai__section-title {
    font-size: 2.5rem;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-game-bai__section-title--white {
    color: #FFFFFF;
}

.page-game-bai__text-block {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #1F2D3D; /* Text Main */
}

.page-game-bai__text-block--white {
    color: #FFFFFF;
}

.page-game-bai__highlight {
    font-weight: bold;
    color: #2F6BFF; /* Main Color */
}

.page-game-bai__text-link {
    color: #2F6BFF; /* Main Color */
    text-decoration: underline;
}

/* Hero Section */
.page-game-bai__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #F4F7FB; /* Background */
}

.page-game-bai__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 20px 16px;
}

.page-game-bai__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #1F2D3D; /* Text Main */
}

.page-game-bai__hero-title {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1F2D3D; /* Text Main */
    font-size: clamp(2rem, 4vw, 3.5rem); /* Example clamp for responsiveness */
}

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

.page-game-bai__hero-image {
    flex: 1 1 40%;
    min-width: 250px;
    text-align: center;
}

.page-game-bai__hero-side-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-game-bai__hero-cta-buttons,
.page-game-bai__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #FFFFFF;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-game-bai__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-game-bai__btn-secondary {
    background-color: #FFFFFF; /* Card BG */
    color: #2F6BFF; /* Main Color */
    border: 2px solid #2F6BFF; /* Main Color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-game-bai__btn-secondary:hover {
    background-color: #F4F7FB; /* Background */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Intro Section */
.page-game-bai__intro-section {
    padding: 60px 0;
}

.page-game-bai__icon-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-game-bai__icon-box {
    flex: 1 1 300px;
    max-width: 350px;
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid #D6E2FF; /* Border */
}

.page-game-bai__icon-box:hover {
    transform: translateY(-10px);
}

.page-game-bai__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #A5C4FF; /* Glow */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-game-bai__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.page-game-bai__icon-box-title {
    font-size: 1.5rem;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 15px;
    font-weight: 700;
}

.page-game-bai__icon-box-description {
    font-size: 1rem;
    color: #1F2D3D; /* Text Main */
}

/* Game Types Section */
.page-game-bai__game-types-section {
    padding: 60px 0;
    background-color: #2F6BFF; /* Main Color */
    color: #FFFFFF;
}

.page-game-bai__game-tabs {
    margin-top: 40px;
}

.page-game-bai__tab-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.page-game-bai__tab-button {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.1rem;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    opacity: 0.7;
}

.page-game-bai__tab-button:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.page-game-bai__tab-button.is-active {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-bai__game-panel {
    display: none;
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    color: #1F2D3D; /* Text Main */
}

.page-game-bai__game-panel.is-active {
    display: block;
}

.page-game-bai__game-panel-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.page-game-bai__game-panel-image {
    flex: 1 1 400px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-bai__game-panel-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    flex: 1 1 400px;
    color: #1F2D3D; /* Text Main */
}

.page-game-bai__game-panel-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #1F2D3D; /* Text Main */
}

/* Why Choose Section */
.page-game-bai__why-choose-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

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

.page-game-bai__feature-item {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #D6E2FF; /* Border */
    transition: transform 0.3s ease;
}

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

.page-game-bai__feature-title {
    font-size: 1.4rem;
    color: #2F6BFF; /* Main Color */
    margin-bottom: 10px;
    font-weight: 700;
}

.page-game-bai__feature-description {
    font-size: 1rem;
    color: #1F2D3D; /* Text Main */
}

/* Guide Section */
.page-game-bai__guide-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

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

.page-game-bai__guide-step {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #D6E2FF; /* Border */
    position: relative;
    padding-left: 60px; /* For step number */
}

.page-game-bai__guide-step::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 25px;
    width: 35px;
    height: 35px;
    background-color: #2F6BFF; /* Main Color */
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.page-game-bai__guide-step-title {
    font-size: 1.3rem;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 10px;
    font-weight: 700;
}

.page-game-bai__guide-step-description {
    font-size: 1rem;
    color: #1F2D3D; /* Text Main */
}

/* FAQ Section */
.page-game-bai__faq-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

.page-game-bai__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-game-bai__faq-item {
    background-color: #FFFFFF; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-game-bai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2D3D; /* Text Main */
    cursor: pointer;
    background-color: #FFFFFF; /* Card BG */
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details */
}

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

.page-game-bai__faq-question:hover {
    background-color: #F4F7FB; /* Background */
}

.page-game-bai__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2F6BFF; /* Main Color */
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate + */
}

.page-game-bai__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
}

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

/* Call to Action Section */
.page-game-bai__call-to-action-section {
    padding: 60px 0;
    background-color: #2F6BFF; /* Main Color */
    color: #FFFFFF;
}

/* General image and container responsive styles */
.page-game-bai img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-game-bai__hero-cta-buttons,
.page-game-bai__cta-buttons,
.page-game-bai__icon-boxes,
.page-game-bai__game-tabs,
.page-game-bai__feature-list,
.page-game-bai__guide-steps,
.page-game-bai__faq-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Media Queries */
@media (max-width: 1024px) {
    .page-game-bai__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-game-bai__hero-content {
        order: 2;
    }

    .page-game-bai__hero-image {
        order: 1;
        margin-bottom: 30px;
    }

    .page-game-bai__hero-cta-buttons,
    .page-game-bai__cta-buttons {
        justify-content: center;
    }
    
    .page-game-bai__section-title {
        font-size: 2rem;
    }

    .page-game-bai__hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .page-game-bai__icon-box-media {
        width: 200px;
        height: 200px;
    }
    
    .page-game-bai__game-panel-content {
        flex-direction: column;
        text-align: center;
    }
}