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

.page-game-bai__hero-carousel-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-game-bai__hero-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.page-game-bai__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

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

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

.page-game-bai__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 10%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  text-align: center;
  color: #FFF3E6;
}

.page-game-bai__main-title,
.page-game-bai__sub-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFB04D; /* Glow */
  line-height: 1.2;
}

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

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

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

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
}

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

.page-game-bai__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A;
  border: 2px solid #FFA53A;
}

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

.page-game-bai__hero-slider-prev,
.page-game-bai__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #FFF3E6;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.5em;
  border-radius: 5px;
  z-index: 10;
}

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

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

.page-game-bai__hero-slider-prev::before {
  content: '❮';
}

.page-game-bai__hero-slider-next::before {
  content: '❯';
}

.page-game-bai__guide-box {
  background-color: #17191F; /* Card BG */
  padding: 40px 20px;
  margin: 0 auto 40px;
  max-width: 1200px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border */
  text-align: center;
}

.page-game-bai__guide-title {
  font-size: 2.2em;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-game-bai__guide-description {
  font-size: 1.1em;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-bai__guide-card {
  flex: 0 0 calc(20% - 16px); /* 5 cards per row with gap */
  max-width: calc(20% - 16px);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

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

.page-game-bai__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.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;
}

.page-game-bai__home-content-box {
  max-width: 91%;
  margin: 0 auto 40px;
  padding: 30px;
  border: 5px solid #A84F0C; /* Border */
  border-radius: 15px;
  box-shadow: 0 0 20px #FFB04D; /* Glow */
  height: 700px;
  background-color: #17191F; /* Card BG */
}

.page-game-bai__home-content-inner {
  height: 100%;
  overflow-y: auto;
  padding-right: 15px; /* For scrollbar */
}

.page-game-bai__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-game-bai__home-content-inner::-webkit-scrollbar-track {
  background: #0D0E12;
  border-radius: 10px;
}

.page-game-bai__home-content-inner::-webkit-scrollbar-thumb {
  background: #FFA53A;
  border-radius: 10px;
}

.page-game-bai__home-content-inner::-webkit-scrollbar-thumb:hover {
  background: #FF8C1A;
}

.page-game-bai__section-title {
  font-size: 2.5em;
  color: #FFB04D; /* Glow */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-game-bai__sub-section-title {
  font-size: 1.8em;
  color: #FFA53A;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.page-game-bai p {
  margin-bottom: 15px;
  color: #FFF3E6;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-game-bai strong {
  color: #FFA53A;
}

.page-game-bai__game-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-game-bai__game-item {
  background-color: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.page-game-bai__game-item h4 {
  color: #FFB04D; /* Glow */
  font-size: 1.5em;
  margin-bottom: 15px;
  text-align: center;
}

.page-game-bai__game-item img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-game-bai__game-trial-frame {
  border: 2px solid #FFA53A;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

.page-game-bai__benefits-list {
  list-style: disc;
  margin-left: 20px;
  color: #FFF3E6;
  font-size: 1.05em;
}

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

.page-game-bai__promotions-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  text-align: center;
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border */
}

.page-game-bai__promotion-card {
  background-color: #0D0E12; /* Background */
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.page-game-bai__promotion-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.page-game-bai__promotion-text {
  color: #FFF3E6;
  margin-bottom: 20px;
}

.page-game-bai__view-all-promos {
  margin-top: 30px;
}

.page-game-bai__faq-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border */
}

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

.page-game-bai__faq-item {
  background-color: #0D0E12; /* Background */
  border: 1px solid #A84F0C;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  color: #FFB04D; /* Glow */
  font-weight: bold;
  font-size: 1.15em;
  list-style: none;
  user-select: none;
}

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

.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: 0 25px 20px;
  color: #FFF3E6;
  line-height: 1.7;
  font-size: 1.05em;
}

.page-game-bai__cta-section {
  text-align: center;
  padding: 50px 20px;
  margin-top: 40px;
  background-color: #0D0E12; /* Background */
  border-top: 2px solid #A84F0C;
}

/* General image and button responsive styles */
.page-game-bai img {
  max-width: 100%;
  height: auto;
  display: block;
}

.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__cta-buttons,
.page-game-bai__button-group,
.page-game-bai__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  /* Hero Carousel Section */
  .page-game-bai__hero-carousel-section {
    padding-top: 10px !important; /* Ensure small padding */
    margin-bottom: 20px;
  }

  .page-game-bai__hero-slider {
    height: 300px;
  }

  .page-game-bai__hero-content {
    padding: 20px 5%;
  }

  .page-game-bai__main-title,
  .page-game-bai__sub-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
  }

  .page-game-bai__description {
    font-size: 0.95em;
    margin-bottom: 15px;
  }

  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 10px;
    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"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-bai__hero-slider-prev,
  .page-game-bai__hero-slider-next {
    padding: 8px 12px;
    font-size: 1.2em;
  }

  /* Guide Box Section */
  .page-game-bai__guide-box {
    padding: 25px 15px;
    margin-bottom: 20px;
  }

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

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

  .page-game-bai__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns for 2+3 layout */
    gap: 10px;
  }

  .page-game-bai__guide-card {
    padding-top: 0 !important; /* Reset desktop padding */
    flex: auto; /* Allow auto sizing */
    max-width: 100%; /* Reset max-width */
  }

  /* Mobile 2+3 layout for 5 guide cards */
  .page-game-bai__guide-card--pos-1,
  .page-game-bai__guide-card--pos-2 {
    grid-column: span 3; /* Top two cards span 3 columns each */
  }

  .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; /* Bottom three cards span 2 columns each */
  }

  /* Home Content Box Section */
  .page-game-bai__home-content-box {
    max-width: 100%;
    margin: 0 15px 20px;
    padding: 20px;
    height: auto; /* Full height on mobile */
    box-shadow: 0 0 10px #FFB04D; /* Smaller glow */
  }

  .page-game-bai__home-content-inner {
    height: auto; /* Allow content to expand */
    overflow: visible; /* No scrollbar on mobile */
    padding-right: 0;
  }

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

  .page-game-bai__sub-section-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-game-bai__content-image {
    margin: 15px auto;
  }

  .page-game-bai p {
    font-size: 1em;
    margin-bottom: 10px;
  }

  .page-game-bai__game-list {
    grid-template-columns: 1fr; /* Single column for game list */
    gap: 20px;
  }

  .page-game-bai__game-item {
    padding: 20px;
  }

  .page-game-bai__game-item h4 {
    font-size: 1.3em;
  }

  .page-game-bai__benefits-list {
    font-size: 1em;
    margin-left: 15px;
  }

  /* Promotions Section */
  .page-game-bai__promotions-section {
    margin: 20px 15px;
    padding: 25px 15px;
  }

  .page-game-bai__promotion-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-game-bai__promotion-title {
    font-size: 1.4em;
  }

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

  /* FAQ Section */
  .page-game-bai__faq-section {
    margin: 20px 15px;
    padding: 25px 15px;
  }

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

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

  /* CTA Section */
  .page-game-bai__cta-section {
    padding: 30px 15px;
    margin-top: 20px;
  }

  /* General Image Responsive */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container,
  .page-game-bai__home-content-box,
  .page-game-bai__guide-box,
  .page-game-bai__promotions-section,
  .page-game-bai__faq-section,
  .page-game-bai__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

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

  .page-game-bai__guide-grid {
    grid-template-columns: 1fr; /* Single column for all guide cards */
  }

  .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 {
    grid-column: span 1; /* All cards span 1 column */
  }

  .page-game-bai__game-list {
    grid-template-columns: 1fr;
  }
}