.page-game-bai {
  color: #333333; /* Dark text for light body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set for content area to ensure contrast */
}

.page-game-bai__top-section {
  padding-top: 10px; /* Small top padding, not --header-offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: #f8f8f8; /* Light background for top section */
}

.page-game-bai__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* H1 with clamp */
  color: #017439;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-game-bai__description {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: #555555;
}

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

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

.page-game-bai__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box; /* For responsive buttons */
  word-wrap: break-word; /* For responsive buttons */
  text-align: center;
}

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

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

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

.page-game-bai__content-section {
  max-width: 1150px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-game-bai__section-title {
  font-size: 2.2rem;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-game-bai__sub-section-title {
  font-size: 1.8rem;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-game-bai__game-card {
  background-color: #fefefe;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

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

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

.page-game-bai__game-info {
  padding: 20px;
}

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

.page-game-bai__game-description {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 15px;
}

.page-game-bai__read-more {
  display: inline-block;
  color: #C30808;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-game-bai__read-more:hover {
  text-decoration: underline;
}

.page-game-bai__image-figure {
  margin: 20px 0;
  text-align: center;
}

.page-game-bai__image-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-game-bai__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-game-bai__list-item {
  margin-bottom: 10px;
}

.page-game-bai__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-game-bai__faq-item {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.page-game-bai__faq-question {
  background-color: #f5f5f5;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-game-bai__faq-question:hover {
  background-color: #e0e0e0;
}

.page-game-bai__faq-answer {
  padding: 15px 20px;
  background-color: #ffffff;
  color: #555555;
  border-top: 1px solid #eee;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  /* 1. Top section title + CTA */
  .page-game-bai__top-section {
    padding-top: 10px !important; /* Small top padding */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__main-title {
    font-size: 2rem;
  }
  .page-game-bai__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* 2. Single column long text container */
  .page-game-bai__content-section {
    margin: 20px auto;
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-game-bai__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  .page-game-bai__sub-section-title {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .page-game-bai__game-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 3. General images and figures */
  .page-game-bai img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    min-width: 200px !important; /* Ensure min size is maintained */
    min- /* Adjust min height for mobile if needed, but maintain aspect */
    object-fit: cover;
  }
  .page-game-bai__image-figure {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-game-bai__game-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  /* 4. Buttons and button containers (already covered in top section, but explicit for all buttons) */
  .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 {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking */
  }

  /* 5. Registration tutorial and FAQ blocks */
  .page-game-bai__list {
    padding-left: 20px;
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-game-bai__faq-item {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-game-bai__faq-question {
    font-size: 0.95rem;
    padding: 12px 15px;
  }
  .page-game-bai__faq-answer {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
}