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

.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding as per rule */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #6FA3FF 0%, #F4F7FB 100%); /* Adjusted for light background */
  color: #1F2D3D;
}

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

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

.page-game-bai__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
}

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

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  max-width: 100%;
  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; /* Card BG */
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

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

.page-game-bai__section-description {
  font-size: 1.1rem;
  color: #1F2D3D;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-game-bai__section-description--light {
  color: #f0f0f0;
}

.page-game-bai__intro-section {
  padding: 60px 0;
  background-color: #ffffff; /* Card BG */
}

.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;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 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: 120px;
  height: 120px;
  aspect-ratio: 1 / 1;
  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;
  border-radius: 50%;
  display: block;
}

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

.page-game-bai__feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D;
}

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

.page-game-bai__games-section {
  padding: 80px 0;
  background: #2F6BFF; /* Main Color */
  color: #ffffff;
}

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

.page-game-bai__game-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

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

.page-game-bai__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for cards */
  object-fit: cover;
  display: block;
}

.page-game-bai__game-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2F6BFF; /* Main Color */
  padding: 20px 20px 10px;
}

.page-game-bai__game-card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1F2D3D;
  padding: 0 20px 20px;
}

.page-game-bai__btn-link {
  display: block;
  padding: 12px 20px;
  background: #F4F7FB; /* Background */
  color: #2F6BFF; /* Main Color */
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  border-top: 1px solid #D6E2FF; /* Border */
  transition: background-color 0.3s ease;
}

.page-game-bai__btn-link:hover {
  background-color: #D6E2FF; /* Border */
}

.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(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-game-bai__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2F6BFF; /* Main Color */
  margin-bottom: 15px;
}

.page-game-bai__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
}

.page-game-bai__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-game-bai__tips-section {
  padding: 80px 0;
  background-color: #ffffff; /* Card BG */
}

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

.page-game-bai__tip-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF; /* Border */
}

.page-game-bai__tip-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-game-bai__tip-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2F6BFF; /* Main Color */
  padding: 20px 20px 10px;
}

.page-game-bai__tip-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D;
  padding: 0 20px 20px;
}

.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;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF; /* Border */
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-game-bai__faq-qtext {
  flex-grow: 1;
}

.page-game-bai__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  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);
}

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

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

.page-game-bai__cta-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #2F6BFF 0%, #1a4a9c 100%); /* Main Color to darker blue */
  color: #ffffff;
  text-align: center;
}

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

/* --- Mobile Responsiveness --- */
@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__hero-container {
    flex-direction: column;
    padding: 30px 15px;
    gap: 20px;
  }

  .page-game-bai__hero-content,
  .page-game-bai__hero-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-game-bai__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

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

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

  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-game-bai__intro-section,
  .page-game-bai__games-section,
  .page-game-bai__guide-section,
  .page-game-bai__tips-section,
  .page-game-bai__faq-section,
  .page-game-bai__cta-section {
    padding: 40px 0;
  }

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

  .page-game-bai__icon-box-media {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }

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

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

  .page-game-bai__game-card-image,
  .page-game-bai__tip-image,
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Override for module 1 circle images to maintain aspect ratio */
  .page-game-bai__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

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

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

  .page-game-bai__faq-toggle {
    font-size: 1.5rem;
  }
}