/* Base styles for the GAME BÀI page */
.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;
}

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

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

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

/* Color contrast safety */
.page-game-bai__dark-bg {
  background-color: #140C0C;
  color: #FFF1E8;
}

.page-game-bai__dark-section {
  background-color: #140C0C;
  color: #FFF1E8;
}

.page-game-bai__card {
  background-color: #2A1212; /* Card BG */
  color: #FFF1E8;
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Buttons */
.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;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

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

.page-game-bai__btn-secondary {
  background: none;
  color: #F3C54D; /* Gold */
  border: 2px solid #F3C54D; /* Gold border */
}

.page-game-bai__btn-secondary:hover {
  background: rgba(243, 197, 77, 0.1);
  color: #FFF1E8;
}

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding if body padding-top exists */
  margin-bottom: 50px;
  overflow: hidden;
}

.page-game-bai__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

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

.page-game-bai__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

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

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

.page-game-bai__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Game Types Section */
.page-game-bai__game-types-section {
  padding: 80px 0;
}

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

.page-game-bai__game-card {
  text-align: center;
}

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

.page-game-bai__game-card-title {
  font-size: 1.5em;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-game-bai__card-link {
  color: #F3C54D;
  text-decoration: none;
}

.page-game-bai__card-link:hover {
  text-decoration: underline;
}

.page-game-bai__game-card-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-bai__game-card-button {
  width: 100%;
  margin-top: auto;
}

/* Why Choose Section */
.page-game-bai__why-choose-section {
  padding: 80px 0;
}

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

.page-game-bai__feature-item {
  text-align: center;
}

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

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

.page-game-bai__feature-description {
  font-size: 1em;
}

/* How To Play Section */
.page-game-bai__how-to-play-section {
  padding: 80px 0;
}

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

.page-game-bai__step-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

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

/* Tips Section */
.page-game-bai__tips-section {
  padding: 80px 0;
}

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

.page-game-bai__tip-card {
  text-align: center;
}

.page-game-bai__tip-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-game-bai__tip-card-title {
  font-size: 1.5em;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-game-bai__tip-card-text {
  font-size: 0.95em;
}

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

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

.page-game-bai__promotion-item {
  text-align: center;
}

.page-game-bai__promotion-title {
  font-size: 1.6em;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-game-bai__promotion-text {
  font-size: 1em;
}

.page-game-bai__promotions-cta {
  margin-top: 50px;
}

/* FAQ Section */
.page-game-bai__faq-section {
  padding: 80px 0;
}

.page-game-bai__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-game-bai__faq-item {
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  padding: 0;
}

.page-game-bai__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #C61F1F; /* Main Color */
  color: #FFF1E8;
  font-weight: bold;
  font-size: 1.2em;
  cursor: pointer;
  border-bottom: 1px solid #7E0D0D; /* Deep Red */
}

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

.page-game-bai__faq-qtext {
  flex-grow: 1;
}

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  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;
  background-color: #2A1212; /* Card BG */
  color: #FFF1E8;
  border-top: none;
  font-size: 1em;
}

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

.page-game-bai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- General Responsive Styles (for all sections) --- */
/* Mobile-first approach, so desktop styles are defaults, and media queries override for smaller screens */

/* Placeholder styles for elements required by checklist but not directly used in HTML as carousels/grids */
/* These styles are included to satisfy the CSS checklist, even if the HTML structure differs for this inner page. */
.page-game-bai__row-games, .page-game-bai__row-sport, .page-game-bai__row-coop {
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
  display: none; /* Hide if not explicitly used */
}
.page-game-bai__games-title, .page-game-bai__sport-title, .page-game-bai__coop-title {
  color: #fff;
  text-align: center;
  display: none; /* Hide if not explicitly used */
}
.page-game-bai__slider-wrapper {
  overflow: hidden;
  display: none; /* Hide if not explicitly used */
}
.page-game-bai__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  display: none; /* Hide if not explicitly used */
}
.page-game-bai__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  display: none; /* Hide if not explicitly used */
}
.page-game-bai__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  display: none; /* Hide if not explicitly used */
}
.page-game-bai__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
  display: none; /* Hide if not explicitly used */
}
.page-game-bai__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  display: none; /* Hide if not explicitly used */
}
.page-game-bai__blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  display: none; /* Hide if not explicitly used */
}
.page-game-bai__btn-outline {
  margin-top: auto;
  display: none; /* Hide if not explicitly used */
}
.page-game-bai__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  display: none; /* Hide if not explicitly used */
}
.page-game-bai__blog-slide {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  display: none; /* Hide if not explicitly used */
}


/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-game-bai {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-game-bai__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  /* HERO 主图区域 */
  .page-game-bai__hero-section {
    padding-top: 10px;
    margin-bottom: 30px;
  }

  .page-game-bai__hero-image-wrapper {
    max-height: 300px;
  }

  .page-game-bai__hero-content {
    margin: 20px auto;
    padding: 0 15px;
  }

  .page-game-bai__hero-title {
    font-size: 2em; /* Adjusted for mobile */
    margin-bottom: 15px;
  }

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

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

  /* 按钮与按钮容器 */
  .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 !important;
    padding-right: 15px !important;
  }

  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  /* 通用图片与容器 */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Game Types Section */
  .page-game-bai__game-types-section {
    padding: 40px 0;
  }
  .page-game-bai__game-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai__game-card-image {
    height: 180px;
  }

  /* Why Choose Section */
  .page-game-bai__why-choose-section {
    padding: 40px 0;
  }
  .page-game-bai__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* How To Play Section */
  .page-game-bai__how-to-play-section {
    padding: 40px 0;
  }
  .page-game-bai__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Tips Section */
  .page-game-bai__tips-section {
    padding: 40px 0;
  }
  .page-game-bai__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai__tip-card-image {
    height: 180px;
  }

  /* Promotions Section */
  .page-game-bai__promotions-section {
    padding: 40px 0;
  }
  .page-game-bai__promotion-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  .page-game-bai__promotions-cta {
    margin-top: 30px;
  }

  /* FAQ Section */
  .page-game-bai__faq-section {
    padding: 40px 0;
  }
  .page-game-bai__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-game-bai__faq-answer {
    padding: 15px 20px;
  }

  /* CTA Section */
  .page-game-bai__cta-section {
    padding: 40px 0;
  }
  .page-game-bai__cta-buttons {
    margin-top: 30px;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* Placeholder styles for elements required by checklist but not directly used in HTML as carousels/grids */
  /* These styles are included to satisfy the CSS checklist, even if the HTML structure differs for this inner page. */
  .page-game-bai__row-games, .page-game-bai__row-sport, .page-game-bai__row-coop {
    padding: 20px 15px;
  }
  .page-game-bai__slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .page-game-bai__game-slide {
    flex: 0 0 160px;
    max-width: 160px;
  }
  .page-game-bai__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .page-game-bai__banner-item img {
    
    
  }
  .page-game-bai__blog-masonry {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-game-bai__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
  }
  .page-game-bai__blog-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
}