.page-game-bai {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: var(--secondary-color, #ffffff);
}

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

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

.page-game-bai__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-game-bai__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  background-color: var(--secondary-color, #ffffff);
  overflow: hidden;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly darken image for better text contrast if text were on it, but text is below */
}

.page-game-bai__hero-content {
  position: relative; /* Ensure content is above any background element */
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  box-sizing: border-box;
}

.page-game-bai__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-bai__lead-text {
  font-size: 20px;
  color: #555555;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.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: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-game-bai__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom color for register/login font */
  border: 2px solid #C30808;
}

.page-game-bai__btn-primary:hover {
  background-color: #e01a1a;
  border-color: #e01a1a;
}

.page-game-bai__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-game-bai__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
}

.page-game-bai__btn-link {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
}

.page-game-bai__btn-link:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-game-bai__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-game-bai__btn-register:hover {
  background-color: #e01a1a;
  border-color: #e01a1a;
}

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

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

.page-game-bai__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-game-bai__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}

.page-game-bai__feature-card p {
  font-size: 16px;
  color: #555555;
}

/* Game List */
.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-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-game-bai__game-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}

.page-game-bai__game-card p {
  font-size: 16px;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* How to Join Steps */
.page-game-bai__step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__step-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-game-bai__step-number {
  font-size: 48px;
  font-weight: 900;
  color: #017439;
  margin-bottom: 15px;
}

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

.page-game-bai__step-item p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

/* Tips Wins */
.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-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-game-bai__tip-card p {
  font-size: 16px;
  color: #555555;
}

/* Promotions */
.page-game-bai__promo-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-game-bai__promo-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-size: 17px;
  color: #333333;
  border-left: 5px solid #017439;
}

.page-game-bai__promo-item strong {
  color: #017439;
}

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

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

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: 900;
  color: #017439;
  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 20px 20px 20px;
  font-size: 16px;
  color: #555555;
}

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

/* Dark Background Section */
.page-game-bai__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

/* Images */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-game-bai__image-figure {
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
}

.page-game-bai__article-image {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-game-bai__image-caption {
  font-size: 14px;
  color: #777777;
  margin-top: 10px;
}

.page-game-bai__copyright {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #777777;
  background-color: #f5f5f5;
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-content {
    padding: 30px 20px;
  }

  .page-game-bai__main-title {
    font-size: 48px;
  }

  .page-game-bai__lead-text {
    font-size: 18px;
  }

  .page-game-bai__section-title {
    font-size: 32px;
  }

  .page-game-bai__section-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
  }

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

  .page-game-bai__main-title {
    font-size: 32px !important;
    line-height: 1.3 !important;
  }

  .page-game-bai__lead-text {
    font-size: 16px !important;
    margin-bottom: 20px !important;
  }

  .page-game-bai__hero-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-link,
  .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 !important;
    padding-right: 15px !important;
  }

  .page-game-bai__section,
  .page-game-bai__container,
  .page-game-bai__feature-grid,
  .page-game-bai__game-list,
  .page-game-bai__step-list,
  .page-game-bai__tips-grid,
  .page-game-bai__promo-list,
  .page-game-bai__faq-list,
  .page-game-bai__copyright {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-game-bai__section-title {
    font-size: 28px !important;
    margin-bottom: 15px !important;
  }

  .page-game-bai__section-description {
    font-size: 15px !important;
    margin-bottom: 30px !important;
  }

  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__image-figure {
    margin: 20px auto !important;
  }

  .page-game-bai__feature-card,
  .page-game-bai__game-card,
  .page-game-bai__step-item,
  .page-game-bai__tip-card,
  .page-game-bai__promo-item,
  .page-game-bai__faq-item {
    padding: 20px !important;
  }

  .page-game-bai__card-title,
  .page-game-bai__game-card-title,
  .page-game-bai__step-title {
    font-size: 20px !important;
  }

  .page-game-bai__step-number {
    font-size: 40px !important;
  }

  .page-game-bai__faq-question {
    font-size: 16px !important;
    padding: 15px !important;
  }

  .page-game-bai__faq-answer {
    font-size: 15px !important;
    padding: 0 15px 15px 15px !important;
  }
}