.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 40px;
  background-color: #F4F7FB;
}

.page-game-bai__hero-image {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-game-bai__hero-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Default to cover for desktop */
  border-radius: 10px;
}

.page-game-bai__hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 15px;
}

.page-game-bai__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-game-bai__description {
  font-size: 1.1rem;
  color: #1F2D3D;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

/* General Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
}

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

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

.page-game-bai__btn-secondary:hover {
  background: #2F6BFF;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

.page-game-bai__btn-center {
  margin: 30px auto 0;
  display: block;
  max-width: 300px;
}

.page-game-bai__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  min-width: unset;
}

/* General Section Styling */
.page-game-bai__section-padding {
  padding: 60px 0;
}

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

.page-game-bai__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
}

.page-game-bai__section-title--white {
  color: #ffffff;
}

.page-game-bai__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #1F2D3D;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__text-block--white {
  color: #f0f0f0;
}

.page-game-bai__text-block--center {
  text-align: center;
}

.page-game-bai__link-white {
  color: #A5C4FF; /* Glow color for links on dark background */
  text-decoration: underline;
}

.page-game-bai__link-white:hover {
  color: #ffffff;
}

/* Intro Section */
.page-game-bai__image-content-grid {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-game-bai__content-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Popular Games Section */
.page-game-bai__dark-section {
  background-color: #2F6BFF; /* Primary color */
  color: #ffffff;
}

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

.page-game-bai__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  color: #1F2D3D;
}

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

.page-game-bai__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 20px 20px 10px;
}

.page-game-bai__card-title a {
  color: #1F2D3D;
  text-decoration: none;
}

.page-game-bai__card-title a:hover {
  color: #2F6BFF;
}

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

.page-game-bai__game-card .page-game-bai__btn-secondary {
  margin: 0 20px 20px;
}

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

.page-game-bai__benefit-item {
  text-align: center;
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border: 1px solid #D6E2FF; /* Border color */
}

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

.page-game-bai__benefit-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-game-bai__benefit-description {
  font-size: 0.95rem;
  color: #1F2D3D;
}

/* How To Play Section */
.page-game-bai__light-bg {
  background-color: #F9FBFD; /* Slightly lighter background */
}

.page-game-bai__numbered-list {
  list-style-type: decimal;
  padding-left: 25px;
  max-width: 900px;
  margin: 30px auto 40px;
  font-size: 1rem;
  line-height: 1.8;
  color: #1F2D3D;
}

.page-game-bai__numbered-list li {
  margin-bottom: 10px;
}

.page-game-bai__numbered-list li strong {
  color: #2F6BFF;
}

.page-game-bai__numbered-list li a {
  color: #2F6BFF;
  text-decoration: underline;
}

.page-game-bai__numbered-list li a:hover {
  color: #1F2D3D;
}

/* Strategy Section */
.page-game-bai__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__strategy-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border: 1px solid #D6E2FF;
  background-color: #FFFFFF;
}

.page-game-bai__strategy-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-game-bai__strategy-description {
  font-size: 0.95rem;
  color: #1F2D3D;
}

/* Promotions Section */
.page-game-bai__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  color: #1F2D3D;
}

.page-game-bai__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}