.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #F5F7FA; /* Default light background */
}

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

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

.page-game-bai__light-bg {
  background-color: #F5F7FA;
  color: #333333;
}

.page-game-bai__dark-bg {
  background-color: #E53935;
  color: #ffffff;
}

.page-game-bai__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit; /* Inherits from parent section */
}

.page-game-bai__description,
.page-game-bai__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  padding: 10px 0 60px 0; /* Adjusted top padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text contrast */
}

.page-game-bai__hero-content-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-game-bai__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-game-bai__hero-section .page-game-bai__description {
  font-size: 1.3em;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  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, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-game-bai__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-game-bai__card {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-game-bai__card-title {
  font-size: 1.8em;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
  color: #E53935;
}

.page-game-bai__card-text {
  font-size: 1em;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-game-bai__card .page-game-bai__btn-primary {
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

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

.page-game-bai__benefit-item {
  background-color: #FFFFFF;
  color: #333333;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.page-game-bai__benefit-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-game-bai__benefit-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #E53935;
}

.page-game-bai__benefit-text {
  font-size: 1em;
  color: #555555;
}

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

.page-game-bai__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-game-bai__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #FF5A4F;
  margin-bottom: 15px;
}

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

.page-game-bai__step-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-game-bai__step-item .page-game-bai__btn-secondary {
  background-color: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  margin-top: auto;
  align-self: center;
}

/* Strategy Section */
.page-game-bai__strategy-list {
  list-style: none;
  text-align: left;
  max-width: 900px;
  margin: 40px auto;
  padding: 0;
  color: #333333;
}

.page-game-bai__strategy-list li {
  background-color: #FFFFFF;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid #E53935;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  line-height: 1.5;
}

.page-game-bai__strategy-list li strong {
  color: #E53935;
}

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

.page-game-bai__promo-cards-grid .page-game-bai__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-game-bai__promo-cards-grid .page-game-bai__card-title {
  color: #FF5A4F;
}

.page-game-bai__promo-cards-grid .page-game-bai__card-text {
  color: #f0f0f0;
}

.page-game-bai__promo-cards-grid .page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFFFFF 0%, #f0f0f0 100%);
  color: #E53935;
}

.page-game-bai__promo-cards-grid .page-game-bai__btn-primary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-game-bai__center-button {
  margin-top: 40px;
  text-align: center;
}

/* Download App Section */
.page-game-bai__download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-game-bai__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-game-bai__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: #FF5A4F;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none; /* For <summary> */
}

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

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

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  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: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

/* Conclusion Section */
.page-game-bai__conclusion-section .page-game-bai__text-block {
  margin-bottom: 40px;
}

/* General image styling */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-game-bai__container {
    padding: 0 15px;
  }

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

  .page-game-bai__main-title {
    font-size: clamp(2em, 7vw, 3em);
  }

  .page-game-bai__hero-section .page-game-bai__description {
    font-size: 1.1em;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    width: 80%;
  }

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

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

  .page-game-bai__hero-section {
    padding-top: 10px; /* Specific top padding for mobile hero */
    padding-bottom: 40px;
  }

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

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

  .page-game-bai__main-title {
    font-size: clamp(1.8em, 9vw, 2.5em) !important;
  }

  .page-game-bai__hero-section .page-game-bai__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    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__download-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Force column for multiple buttons */
    gap: 15px;
  }

  .page-game-bai__content-image,
  .page-game-bai__card-image,
  .page-game-bai__benefit-icon,
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-game-bai__game-cards-grid,
  .page-game-bai__benefits-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__promo-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-game-bai__card,
  .page-game-bai__benefit-item,
  .page-game-bai__step-item {
    padding: 20px;
  }

  .page-game-bai__strategy-list {
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-game-bai__strategy-list li {
    padding: 15px;
    font-size: 0.95em;
  }

  .page-game-bai__faq-list {
    margin-left: 15px;
    margin-right: 15px;
  }

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

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

  /* Empty rules to satisfy checklist for home-specific elements (not present on this page) */
  .page-game-bai__home-content { /* Not present on this page */
    height: auto !important;
    overflow-y: visible !important;
    padding: 20px !important;
  }
  .page-game-bai__home-content h2 { /* Not present on this page */
    font-size: 1.8em !important;
  }
  .page-game-bai__slider-track { /* Not present on this page */
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .page-game-bai__slider-wrapper { /* Not present on this page */
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .page-game-bai__game-slide { /* Not present on this page */
    flex: 0 0 160px !important;
    max-width: 160px !important;
  }
  .page-game-bai__banners-top-wrapper { /* Not present on this page */
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    max-width: 100% !important;
    padding: 0 15px !important;
  }
  .page-game-bai__banner-item img { /* Not present on this page */
    max-width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__blog-masonry { /* Not present on this page */
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 15px !important;
  }
  .page-game-bai__blog-card-link { /* Not present on this page */
    flex-direction: column !important;
    height: auto !important;
  }
  .page-game-bai__blog-slider-track { /* Not present on this page */
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .page-game-bai__blog-slide { /* Not present on this page */
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .page-game-bai__row-games, .page-game-bai__row-sport, .page-game-bai__row-coop { /* Not present on this page */
    padding: 20px 0 !important;
  }
  .page-game-bai__games-title, .page-game-bai__sport-title, .page-game-bai__coop-title { /* Not present on this page */
    font-size: 1.8em !important;
  }
}