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

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

.page-game-bai__section-title {
  font-size: 2.5em;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-game-bai__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
}

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

.page-game-bai__content-image {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-game-bai__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary color */
  border: 2px solid #2F6BFF; /* Primary color */
}

.page-game-bai__btn-secondary:hover {
  background: #2F6BFF; /* Primary color */
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-game-bai__btn-primary--large,
.page-game-bai__btn-secondary--large {
  padding: 15px 30px;
  font-size: 1.1em;
}

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

.page-game-bai__cta-buttons--center {
  justify-content: center;
}

/* Hero Carousel Section */
.page-game-bai__hero-carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: #F4F7FB;
}

.page-game-bai__hero-slider {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  overflow: hidden;
}

.page-game-bai__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.page-game-bai__hero-slide.is-active {
  opacity: 1;
}

.page-game-bai__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-game-bai__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.page-game-bai__hero-text-container {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
}

.page-game-bai__main-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-game-bai__description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-game-bai__hero-slider-prev,
.page-game-bai__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(47, 107, 255, 0.7); /* Primary color */
  color: #ffffff;
  border: none;
  padding: 15px 20px;
  font-size: 2em;
  cursor: pointer;
  z-index: 10;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.page-game-bai__hero-slider-prev:hover,
.page-game-bai__hero-slider-next:hover {
  background: #2F6BFF;
}

.page-game-bai__hero-slider-prev {
  left: 20px;
}

.page-game-bai__hero-slider-next {
  right: 20px;
}

.page-game-bai__hero-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.page-game-bai__hero-slider-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.page-game-bai__hero-slider-dot.is-active {
  background: #2F6BFF; /* Primary color */
  border: 2px solid #ffffff;
}

/* Introduction Section */
.page-game-bai__introduction-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

/* Game Types Section */
.page-game-bai__game-types-section {
  padding: 60px 0;
  background-color: #2F6BFF; /* Primary color */
  color: #ffffff;
}

.page-game-bai__game-types-section .page-game-bai__section-title {
  color: #ffffff;
}

.page-game-bai__game-types-section .page-game-bai__text-block {
  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: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #1F2D3D; /* Text Main */
}

.page-game-bai__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-game-bai__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-game-bai__game-card-description {
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

.page-game-bai__guide-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-game-bai__guide-card {
  flex: 0 0 calc(20% - 12px); /* 5 cards per row */
  max-width: calc(20% - 12px);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-game-bai__guide-card:hover {
  transform: translateY(-8px);
}

.page-game-bai__guide-card img {
  width: 100%;
  height: 350px; /* Fixed height for vertical images */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-bai__guide-card--pos-1,
.page-game-bai__guide-card--pos-5 {
  padding-top: 50px;
}

.page-game-bai__guide-card--pos-2,
.page-game-bai__guide-card--pos-4 {
  padding-top: 25px;
}

/* Strategies Section */
.page-game-bai__strategies-section {
  padding: 60px 0;
  background-color: #2F6BFF; /* Primary color */
  color: #ffffff;
}

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

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

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

.page-game-bai__strategy-list li {
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #6FA3FF; /* Auxiliary color */
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #ffffff;
}

.page-game-bai__strategy-item-title {
  font-size: 1.5em;
  color: #6FA3FF; /* Auxiliary color */
  margin-bottom: 10px;
}

.page-game-bai__strategy-list p {
  color: #f0f0f0;
}

/* Promotions Section */
.page-game-bai__promotions-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

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

.page-game-bai__promo-card {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #1F2D3D; /* Text Main */
}

.page-game-bai__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-game-bai__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-game-bai__promo-card-title {
  font-size: 1.5em;
  color: #2F6BFF; /* Primary color */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-bai__promo-card-description {
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Trust Section */
.page-game-bai__trust-section {
  padding: 60px 0;
  background-color: #2F6BFF; /* Primary color */
  color: #ffffff;
}

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

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

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

.page-game-bai__features-list li {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  color: #ffffff;
  text-align: center;
}

.page-game-bai__feature-item-title {
  font-size: 1.5em;
  color: #6FA3FF; /* Auxiliary color */
  margin-bottom: 10px;
}

.page-game-bai__features-list p {
  color: #f0f0f0;
}

/* FAQ Section */
.page-game-bai__faq-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

.page-game-bai__faq-list {
  margin-top: 40px;
}

.page-game-bai__faq-item {
  background: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #1F2D3D; /* Text Main */
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #2F6BFF; /* Primary color */
  background-color: #f8faff;
  border-bottom: 1px solid #D6E2FF;
}

.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-bai__faq-question .page-game-bai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  transform: rotate(45deg);
}

.page-game-bai__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: #1F2D3D; /* Text Main */
  border-top: 1px solid #eee;
}

.page-game-bai__faq-answer p {
  margin-bottom: 0;
}

/* CTA Section */
.page-game-bai__cta-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Primary color */
  text-align: center;
  color: #ffffff;
}

.page-game-bai__cta-content {
  max-width: 800px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-slider {
    height: 500px;
  }

  .page-game-bai__main-title {
    font-size: 3em;
  }

  .page-game-bai__description {
    font-size: 1.2em;
  }

  .page-game-bai__section-title {
    font-size: 2em;
  }

  .page-game-bai__game-grid,
  .page-game-bai__promo-grid,
  .page-game-bai__features-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-game-bai__guide-card {
    flex: 0 0 calc(33.33% - 10px); /* 3 cards per row */
    max-width: calc(33.33% - 10px);
    padding-top: 0 !important;
  }
}

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

  .page-game-bai__hero-carousel-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  /* Hero Carousel */
  .page-game-bai__hero-slider {
    height: 400px;
  }

  .page-game-bai__main-title {
    font-size: 2em !important;
    margin-bottom: 15px;
  }

  .page-game-bai__description {
    font-size: 1em !important;
    margin-bottom: 20px;
  }

  .page-game-bai__hero-slider-prev,
  .page-game-bai__hero-slider-next {
    padding: 10px 15px;
    font-size: 1.5em;
  }

  .page-game-bai__hero-slider-prev {
    left: 10px;
  }

  .page-game-bai__hero-slider-next {
    right: 10px;
  }

  .page-game-bai__hero-slider-dots {
    bottom: 10px;
  }

  .page-game-bai__hero-slider-dot {
    width: 10px;
    height: 10px;
  }

  /* Section Titles */
  .page-game-bai__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px;
  }

  /* Text Blocks */
  .page-game-bai__text-block {
    font-size: 1em !important;
    line-height: 1.7;
  }

  /* Images */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Buttons */
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai a[class*="button"],
  .page-game-bai a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-game-bai__cta-buttons,
  .page-game-bai__button-group,
  .page-game-bai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 15px !important;
  }

  /* Game Grid */
  .page-game-bai__game-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .page-game-bai__game-card-image {
    height: 180px;
  }

  /* Guide Grid (5 cards: 2-3 layout on mobile) */
  .page-game-bai__guide-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important; /* Base for 2 or 3 span */
    gap: 15px !important;
    padding: 0 10px;
  }

  .page-game-bai__guide-card {
    padding-top: 0 !important;
    flex: auto !important;
    max-width: 100% !important;
  }

  .page-game-bai__guide-card--pos-1,
  .page-game-bai__guide-card--pos-2 {
    grid-column: span 3 !important; /* Two cards on top row */
  }

  .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 !important; /* Three cards on bottom row */
  }

  .page-game-bai__guide-card img {
    height: 250px; /* Adjust height for mobile */
  }

  /* Strategies List */
  .page-game-bai__strategy-list li {
    padding: 15px;
  }

  .page-game-bai__strategy-item-title {
    font-size: 1.3em;
  }

  /* Promotions Grid */
  .page-game-bai__promo-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .page-game-bai__promo-card-image {
    height: 180px;
  }

  /* Features List */
  .page-game-bai__features-list {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* FAQ Section */
  .page-game-bai__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-game-bai__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
  }

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