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

/* Common container and section padding */
.page-game-bai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

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

.page-game-bai__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #333333; /* Default for light background */
}

.page-game-bai__section-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-game-bai__text-block {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333333;
}

/* Color contrast classes */
.page-game-bai__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-game-bai__light-text {
  color: #ffffff;
}

.page-game-bai__dark-text {
  color: #333333;
}

.page-game-bai__card-dark-text {
  color: #333333;
}

.page-game-bai__card-light-text {
  color: #ffffff;
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

.page-game-bai__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-game-bai__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Specific button for Login/Register (if different) */
.page-game-bai__btn-login {
  background-color: #EA7C07; /* Specific login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-game-bai__btn-login:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

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

/* HERO Section */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Approximately 10px top padding for hero section */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  background-color: #26A9E0; /* Ensure background color if image fails to load */
}

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

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-game-bai__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 15px;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff; /* Text on primary background is white */
}

.page-game-bai__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-game-bai__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 500px; /* Max width for button group */
  margin: 0 auto;
}

/* Intro Section */
.page-game-bai__intro-section {
  background-color: #F8F8F8; /* Light background for intro */
}

/* Games List Section */
.page-game-bai__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-game-bai__game-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #333333;
}

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

.page-game-bai__game-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0 15px;
  flex-grow: 0;
}

.page-game-bai__game-card-description {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-game-bai__game-card-button {
  margin: 0 15px;
  margin-top: auto;
}

/* Benefits Section */
.page-game-bai__benefits-section {
  background-color: #26A9E0; /* Primary color background */
}

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

.page-game-bai__benefit-item {
  text-align: center;
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  border-radius: 12px;
  color: #ffffff;
}

.page-game-bai__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.page-game-bai__benefit-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-game-bai__benefit-description {
  font-size: 15px;
  line-height: 1.5;
  color: #ffffff;
}

/* How To Play Section */
.page-game-bai__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

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

.page-game-bai__step-number {
  font-size: 36px;
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-game-bai__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  flex-grow: 0;
}

.page-game-bai__step-description {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-game-bai__step-button {
  margin-top: auto;
}

/* Promotions Section */
.page-game-bai__promotions-section {
  background-color: #252b38; /* Darker background for promotions */
}

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

.page-game-bai__promo-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #ffffff;
}

.page-game-bai__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  flex-grow: 0;
}

.page-game-bai__promo-description {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 25px;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-game-bai__promo-button {
  margin-top: auto;
}

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

.page-game-bai__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #333333;
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none; /* Disable text selection on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -khtml-user-select: none; /* Disable text selection on Safari */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on IE/Edge */
  user-select: none; /* Disable text selection */
}

.page-game-bai__faq-item[open] > .page-game-bai__faq-question {
  background-color: #eaf7ff; /* Lighter background when open */
  color: #26A9E0;
}

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

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

.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  margin-left: 15px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to X or minus */
}

.page-game-bai__faq-answer {
  padding: 0 25px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
}

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

.page-game-bai__faq-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-game-bai__faq-link:hover {
  color: #1a8cc7;
}

/* Conclusion Section */
.page-game-bai__conclusion-section {
  background-color: #26A9E0; /* Primary color background */
  text-align: center;
}

.page-game-bai__conclusion-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  margin: 30px auto 0;
}