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

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

/* Hero Section */
.page-game-bai__hero-section {
    position: relative;
    padding-bottom: 50px; /* Adjust as needed */
    overflow: hidden;
    background: #F4F7FB; /* Background */
}

.page-game-bai__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    margin-bottom: 30px;
}

.page-game-bai__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.page-game-bai__hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
}

.page-game-bai__main-title {
    font-size: 48px;
    font-weight: 700;
    color: #000000; /* Custom Color_1776249996415 */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-game-bai__hero-description {
    font-size: 18px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-bai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-play,
.page-game-bai__btn-view-promo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-game-bai__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #ffffff;
    border: 2px solid transparent;
}

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

.page-game-bai__btn-secondary {
    background: #ffffff; /* Card BG */
    color: #2F6BFF; /* Primary color */
    border: 2px solid #2F6BFF; /* Primary color */
}

.page-game-bai__btn-secondary:hover {
    background: #2F6BFF; /* Primary color */
    color: #ffffff;
    border-color: #2F6BFF;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

.page-game-bai__btn-large {
    min-width: 220px;
    padding: 18px 35px;
    font-size: 20px;
}

/* General Section Styling */
.page-game-bai__intro-section,
.page-game-bai__game-types-section,
.page-game-bai__why-choose-section,
.page-game-bai__promo-section,
.page-game-bai__faq-section,
.page-game-bai__final-cta-section {
    padding: 60px 0;
    margin-top: 10px; /* Small top margin for sections after hero */
}

.page-game-bai__dark-section {
    background: #2F6BFF; /* Primary color */
    color: #ffffff;
}

.page-game-bai__dark-section .page-game-bai__section-title,
.page-game-bai__dark-section .page-game-bai__section-description,
.page-game-bai__dark-section .page-game-bai__text-block p,
.page-game-bai__dark-section .page-game-bai__step-list li {
    color: #ffffff;
}

.page-game-bai__light-bg {
    background: #F4F7FB; /* Background */
    color: #1F2D3D; /* Text Main */
}

.page-game-bai__section-title {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #000000; /* Custom Color_1776249996415 */
}

.page-game-bai__dark-section .page-game-bai__section-title {
    color: #ffffff;
}

.page-game-bai__section-description {
    font-size: 17px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #1F2D3D; /* Text Main */
}

.page-game-bai__dark-section .page-game-bai__section-description {
    color: #ffffff;
}

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

.page-game-bai__game-card {
    background: #ffffff; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-game-bai__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-game-bai__game-image {
    width: 100%;
    height: 250px; /* Fixed height for game images */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-game-bai__game-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000; /* Custom Color_1776249996415 */
    margin: 20px 20px 10px;
}

.page-game-bai__game-desc {
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-game-bai__btn-play {
    background: #2F6BFF; /* Primary color */
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 0 0 12px 12px;
    width: 100%;
    margin-top: auto; /* Push to bottom */
}

.page-game-bai__btn-play:hover {
    background: #4A8BFF; /* Lighter primary for hover */
}

/* How To Play Section */
.page-game-bai__how-to-play-section {
    background: #2F6BFF; /* Primary color */
    color: #ffffff;
    padding: 80px 0;
}

.page-game-bai__how-to-play-section .page-game-bai__section-title {
    color: #ffffff;
}

.page-game-bai__content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.page-game-bai__text-block {
    flex: 1;
    font-size: 17px;
    line-height: 1.8;
}

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

.page-game-bai__step-list li {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 60px;
    font-size: 17px;
}

.page-game-bai__step-list li:last-child {
    margin-bottom: 0;
}

.page-game-bai__step-list li strong {
    color: #A5C4FF; /* Glow color */
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.page-game-bai__step-list li::before {
    content: attr(data-step);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #A5C4FF; /* Glow color */
    color: #2F6BFF; /* Primary color */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}
/* Assign step numbers */
.page-game-bai__step-list li:nth-child(1)::before { content: '1'; }
.page-game-bai__step-list li:nth-child(2)::before { content: '2'; }
.page-game-bai__step-list li:nth-child(3)::before { content: '3'; }
.page-game-bai__step-list li:nth-child(4)::before { content: '4'; }

.page-game-bai__image-block {
    flex: 1;
    text-align: center;
}

.page-game-bai__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Why Choose Section */
.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: #ffffff; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #D6E2FF; /* Border color */
}

.page-game-bai__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-game-bai__feature-title {
    font-size: 22px;
    font-weight: 700;
    color: #2F6BFF; /* Primary color */
    margin-bottom: 15px;
}

.page-game-bai__feature-card p {
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
}

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

.page-game-bai__promo-card {
    background: #ffffff; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-game-bai__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-game-bai__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-game-bai__promo-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000; /* Custom Color_1776249996415 */
    margin: 20px 20px 10px;
}

.page-game-bai__promo-desc {
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-game-bai__btn-view-promo {
    background: #6FA3FF; /* Auxiliary color */
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 0 0 12px 12px;
    width: 100%;
    margin-top: auto;
}

.page-game-bai__btn-view-promo:hover {
    background: #2F6BFF; /* Primary color for hover */
}

.page-game-bai__cta-promo {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: #D6E2FF; /* Border color as light background */
    border-radius: 12px;
}

.page-game-bai__cta-promo p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1F2D3D; /* Text Main */
}

/* FAQ Section */
.page-game-bai__faq-list {
    margin-top: 40px;
}

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  border: 1px solid #D6E2FF; /* Border color */
  overflow: hidden;
  background: #ffffff; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question:hover {
  background: #f0f5ff; /* Lighter hover background */
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 18px; /* Increased font size */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #000000; /* Custom Color_1776249996415 */
}
.page-game-bai__faq-toggle {
  font-size: 28px; /* Larger toggle */
  font-weight: bold;
  color: #2F6BFF; /* Primary color */
  flex-shrink: 0;
  margin-left: 20px; /* Increased margin */
  width: 32px; /* Larger toggle area */
  text-align: center;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer {
  padding: 0 25px 25px; /* Increased padding */
  background: #F4F7FB; /* Background color for answer */
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  line-height: 1.7;
  color: #1F2D3D; /* Text Main */
}

/* Final CTA Section */
.page-game-bai__final-cta-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-bai__main-title {
        font-size: 42px;
    }
    .page-game-bai__hero-description {
        font-size: 17px;
    }
    .page-game-bai__section-title {
        font-size: 34px;
    }
    .page-game-bai__section-description {
        font-size: 16px;
    }
    .page-game-bai__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-game-bai__image-block {
        order: -1; /* Image above text on smaller screens */
    }
    .page-game-bai__step-list li {
        padding-left: 50px;
    }
}

@media (max-width: 768px) {
    /* Top text padding */
    .page-game-bai__hero-section {
        padding-top: 10px; /* Small top padding, body handles header offset */
    }

    .page-game-bai__hero-image-wrapper {
        height: 400px;
        margin-bottom: 20px;
    }
    .page-game-bai__hero-content {
        padding: 0 10px;
    }
    .page-game-bai__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-game-bai__hero-description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .page-game-bai__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-game-bai__btn-primary,
    .page-game-bai__btn-secondary,
    .page-game-bai__btn-play,
    .page-game-bai__btn-view-promo,
    .page-game-bai__btn-large {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-game-bai__btn-play {
        border-radius: 0 0 12px 12px;
    }
    .page-game-bai__btn-view-promo {
        border-radius: 0 0 12px 12px;
    }

    .page-game-bai__intro-section,
    .page-game-bai__game-types-section,
    .page-game-bai__how-to-play-section,
    .page-game-bai__why-choose-section,
    .page-game-bai__promo-section,
    .page-game-bai__faq-section,
    .page-game-bai__final-cta-section {
        padding: 40px 0;
    }
    .page-game-bai__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-game-bai__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Images */
    .page-game-bai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important; /* Ensure padding/border is included in width */
    }
    .page-game-bai__game-image,
    .page-game-bai__promo-image {
        height: 180px; /* Adjust image height for mobile */
    }
}