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

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

.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: #000000; /* Dark background for hero section to contrast with text */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-game-bai__hero-content-wrapper {
  padding: 40px 20px;
  max-width: 900px;
  position: relative;
  z-index: 1;
  color: #FFFFFF; /* White text on dark hero background */
}

.page-game-bai__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
}

.page-game-bai__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-game-bai__cta-buttons--center {
  margin-top: 30px;
}

.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, border-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: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

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

.page-game-bai__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for section titles */
}

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

.page-game-bai__intro-section,
.page-game-bai__why-m88-section,
.page-game-bai__promo-section,
.page-game-bai__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

.page-game-bai__games-list-section,
.page-game-bai__strategy-section,
.page-game-bai__guide-section,
.page-game-bai__conclusion-section {
  padding: 60px 0;
  background-color: #000000; /* Dark background */
  color: #FFFFFF;
}

.page-game-bai__games-list-section .page-game-bai__section-title,
.page-game-bai__strategy-section .page-game-bai__section-title,
.page-game-bai__guide-section .page-game-bai__section-title,
.page-game-bai__conclusion-section .page-game-bai__section-title {
  color: #FFFFFF;
}

.page-game-bai__games-list-section .page-game-bai__section-description,
.page-game-bai__strategy-section .page-game-bai__section-description,
.page-game-bai__guide-section .page-game-bai__section-description,
.page-game-bai__conclusion-section .page-game-bai__section-description {
  color: #f0f0f0;
}

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

.page-game-bai__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.page-game-bai__card-description {
  font-size: 0.95rem;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-game-bai__btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #26A9E0;
  color: #26A9E0;
  background-color: transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}

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

.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-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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