/* style/game-bai.css */
.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Explicitly set for clarity */
}

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

.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-game-bai__hero-content {
  position: relative;
  z-index: 1;
}

.page-game-bai__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFF00; /* Register and Login font color for main title */
  line-height: 1.2;
}

.page-game-bai__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-bai__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  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; /* Register color */
  color: #FFFF00; /* Register and Login font color */
  border: 2px solid #C30808;
}

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

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

.page-game-bai__btn-secondary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

.page-game-bai__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-game-bai__introduction-section,
.page-game-bai__why-choose-us,
.page-game-bai__faq-section {
  padding: 40px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-game-bai__popular-games,
.page-game-bai__how-to-play,
.page-game-bai__call-to-action {
  padding: 40px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-game-bai__popular-games .page-game-bai__section-title,
.page-game-bai__how-to-play .page-game-bai__section-title,
.page-game-bai__call-to-action .page-game-bai__section-title {
  color: #FFFF00; /* Use bright yellow for titles on dark background */
}

.page-game-bai__paragraph {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-bai__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px auto;
  object-fit: cover;
}

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