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

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

.page-game-bai__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Adjust as needed */
  overflow: hidden;
}

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

.page-game-bai__hero-content {
  text-align: center;
  padding: 40px 15px;
  background: linear-gradient(180deg, rgba(244, 247, 251, 0) 0%, #F4F7FB 100%); /* Fade from transparent to body background */
  position: relative;
  z-index: 1;
  margin-top: -100px; /* Overlap slightly with image for smooth transition */
}

.page-game-bai__main-title {
  font-size: 42px;
  font-weight: bold;
  color: #1F2D3D;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.page-game-bai__intro-text {
  font-size: 18px;
  color: #1F2D3D;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  word-wrap: break-word; /* For mobile button text wrap */
  box-sizing: border-box;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  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);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

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

.page-game-bai__btn-secondary:hover {
  background: #f0f5ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-game-bai__btn-link {
  background: transparent;
  color: #2F6BFF;
  border: 1px solid #2F6BFF;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 5px;
}

.page-game-bai__btn-link:hover {
  background: #2F6BFF;
  color: #ffffff;
}

.page-game-bai__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
  line-height: 1.3;
}

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

.page-game-bai__section-description {
  font-size: 17px;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-game-bai__text-block p {
  margin-bottom: 15px;
  font-size: 16px;
}

.page-game-bai__text-link {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-game-bai__text-link:hover {
  text-decoration: underline;
}

.page-game-bai__image-wrapper {
  text-align: center;
}

.page-game-bai__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

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

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

.page-game-bai__card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #1F2D3D; /* Card text color */
}

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

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

.page-game-bai__card-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px;
}

.page-game-bai__card-title a {
  color: #2F6BFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-bai__card-title a:hover {
  color: #4A8BFF;
  text-decoration: underline;
}

.page-game-bai__card-text {
  font-size: 15px;
  color: #555555;
  margin: 0 20px 20px;
}

/* Features Section */
.page-game-bai__features-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 {
  text-align: center;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-bai__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-game-bai__feature-icon {
  width: 100px; /* Example size, adjust based on actual icon image */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block; /* Ensure it respects width/height */
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-bai__feature-description {
  font-size: 15px;
  color: #555555;
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 80px 0;
  background: #000000; /* Custom Color_1776249996415 as dark background */
  color: #ffffff;
}

.page-game-bai__guide-steps {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-game-bai__step-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2F6BFF;
  color: #ffffff;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 25px;
  border: 3px solid #6FA3FF; /* Glow color as border */
}

.page-game-bai__step-title {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-game-bai__step-description {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
}

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

details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border color */
  overflow: hidden;
  background: #ffffff; /* Card BG */
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: #f5f5f5;
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* General text color */
}
.page-game-bai__faq-answer p {
  margin: 0;
}

/* Bottom CTA */
.page-game-bai__cta-bottom {
  padding: 80px 0;
  background: linear-gradient(180deg, #2F6BFF 0%, #000000 100%); /* Mix main color with dark */
  text-align: center;
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__main-title {
    font-size: 38px;
  }
  .page-game-bai__section-title {
    font-size: 32px;
  }
  .page-game-bai__content-grid {
    grid-template-columns: 1fr;
  }
  .page-game-bai__image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-game-bai__game-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-bai {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-game-bai__hero-section {
    padding-top: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-game-bai__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-game-bai__hero-content {
    padding: 30px 15px !important;
    margin-top: -50px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-game-bai__main-title {
    font-size: 28px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 0px;
  }
  .page-game-bai__intro-text {
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 0px;
  }
  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 0px;
  }
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-link {
    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__section-title {
    font-size: 26px;
    padding-top: 40px;
  }
  .page-game-bai__section-description {
    font-size: 15px;
  }
  .page-game-bai__about-section,
  .page-game-bai__games-section,
  .page-game-bai__features-section,
  .page-game-bai__guide-section,
  .page-game-bai__faq-section,
  .page-game-bai__cta-bottom {
    padding: 50px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-game-bai__game-cards {
    grid-template-columns: 1fr;
  }
  .page-game-bai__card-image {
    height: 180px;
  }
  .page-game-bai__features-grid {
    grid-template-columns: 1fr;
  }
  .page-game-bai__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-game-bai__guide-steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .page-game-bai__step-item {
    max-width: 100%;
    width: calc(100% - 30px); /* Adjust for padding */
    padding: 30px 20px;
  }
  .page-game-bai__faq-qtext {
    font-size: 15px;
  }
  .page-game-bai__faq-toggle {
    font-size: 20px;
  }
  details.page-game-bai__faq-item summary.page-game-bai__faq-question {
    padding: 15px;
  }
  details.page-game-bai__faq-item .page-game-bai__faq-answer {
    padding: 0 15px 15px;
  }

  /* All images must be responsive */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Specific overrides for containers to ensure no overflow */
  .page-game-bai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}