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

.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background: #F5F7FA; /* Consistent with overall background */
}

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

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

.page-game-bai__hero-image img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.page-game-bai__hero-content {
  flex: 1 1 50%;
  color: #333333;
}

.page-game-bai__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #E53935;
}

.page-game-bai__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555555;
}

.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: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

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

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

.page-game-bai__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-game-bai__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-game-bai__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #E53935;
}

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

.page-game-bai__intro-section {
  background-color: #ffffff;
  padding: 60px 0;
  border-bottom: 1px solid #E0E0E0;
}

.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: 20px;
  background: #F5F7FA;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-game-bai__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #FF5A4F;
  box-shadow: 0 0 0 8px rgba(255, 90, 79, 0.2);
}

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

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

.page-game-bai__feature-text {
  font-size: 0.95rem;
  color: #555555;
}

.page-game-bai__games-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

.page-game-bai__game-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
}

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

.page-game-bai__game-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #E53935;
  padding: 0 15px;
}

.page-game-bai__game-text {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-game-bai__game-btn {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.page-game-bai__game-btn:hover {
  opacity: 0.9;
}

.page-game-bai__how-to-play-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-game-bai__step-item {
  text-align: center;
  padding: 30px;
  background: #F5F7FA;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-game-bai__step-icon {
  width: 60px;
  height: 60px;
  background: #E53935;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 20px auto;
}

.page-game-bai__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333333;
}

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

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

.page-game-bai__promo-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

.page-game-bai__promo-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
}

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

.page-game-bai__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #E53935;
  padding: 0 15px;
}

.page-game-bai__promo-text {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-game-bai__promo-btn {
  background: #E53935;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.page-game-bai__promo-btn:hover {
  background: #FF5A4F;
}

.page-game-bai__tips-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-game-bai__tips-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-game-bai__tips-list li {
  background: #F5F7FA;
  padding: 18px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05rem;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-game-bai__tip-point {
  font-weight: 600;
  color: #E53935;
  min-width: fit-content;
}

.page-game-bai__faq-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

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

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #E0E0E0;
  list-style: none;
}

.page-game-bai__faq-item[open] > .page-game-bai__faq-question {
  border-bottom: 1px solid #FF5A4F;
  color: #E53935;
}

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

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

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

.page-game-bai__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #E53935;
}

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

.page-game-bai__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.7;
  animation: fadein 0.3s ease-in-out;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-game-bai__call-to-action {
  padding: 80px 0;
  background: linear-gradient(135deg, #E53935 0%, #FF5A4F 100%);
  text-align: center;
  color: #ffffff;
  border-top: 1px solid #FF5A4F;
}

.page-game-bai__cta-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.page-game-bai__cta-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-game-bai__cta-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

/* Mobile Responsive Styles */
@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: 40px;
  }

  .page-game-bai__hero-container {
    flex-direction: column;
    padding: 30px 15px;
    gap: 30px;
  }

  .page-game-bai__hero-image {
    flex: 1 1 100%;
    order: 1;
  }

  .page-game-bai__hero-content {
    flex: 1 1 100%;
    order: 2;
    text-align: center;
  }

  .page-game-bai__main-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%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

  .page-game-bai__intro-section,
  .page-game-bai__games-section,
  .page-game-bai__how-to-play-section,
  .page-game-bai__promo-section,
  .page-game-bai__tips-section,
  .page-game-bai__faq-section,
  .page-game-bai__call-to-action {
    padding: 40px 0;
  }

  .page-game-bai__features-grid,
  .page-game-bai__game-grid,
  .page-game-bai__steps-grid,
  .page-game-bai__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-game-bai__icon-box-media {
    width: 180px;
    height: 180px;
    margin-bottom: 15px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(255, 90, 79, 0.2);
  }

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

  .page-game-bai__game-image,
  .page-game-bai__promo-image {
    height: 180px; /* Adjust height for mobile card images */
  }

  .page-game-bai__game-title,
  .page-game-bai__promo-title {
    font-size: 1.3rem;
  }

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

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

  .page-game-bai__tips-list li {
    padding: 15px 20px;
    font-size: 0.95rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .page-game-bai__tip-point {
    margin-bottom: 5px;
  }

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

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

  .page-game-bai__faq-toggle {
    font-size: 1.3rem;
  }

  .page-game-bai__cta-title {
    font-size: 2rem;
  }

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

  /* Universal image responsiveness for content area */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container,
  .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;
    overflow-x: hidden;
  }

  .page-game-bai__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}