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

.page-game-bai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 50px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Main color gradient */
  color: #ffffff;
  text-align: center;
}

.page-game-bai__hero-image-wrapper {
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-game-bai__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-game-bai__intro-text {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-game-bai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-game-bai__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  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%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

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

.page-game-bai__btn-secondary:hover {
  background-color: #F4F7FB;
  color: #2257cc;
  border-color: #2257cc;
  transform: translateY(-2px);
}

.page-game-bai__btn-small {
  padding: 10px 20px;
  font-size: 1rem;
}

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

.page-game-bai__section {
  padding: 60px 0;
}

.page-game-bai__background-light {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

.page-game-bai__dark-bg {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
}

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

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

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

.page-game-bai__dark-bg .page-game-bai__section-description {
  color: rgba(255, 255, 255, 0.8);
}

.page-game-bai__content-area {
  background-color: #ffffff; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
}

.page-game-bai__info-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-game-bai__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-game-bai__feature-item {
  margin-bottom: 20px;
}

.page-game-bai__feature-item:last-child {
  margin-bottom: 0;
}

.page-game-bai__feature-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 10px;
}

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

.page-game-bai__game-card {
  background-color: #ffffff; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

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

.page-game-bai__game-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__game-description {
  font-size: 1rem;
  color: #1F2D3D;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-bai__game-card .page-game-bai__btn {
  margin: 0 auto;
  width: fit-content;
}

.page-game-bai__game-trial-section {
    margin-top: 60px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-game-bai__sub-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2F6BFF;
    margin-bottom: 25px;
}

.page-game-bai__game-trial-frame {
    border: 2px solid #D6E2FF;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-game-bai__trial-text {
    font-size: 1.1rem;
    color: #1F2D3D;
    max-width: 800px;
    margin: 0 auto;
}

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

.page-game-bai__step-card {
  background-color: #ffffff; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-bai__step-heading {
  font-size: 1.6rem;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-game-bai__step-card p {
  font-size: 1rem;
  color: #1F2D3D;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-game-bai__promo-card {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #ffffff;
}

.page-game-bai__promo-heading {
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-game-bai__promo-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-game-bai__tips-item {
  background-color: #ffffff; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-game-bai__tips-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-game-bai__tips-item p {
  color: #1F2D3D;
}

.page-game-bai__figure {
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-bai__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-game-bai__figcaption {
  font-size: 0.9rem;
  color: #666666;
  padding: 10px 15px;
  background-color: #f8f8f8;
  border-top: 1px solid #eeeeee;
}

.page-game-bai__responsible-gaming .page-game-bai__btn-secondary {
    margin-top: 30px;
}

.page-game-bai__faq-list {
  margin-top: 50px;
}

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

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1F2D3D;
  cursor: pointer;
  background-color: #F4F7FB;
  border-bottom: 1px solid #D6E2FF;
  list-style: none; /* For details/summary */
}

.page-game-bai__faq-item[open] > .page-game-bai__faq-question {
  background-color: #2F6BFF;
  color: #ffffff;
  border-bottom-color: #2F6BFF;
}

.page-game-bai__faq-item[open] > .page-game-bai__faq-question .page-game-bai__faq-toggle {
  transform: rotate(45deg);
  color: #ffffff;
}

.page-game-bai__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #2F6BFF;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
    color: #ffffff;
}

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

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

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

.page-game-bai__faq-answer .page-game-bai__btn-small {
    margin-top: 10px;
}

/* Hide default details marker */
.page-game-bai__faq-item > summary::-webkit-details-marker,
.page-game-bai__faq-item > summary::marker {
  display: none;
}

.page-game-bai__conclusion {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  color: #ffffff;
}

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

.page-game-bai__conclusion .page-game-bai__section-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 50px;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
  .page-game-bai {
    font-size: 15px;
    line-height: 1.65;
  }

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

  /* 1. Top section title + CTAs */
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-game-bai__main-title {
    font-size: 2rem; /* Adjusted for mobile */
    margin-bottom: 15px;
  }

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

  .page-game-bai__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 10px;
  }

  .page-game-bai__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;
  }

  /* 2. Single column long-form content */
  .page-game-bai__section {
    padding: 40px 0;
  }

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

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

  .page-game-bai__content-area {
    padding: 20px;
    margin-top: 20px;
  }

  .page-game-bai__info-card {
    grid-template-columns: 1fr; /* Stack content and image */
    gap: 30px;
  }

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

  .page-game-bai__game-list {
    grid-template-columns: 1fr; /* Single column for games */
    gap: 20px;
  }

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

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

  .page-game-bai__game-description {
    font-size: 0.95rem;
  }

  .page-game-bai__game-trial-section {
      padding: 25px;
  }

  .page-game-bai__sub-title {
      font-size: 1.6rem;
  }

  .page-game-bai__game-trial-frame {
      height: 400px; /* Adjust iframe height for mobile */
  }

  .page-game-bai__trial-text {
      font-size: 1rem;
  }

  .page-game-bai__steps-grid {
    grid-template-columns: 1fr; /* Single column for steps */
    gap: 20px;
  }

  .page-game-bai__step-heading {
    font-size: 1.4rem;
  }

  .page-game-bai__promo-grid {
    grid-template-columns: 1fr; /* Single column for promos */
    gap: 20px;
  }

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

  .page-game-bai__tips-list {
    grid-template-columns: 1fr; /* Single column for tips */
    gap: 20px;
    margin-top: 30px;
  }

  .page-game-bai__tips-heading {
    font-size: 1.3rem;
  }

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

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

  .page-game-bai__conclusion {
    padding: 50px 0;
  }

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

  .page-game-bai__figure {
    margin: 30px auto;
  }

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

  /* 4. Buttons and button containers */
  .page-game-bai__btn,
  .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__cta-buttons,
  .page-game-bai__button-group,
  .page-game-bai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column !important; /* Ensure vertical stacking for main CTAs */
  }

  /* 5. Registration tutorial & FAQ (general sections) */
  /* Handled by .page-game-bai__steps-grid, .page-game-bai__faq-list, etc. above */
  /* Ensure padding on container for general sections */
  .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;
  }
}