.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f9fa; /* Assuming a light body background from shared.css */
}

.page-game-bai__dark-section {
  background-color: #08162B; /* Deep Navy */
  color: #F3F8FF; /* Text Main */
}

.page-game-bai__text-main {
  color: #F3F8FF;
}

.page-game-bai__text-secondary {
  color: #AFC4E8;
}

.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background: linear-gradient(180deg, #113B7A 0%, #08162B 100%); /* Brand color gradient */
}

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

.page-game-bai__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  padding-right: 20px;
}

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

.page-game-bai__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
}

.page-game-bai__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #AFC4E8; /* Text Secondary */
}

.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: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF; /* Text Main */
  border: none;
  box-shadow: 0 4px 10px rgba(17, 68, 166, 0.4);
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 15px rgba(17, 68, 166, 0.6);
}

.page-game-bai__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold */
}

.page-game-bai__btn-secondary:hover {
  background-color: rgba(242, 193, 78, 0.1);
  color: #F3F8FF; /* Text Main */
  border-color: #F3F8FF; /* Text Main */
}

.page-game-bai__intro-section,
.page-game-bai__guide-section,
.page-game-bai__faq-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.page-game-bai__game-list-section,
.page-game-bai__promo-section,
.page-game-bai__cta-final-section {
  padding: 60px 0;
  background-color: #08162B; /* Deep Navy */
}

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

.page-game-bai__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #113B7A; /* Main Brand Color */
}

.page-game-bai__dark-section .page-game-bai__section-title {
  color: #F2C14E; /* Gold for dark sections */
}

.page-game-bai__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #555;
}

.page-game-bai__dark-section .page-game-bai__section-description {
  color: #AFC4E8; /* Text Secondary for dark sections */
}

.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-item {
  text-align: center;
  padding: 25px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-game-bai__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #1D5FD1; /* Auxiliary color */
  box-shadow: 0 0 0 8px rgba(29, 95, 209, 0.3);
}

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

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

.page-game-bai__feature-text {
  font-size: 1rem;
  color: #555;
}

.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-color: #10233F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

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

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

.page-game-bai__game-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-bai__game-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2C14E; /* Gold */
}

.page-game-bai__game-description {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #AFC4E8; /* Text Secondary */
}

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

.page-game-bai__guide-step {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-game-bai__step-icon {
  width: 60px;
  height: 60px;
  background-color: #1D5FD1; /* Auxiliary color */
  color: #F3F8FF; /* Text Main */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.page-game-bai__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #113B7A; /* Main Brand Color */
}

.page-game-bai__step-text {
  font-size: 0.95rem;
  color: #666;
}

.page-game-bai__guide-image-wrapper {
  margin-top: 60px;
  text-align: center;
}

.page-game-bai__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-game-bai__promo-card {
  background-color: #10233F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-game-bai__promo-card:hover {
  transform: translateY(-8px);
}

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

.page-game-bai__promo-info {
  padding: 25px;
}

.page-game-bai__promo-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2C14E; /* Gold */
}

.page-game-bai__promo-text {
  font-size: 1rem;
  color: #AFC4E8; /* Text Secondary */
}

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

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

.page-game-bai__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  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.15rem;
  font-weight: 600;
  color: #113B7A; /* Main Brand Color */
  cursor: pointer;
  background-color: #f0f5fa;
  user-select: none;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
  background-color: #e0eaf5;
  color: #08162B;
}

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

.page-game-bai__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  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: 15px 25px 25px;
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  border-top: 1px solid #e0e0e0;
}

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

.page-game-bai__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #113B7A 0%, #1D5FD1 100%);
}

.page-game-bai__cta-final-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-game-bai__cta-final-section .page-game-bai__section-title {
  color: #F3F8FF; /* Text Main */
  margin-bottom: 25px;
}

.page-game-bai__cta-final-section .page-game-bai__section-description {
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 40px;
}

.page-game-bai__btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-game-bai__hero-container {
    flex-direction: column-reverse; /* Image first on smaller screens */
    text-align: center;
  }

  .page-game-bai__hero-content {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .page-game-bai__hero-title {
    font-size: 2.8rem;
  }

  .page-game-bai__hero-description {
    font-size: 1.05rem;
  }

  .page-game-bai__cta-buttons {
    justify-content: center;
  }

  .page-game-bai__section-title {
    font-size: 2.2rem;
  }

  .page-game-bai__section-description {
    font-size: 1rem;
  }

  .page-game-bai__features-grid,
  .page-game-bai__game-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

@media (max-width: 768px) {
  .page-game-bai {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 30px;
  }

  .page-game-bai__hero-container {
    padding: 20px 15px;
    gap: 20px;
  }

  .page-game-bai__hero-content {
    margin-bottom: 20px;
  }

  .page-game-bai__hero-title {
    font-size: 2.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;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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: 12px 20px;
    font-size: 0.95rem;
  }

  .page-game-bai__intro-section,
  .page-game-bai__guide-section,
  .page-game-bai__faq-section,
  .page-game-bai__game-list-section,
  .page-game-bai__promo-section,
  .page-game-bai__cta-final-section {
    padding: 40px 0;
  }

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

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

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

  .page-game-bai__features-grid,
  .page-game-bai__game-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__promo-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-game-bai__feature-item,
  .page-game-bai__game-card,
  .page-game-bai__guide-step,
  .page-game-bai__promo-card {
    padding: 20px;
  }

  .page-game-bai__icon-box-media {
    width: 180px; /* Maintain circular shape */
    height: 180px;
    margin-bottom: 15px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(29, 95, 209, 0.2);
  }

  .page-game-bai__feature-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .page-game-bai__feature-text {
    font-size: 0.9rem;
  }

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

  .page-game-bai__game-title {
    font-size: 1.4rem;
  }

  .page-game-bai__game-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .page-game-bai__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .page-game-bai__step-title {
    font-size: 1.2rem;
  }

  .page-game-bai__step-text {
    font-size: 0.85rem;
  }

  .page-game-bai__guide-image-wrapper {
    margin-top: 40px;
  }

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

  .page-game-bai__promo-title {
    font-size: 1.4rem;
  }

  .page-game-bai__promo-text {
    font-size: 0.9rem;
  }

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

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

  .page-game-bai__faq-answer {
    padding: 10px 20px 20px;
    font-size: 0.9rem;
  }

  .page-game-bai__cta-final-section {
    padding: 50px 0;
  }

  .page-game-bai__btn-large {
    padding: 14px 30px;
    font-size: 1rem;
  }

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

  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__game-info .page-game-bai__btn-primary {
    margin-top: auto; /* Push button to bottom */
  }
}