.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

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

.page-game-bai__section-title {
  font-size: 2.5em;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-bai__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary,
.page-game-bai__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button */
  color: #FFF1E8; /* Text Main */
  border: none;
}

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

.page-game-bai__btn-secondary {
  background: transparent;
  color: #FFB04A; /* Gold-like from Button */
  border: 2px solid #FFB04A;
}

.page-game-bai__btn-secondary:hover {
  background: #FFB04A;
  color: #140C0C; /* Background */
}

.page-game-bai__btn-link {
  background: transparent;
  color: #F3C54D; /* Gold */
  border: 1px solid #F3C54D;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-game-bai__btn-link:hover {
  background: #F3C54D;
  color: #140C0C; /* Background */
}

.page-game-bai__dark-section {
  background-color: #2A1212; /* Card BG */
  padding: 60px 0;
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 60px;
  text-align: center;
}

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

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

.page-game-bai__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  background-color: rgba(20, 12, 12, 0.8); /* Semi-transparent background for text */
  border-radius: 10px;
  margin-top: -80px; /* Overlap slightly for design */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-game-bai__hero-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

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

/* Intro Section */
.page-game-bai__intro-section {
  padding: 80px 0;
  margin-bottom: 60px;
}

/* Popular Games Section */
.page-game-bai__popular-games-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

.page-game-bai__game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-game-bai__game-card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.page-game-bai__game-card-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
  margin-bottom: 15px;
}

.page-game-bai__game-card-title {
  font-size: 1.5em;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__game-card-text {
  font-size: 0.95em;
  color: #FFF1E8;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 80px 0;
  margin-bottom: 60px;
}

.page-game-bai__guide-steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.page-game-bai__guide-step {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai__guide-step-title {
  font-size: 1.8em;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
}

.page-game-bai__guide-step-text {
  color: #FFF1E8;
  margin-bottom: 25px;
}

/* Strategy Section */
.page-game-bai__strategy-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

.page-game-bai__strategy-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-game-bai__strategy-text {
  flex: 1;
}

.page-game-bai__strategy-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-game-bai__strategy-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-game-bai__strategy-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #FFF1E8;
}

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

/* Promotions Section */
.page-game-bai__promotions-section {
  padding: 80px 0;
  margin-bottom: 60px;
}

.page-game-bai__promotions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-game-bai__promo-card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.page-game-bai__promo-card-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
  margin-bottom: 15px;
}

.page-game-bai__promo-card-title {
  font-size: 1.4em;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__promo-card-text {
  font-size: 0.9em;
  color: #FFF1E8;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-game-bai__cta-bottom {
  text-align: center;
}

/* Why Choose Us Section - Guide Box (team cards) */
.page-game-bai__why-choose-us-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

.page-game-bai__guide-box {
  background-color: #2A1212; /* Card BG */
  border-radius: 10px;
  padding: 40px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.page-game-bai__guide-card {
  flex: 0 0 auto;
  width: 250px;
  height: 350px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block; /* Ensure it's a block element for image */
}

.page-game-bai__guide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-game-bai__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Positioning for the 5 vertical cards to create a wave effect */
.page-game-bai__guide-card--pos-1 {
  margin-top: 50px;
}

.page-game-bai__guide-card--pos-2 {
  margin-top: 25px;
}

.page-game-bai__guide-card--pos-4 {
  margin-top: 25px;
}

.page-game-bai__guide-card--pos-5 {
  margin-top: 50px;
}

/* Final CTA Section */
.page-game-bai__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-game-bai__cta-section .page-game-bai__btn-primary {
  font-size: 1.2em;
  padding: 15px 35px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-content {
    margin-top: -60px;
  }

  .page-game-bai__game-grid,
  .page-game-bai__promotions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-game-bai__guide-steps {
    flex-direction: column;
    align-items: center;
  }

  .page-game-bai__guide-step {
    max-width: 80%;
  }

  .page-game-bai__strategy-content {
    flex-direction: column;
  }

  .page-game-bai__strategy-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-game-bai__guide-grid {
    gap: 15px;
  }

  .page-game-bai__guide-card {
    width: 200px;
    height: 280px;
  }

  .page-game-bai__guide-card--pos-1,
  .page-game-bai__guide-card--pos-2,
  .page-game-bai__guide-card--pos-4,
  .page-game-bai__guide-card--pos-5 {
    margin-top: 0; /* Reset wave effect */
  }
}

@media (max-width: 768px) {
  .page-game-bai__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-bai__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-game-bai__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* Hero Section Mobile */
  .page-game-bai__hero-section {
    margin-bottom: 40px;
    padding-top: 10px !important; /* Small top padding */
  }

  .page-game-bai__hero-image-wrapper {
    max-height: 200px; /* Limit hero image height on mobile */
  }

  .page-game-bai__hero-content {
    padding: 25px 15px;
    margin-top: -50px; /* Smaller overlap */
  }

  .page-game-bai__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-game-bai__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

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

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Intro Section Mobile */
  .page-game-bai__intro-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  /* Popular Games Section Mobile */
  .page-game-bai__popular-games-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  .page-game-bai__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__game-card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Guide Section Mobile */
  .page-game-bai__guide-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  .page-game-bai__guide-step {
    max-width: 100%;
  }

  /* Strategy Section Mobile */
  .page-game-bai__strategy-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  .page-game-bai__strategy-content {
    gap: 20px;
  }

  .page-game-bai__strategy-image-wrapper {
    margin-bottom: 20px;
  }

  .page-game-bai__strategy-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Promotions Section Mobile */
  .page-game-bai__promotions-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  .page-game-bai__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__promo-card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Why Choose Us Section Mobile - Guide Box (team cards) */
  .page-game-bai__why-choose-us-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  .page-game-bai__guide-box {
    padding: 20px 15px;
  }

  .page-game-bai__guide-grid {
    grid-template-columns: repeat(6, 1fr); /* Temp grid for positioning */
    gap: 10px;
  }

  .page-game-bai__guide-card {
    width: 100%; /* Take full column width */
    height: 140px; /* Adjust height for smaller screens */
    margin-top: 0 !important; /* Reset wave effect */
  }

  .page-game-bai__guide-card--pos-1,
  .page-game-bai__guide-card--pos-2 {
    grid-column: span 3;
  }

  .page-game-bai__guide-card--pos-3,
  .page-game-bai__guide-card--pos-4,
  .page-game-bai__guide-card--pos-5 {
    grid-column: span 2;
  }

  /* Final CTA Section Mobile */
  .page-game-bai__cta-section {
    padding: 40px 0;
  }

  .page-game-bai__cta-section .page-game-bai__btn-primary {
    font-size: 1.1em;
    padding: 12px 25px;
  }

  /* General image responsiveness for all img tags */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers with images/buttons are responsive */
  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container,
  .page-game-bai__hero-cta-buttons,
  .page-game-bai__game-grid,
  .page-game-bai__promotions-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__strategy-content,
  .page-game-bai__guide-box,
  .page-game-bai__guide-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-game-bai__hero-cta-buttons, .page-game-bai__guide-grid {
    flex-wrap: wrap !important;
    flex-direction: column; /* Ensure vertical stacking for buttons/cards if needed */
    gap: 10px; /* Adjust gap for mobile */
  }
  .page-game-bai__guide-grid {
    display: flex; /* Override grid to ensure flex behavior */
    flex-direction: row; /* Keep row for the '上二下三' visual effect on mobile */
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
  }
  .page-game-bai__guide-card {
    flex: 0 0 calc(50% - 10px); /* Two items per row */
    height: 180px;
  }
  .page-game-bai__guide-card:nth-child(3), .page-game-bai__guide-card:nth-child(4), .page-game-bai__guide-card:nth-child(5) {
    flex: 0 0 calc(33.33% - 10px); /* Three items per row for the bottom three */
    height: 120px;
  }
  .page-game-bai__guide-card--pos-1, .page-game-bai__guide-card--pos-2, .page-game-bai__guide-card--pos-3, .page-game-bai__guide-card--pos-4, .page-game-bai__guide-card--pos-5 {
    margin-top: 0 !important;
  }
  .page-game-bai__hero-cta-buttons {
    flex-direction: column;
  }
}