.page-game-bai__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small padding to avoid content touching the very top */
}

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

.page-game-bai__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #F3F8FF;
  padding: 20px;
  max-width: 900px;
  margin-top: 20px; /* Space between image and content */
}

.page-game-bai__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  color: #F3F8FF;
  max-width: 100%;
}

.page-game-bai__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #AFC4E8;
}

.page-game-bai__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-game-bai__intro-section,
.page-game-bai__features-section,
.page-game-bai__game-types-section,
.page-game-bai__how-to-play-section,
.page-game-bai__cta-section {
  padding: 60px 0;
  background-color: #08162B;
}

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

.page-game-bai__section-title {
  font-size: 2.5em;
  color: #F3F8FF;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-game-bai__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  color: #AFC4E8;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-game-bai__feature-item {
  background-color: #10233F;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84;
  transition: transform 0.3s ease;
}

.page-game-bai__feature-item:hover {
  transform: translateY(-5px);
}

.page-game-bai__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-game-bai__feature-title {
  font-size: 1.6em;
  color: #F3F8FF;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-bai__feature-description {
  font-size: 1em;
  color: #AFC4E8;
  line-height: 1.6;
}

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

.page-game-bai__game-item {
  background-color: #10233F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-game-bai__game-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-game-bai__game-title {
  font-size: 1.5em;
  color: #F3F8FF;
  padding: 15px 20px 5px;
  font-weight: 600;
}

.page-game-bai__game-description {
  font-size: 0.95em;
  color: #AFC4E8;
  line-height: 1.6;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-game-bai__game-button {
  display: block;
  background: #1D5FD1;
  color: #F3F8FF;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border-radius: 0 0 10px 10px;
}

.page-game-bai__game-button:hover {
  background-color: #113B7A;
}

.page-game-bai__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-game-bai__how-to-play-section {
  background-color: #113B7A;
}

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

.page-game-bai__step-item {
  background-color: #10233F;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84;
  text-align: center;
}

.page-game-bai__step-title {
  font-size: 1.8em;
  color: #F2C14E;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-game-bai__step-description {
  font-size: 1em;
  color: #AFC4E8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-game-bai__step-button {
  display: inline-block;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

.page-game-bai__cta-section {
  text-align: center;
  background-color: #08162B;
}

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

.page-game-bai__cta-button--secondary {
  background: #1D5FD1;
}

.page-game-bai__cta-button--secondary:hover {
  background-color: #113B7A;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__section-title {
    font-size: 2em;
  }
  .page-game-bai__hero-content {
    padding: 15px;
  }
  .page-game-bai__main-title {
    font-size: 2.5em;
  }
  .page-game-bai__hero-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-game-bai__hero-section {
    padding-top: 10px;
  }
  .page-game-bai__hero-image {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }
  .page-game-bai__hero-content {
    margin-top: 15px;
    max-width: 100%;
  }
  .page-game-bai__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }
  .page-game-bai__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-game-bai__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-game-bai__intro-section,
  .page-game-bai__features-section,
  .page-game-bai__game-types-section,
  .page-game-bai__how-to-play-section,
  .page-game-bai__cta-section {
    padding: 40px 0;
  }
  .page-game-bai__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-game-bai__text-block {
    font-size: 0.95em;
  }
  .page-game-bai__features-grid,
  .page-game-bai__game-list,
  .page-game-bai__step-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai__feature-item,
  .page-game-bai__game-item,
  .page-game-bai__step-item {
    padding: 20px;
  }
  .page-game-bai__feature-icon,
  .page-game-bai__game-thumbnail {
    min-width: 200px;
    min-height: 200px;
    max-width: 100% !important;
    height: auto !important;
  }
  .page-game-bai__feature-title {
    font-size: 1.4em;
  }
  .page-game-bai__game-title {
    font-size: 1.3em;
  }
  .page-game-bai__step-title {
    font-size: 1.5em;
  }
  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-bai__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-game-bai__content-wrapper img {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }
}