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

.page-game-bai__dark-section {
  background-color: #B71C1C; /* Deep Red background */
  color: #FFF5E1; /* Main text color for dark backgrounds */
}

.page-game-bai__light-bg {
  background-color: #f5f5f5;
  color: #333333;
}

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

.page-game-bai__hero-section {
  position: relative;
  text-align: center;
  padding: 10px 0 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-game-bai__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.5); /* Darken image for better text contrast */
}

.page-game-bai__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 50px;
  padding: 0 20px;
}

.page-game-bai__main-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: bold;
  color: #FFCC66; /* Gold color for main title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-game-bai__hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #FFF5E1;
  margin-bottom: 30px;
}

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

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
}

.page-game-bai__btn-secondary {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1;
  border: 2px solid #F2B544; /* Border color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-bai__btn-secondary:hover {
  background-color: #C91F17;
  transform: translateY(-2px);
}

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

.page-game-bai__intro-section,
.page-game-bai__responsible-gaming,
.page-game-bai__cta-final {
  padding: 60px 0;
  text-align: center;
}

.page-game-bai__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__games-overview,
.page-game-bai__features-section,
.page-game-bai__how-to-play,
.page-game-bai__blog-section {
  padding: 60px 0;
}

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

.page-game-bai__game-card,
.page-game-bai__feature-item,
.page-game-bai__blog-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #FFF5E1;
  border: 1px solid #F2B544;
}

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

.page-game-bai__game-thumbnail,
.page-game-bai__blog-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #F2B544;
}

.page-game-bai__game-title,
.page-game-bai__feature-title,
.page-game-bai__blog-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFCC66;
}

.page-game-bai__blog-title a {
  color: #FFCC66;
  text-decoration: none;
}

.page-game-bai__blog-title a:hover {
  text-decoration: underline;
}

.page-game-bai__game-description,
.page-game-bai__feature-description,
.page-game-bai__blog-excerpt {
  font-size: 1rem;
  color: #FFF5E1;
}

.page-game-bai__how-to-play .page-game-bai__section-title {
  color: #FFCC66;
}

.page-game-bai__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-game-bai__step-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: #FFF5E1;
  border: 1px solid #F2B544;
}

.page-game-bai__step-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFCC66;
}

.page-game-bai__step-description {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

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

.page-game-bai__policy-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-game-bai__policy-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #C91F17;
}

.page-game-bai__policy-description {
  font-size: 1rem;
}

.page-game-bai__view-all-blog {
  text-align: center;
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-game-bai__hero-section {
    padding: 10px 0 40px;
  }

  .page-game-bai__hero-content {
    margin-top: 30px;
  }

  .page-game-bai__main-title {
    font-size: 2rem;
  }

  .page-game-bai__hero-description {
    font-size: 1rem;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-bai__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-game-bai__text-block {
    font-size: 1rem;
  }

  .page-game-bai__game-grid,
  .page-game-bai__features-grid,
  .page-game-bai__blog-grid,
  .page-game-bai__policy-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__game-card,
  .page-game-bai__feature-item,
  .page-game-bai__blog-card,
  .page-game-bai__step-item,
  .page-game-bai__policy-item {
    padding: 20px;
  }

  .page-game-bai__game-title,
  .page-game-bai__feature-title,
  .page-game-bai__blog-title,
  .page-game-bai__step-title,
  .page-game-bai__policy-title {
    font-size: 1.3rem;
  }

  .page-game-bai__game-description,
  .page-game-bai__feature-description,
  .page-game-bai__blog-excerpt,
  .page-game-bai__step-description,
  .page-game-bai__policy-description {
    font-size: 0.95rem;
  }

  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-bai__hero-section,
  .page-game-bai__intro-section,
  .page-game-bai__games-overview,
  .page-game-bai__features-section,
  .page-game-bai__how-to-play,
  .page-game-bai__responsible-gaming,
  .page-game-bai__blog-section,
  .page-game-bai__cta-final,
  .page-game-bai__container,
  .page-game-bai__game-card,
  .page-game-bai__feature-item,
  .page-game-bai__blog-card,
  .page-game-bai__step-item,
  .page-game-bai__policy-item,
  .page-game-bai__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-game-bai__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}