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

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

/* Hero Section */
.page-game-bai__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 50px;
  overflow: hidden;
}

.page-game-bai__hero-image {
  width: 100%;
  height: 600px;
  position: relative;
  z-index: 0;
}

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

.page-game-bai__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: -200px auto 0; /* Pull content up over image slightly */
  background: rgba(13, 14, 18, 0.85); /* Background with transparency */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #A84F0C; /* Border */
}

.page-game-bai__main-title {
  font-size: 3.2em;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 176, 77, 0.6);
}

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

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

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

.page-game-bai__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 20px rgba(255, 165, 58, 0.4);
}

.page-game-bai__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 165, 58, 0.6);
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
}

.page-game-bai__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFB04D; /* Glow */
  border: 2px solid #A84F0C; /* Border */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  background: #0D0E12; /* Background */
  color: #ffffff;
}

/* General Section Styles */
.page-game-bai__section {
  padding: 80px 0;
  text-align: center;
}

.page-game-bai__section-title {
  font-size: 2.5em;
  color: #FFB04D; /* Glow */
  margin-bottom: 50px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.4);
}

.page-game-bai__text-block {
  font-size: 1.1em;
  color: #FFF3E6;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: left;
}

.page-game-bai__text-block-group {
  text-align: left;
}

.page-game-bai__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #A84F0C;
}

.page-game-bai__image--center {
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
  width: 45%;
  box-sizing: border-box;
}

.page-game-bai__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
  width: 45%;
  box-sizing: border-box;
}

.page-game-bai__content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  text-align: left;
  clear: both;
  margin-top: 40px;
}

.page-game-bai__content-wrapper .page-game-bai__text-block {
  flex: 1;
}

/* Game Grid Section */
.page-game-bai__game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__game-card,
.page-game-bai__card {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF3E6;
}

.page-game-bai__game-card:hover,
.page-game-bai__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 165, 58, 0.4);
}

.page-game-bai__card-image {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-game-bai__card-text {
  font-size: 1em;
  color: #FFF3E6;
  margin-bottom: 20px;
}

.page-game-bai__btn-card {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button */
  color: #ffffff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

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

.page-game-bai__cta-more {
  margin-top: 50px;
}

/* Features Section */
.page-game-bai__features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__feature-item {
  padding: 30px;
}

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

.page-game-bai__feature-title {
  font-size: 1.4em;
  color: #FFB04D;
  margin-bottom: 10px;
}

.page-game-bai__feature-text {
  font-size: 0.95em;
  color: #FFF3E6;
}

/* Guide Section */
.page-game-bai__guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-game-bai__guide-step {
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.page-game-bai__guide-step-title {
  font-size: 1.6em;
  color: #FFB04D;
  margin-bottom: 15px;
}

/* Promotion Section */
.page-game-bai__promotion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai__promotion-card .page-game-bai__card-image {
  height: 220px;
}

/* FAQ Section */
details.page-game-bai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  color: #FFF3E6;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFB04D; /* Glow */
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-bai__faq-item summary.page-game-bai__faq-question:hover {
  background: rgba(255, 165, 58, 0.1);
}
.page-game-bai__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-game-bai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFB04D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-bai__faq-item .page-game-bai__faq-answer {
  padding: 0 20px 20px;
  background: #0D0E12; /* Background */
  border-radius: 0 0 5px 5px;
  text-align: left;
}
.page-game-bai__faq-answer p {
  color: #FFF3E6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-content {
    margin-top: -150px;
    padding: 30px;
  }
  .page-game-bai__main-title {
    font-size: 2.8em;
  }
  .page-game-bai__section-title {
    font-size: 2.2em;
  }
  .page-game-bai__game-grid,
  .page-game-bai__features-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__promotion-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-game-bai__image--left,
  .page-game-bai__image--right {
    width: 100%;
    float: none;
    margin: 20px auto;
  }
  .page-game-bai__content-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .page-game-bai__text-block-group {
    text-align: center;
  }
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary {
    font-size: 1em;
    padding: 12px 25px;
  }
}

@media (max-width: 768px) {
  .page-game-bai__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-game-bai__hero-image {
    height: 400px;
  }
  .page-game-bai__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
  }
  .page-game-bai__hero-content {
    margin-top: -100px;
    padding: 20px;
    border-radius: 5px;
  }
  .page-game-bai__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-game-bai__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-game-bai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai__btn-card,
  .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__section {
    padding: 40px 0;
  }
  .page-game-bai__section-title {
    font-size: clamp(1.8em, 7vw, 2em);
    margin-bottom: 30px;
  }
  .page-game-bai__text-block {
    font-size: 1em;
    text-align: center;
  }
  .page-game-bai__game-grid,
  .page-game-bai__features-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-game-bai__game-card,
  .page-game-bai__card,
  .page-game-bai__feature-item,
  .page-game-bai__guide-step,
  .page-game-bai__promotion-card {
    padding: 20px;
  }
  .page-game-bai__card-image {
    height: 180px;
  }
  .page-game-bai__card-title {
    font-size: 1.3em;
  }
  .page-game-bai__feature-title {
    font-size: 1.2em;
  }
  .page-game-bai__guide-step-title {
    font-size: 1.4em;
  }
  .page-game-bai__image {
    margin: 20px auto;
  }
  .page-game-bai__image--left, .page-game-bai__image--right {
    width: 100% !important;
    float: none !important;
    margin: 20px auto !important;
  }
  .page-game-bai__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .page-game-bai__faq-qtext {
    font-size: 1em;
  }
  .page-game-bai__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  .page-game-bai__cta-more {
    margin-top: 30px;
  }
  .page-game-bai__container,
  .page-game-bai__about-section,
  .page-game-bai__game-types-section,
  .page-game-bai__features-section,
  .page-game-bai__guide-section,
  .page-game-bai__promotion-section,
  .page-game-bai__tips-section,
  .page-game-bai__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-game-bai__faq-item summary.page-game-bai__faq-question { padding: 15px; }
  .page-game-bai__faq-answer { padding: 0 15px 15px; }
}