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

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

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

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

/* Hero Section */
.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
}

.page-game-bai__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-game-bai__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-game-bai__main-title {
  font-weight: bold;
  line-height: 1.2;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  /* clamp for responsive font size, but no fixed large values */
  font-size: clamp(28px, 4vw, 48px);
}

.page-game-bai__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #1F2D3D; /* Text Main */
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

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

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

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

.page-game-bai__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 2px 10px rgba(47, 107, 255, 0.1);
}

.page-game-bai__btn-secondary:hover {
  background: #F4F7FB; /* Background */
  transform: translateY(-2px);
}

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

.page-game-bai__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: block; /* Ensure no extra space below image */
  margin: 0 auto;
}

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

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

.page-game-bai__feature-item {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

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

.page-game-bai__icon-box-media {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #A5C4FF; /* Glow */
  box-shadow: 0 0 15px rgba(165, 196, 255, 0.5);
}

.page-game-bai__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%; /* Ensure image is also round */
}

.page-game-bai__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1F2D3D; /* Text Main */
}

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

/* Game Tabs Section */
.page-game-bai__game-tabs {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
}

.page-game-bai__tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  border-bottom: 2px solid #D6E2FF; /* Border */
  padding-bottom: 10px;
}

.page-game-bai__tab-button {
  background: none;
  border: none;
  padding: 12px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.page-game-bai__tab-button::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.page-game-bai__tab-button.is-active {
  color: #2F6BFF;
}

.page-game-bai__tab-button.is-active::after {
  background: #2F6BFF;
}

.page-game-bai__tab-button:hover:not(.is-active) {
  color: #6FA3FF;
}

.page-game-bai__game-panel {
  display: none;
}

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

.page-game-bai__game-card {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  border: 1px solid #D6E2FF; /* Border */
}

.page-game-bai__game-image {
  width: 100%;
  height: 300px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-game-bai__game-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1F2D3D; /* Text Main */
}

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

.page-game-bai__game-play-button {
  display: inline-block;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
}

.page-game-bai__game-play-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-game-bai__benefit-card {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

.page-game-bai__benefit-card:hover {
  transform: translateY(-5px);
}

.page-game-bai__benefit-icon {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-game-bai__benefit-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1F2D3D; /* Text Main */
}

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

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

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

.page-game-bai__step-item {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #D6E2FF; /* Border */
}

.page-game-bai__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: #2F6BFF;
  color: #ffffff;
  border-radius: 50%;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-game-bai__step-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1F2D3D; /* Text Main */
}

.page-game-bai__step-text {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
}

.page-game-bai__step-image {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.page-game-bai__bottom-cta {
  text-align: center;
  margin-top: 60px;
}

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

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

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

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  list-style: none; /* Hide default marker for details */
  position: relative;
}

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

.page-game-bai__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-game-bai__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #2F6BFF;
  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: 16px;
  color: #1F2D3D; /* Text Main */
  line-height: 1.6;
}

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

/* Final CTA Section */
.page-game-bai__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%); /* Main Brand Color */
  color: #ffffff;
}

.page-game-bai__final-cta-section .page-game-bai__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-game-bai__final-cta-section .page-game-bai__description {
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto 40px;
}

.page-game-bai__final-cta-section .page-game-bai__btn-primary {
  background: #ffffff;
  color: #2F6BFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-game-bai__final-cta-section .page-game-bai__btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-container {
    padding: 30px 16px;
    gap: 30px;
  }

  .page-game-bai__main-title {
    font-size: clamp(26px, 3.5vw, 42px);
  }

  .page-game-bai__section-title {
    font-size: 32px;
  }

  .page-game-bai__icon-box-media {
    width: 140px;
    height: 140px;
  }

  .page-game-bai__game-image {
    height: 250px;
  }

  .page-game-bai__benefit-icon {
    height: 180px;
  }

  .page-game-bai__step-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-game-bai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-game-bai__hero-container {
    flex-direction: column; /* Stacks image above text */
    gap: 30px;
    padding: 20px 15px;
  }

  .page-game-bai__hero-content {
    order: 2; /* Content below image */
    text-align: center;
  }

  .page-game-bai__hero-image-wrapper {
    order: 1; /* Image above content */
  }

  .page-game-bai__main-title {
    font-size: clamp(24px, 7vw, 38px);
    margin-bottom: 15px;
  }

  .page-game-bai__description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Section Titles & Descriptions */
  .page-game-bai__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-game-bai__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-game-bai__container {
    padding: 30px 15px;
  }

  /* Intro Section - Module 1 (3-column, round images) */
  .page-game-bai__intro-section {
    padding: 60px 0;
  }

  .page-game-bai__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-game-bai__icon-box-media {
    width: 200px; /* Maintain circular shape */
    height: 200px; /* Maintain circular shape */
    margin-bottom: 15px;
    border: 3px solid #A5C4FF;
    box-shadow: 0 0 10px rgba(165, 196, 255, 0.4);
  }

  .page-game-bai__feature-title {
    font-size: 20px;
  }

  .page-game-bai__feature-text {
    font-size: 15px;
  }

  /* Game Tabs Section */
  .page-game-bai__game-tabs {
    padding: 60px 0;
  }

  .page-game-bai__tab-nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: none;
    padding-bottom: 0;
  }

  .page-game-bai__tab-button {
    width: 100%;
    max-width: 250px;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 8px; /* Full border-radius on mobile */
  }

  .page-game-bai__tab-button::after {
    display: none;
  }

  .page-game-bai__game-image {
    height: 200px;
  }

  .page-game-bai__game-title {
    font-size: 24px;
  }

  .page-game-bai__game-description {
    font-size: 15px;
  }

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

  .page-game-bai__benefits-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-game-bai__benefit-icon {
    height: 150px;
  }

  .page-game-bai__benefit-title {
    font-size: 20px;
  }

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

  .page-game-bai__guide-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-game-bai__step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 28px;
  }

  .page-game-bai__step-title {
    font-size: 20px;
  }

  .page-game-bai__step-text {
    font-size: 15px;
  }

  .page-game-bai__step-image {
    height: 200px;
  }

  .page-game-bai__bottom-cta {
    margin-top: 40px;
  }

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

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

  .page-game-bai__faq-toggle {
    font-size: 20px;
  }

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

  /* Final CTA Section */
  .page-game-bai__final-cta-section {
    padding: 60px 0;
  }

  .page-game-bai__final-cta-section .page-game-bai__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* General Image Adaptation */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-game-bai__hero-image,
  .page-game-bai__game-image,
  .page-game-bai__benefit-icon,
  .page-game-bai__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Ensure containers also adapt */
  .page-game-bai__hero-container,
  .page-game-bai__container,
  .page-game-bai__features-grid,
  .page-game-bai__benefits-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__faq-list,
  .page-game-bai__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-game-bai__game-card { padding-left: 0; padding-right: 0; }

  /* Special handling for icon-box-media to keep it circular */
  .page-game-bai__icon-box-media {
    width: 150px !important;
    height: 150px !important;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
  }
  .page-game-bai__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50%;
  }
}