.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #FFFFFF;
}

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

.page-tai-xiu__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-tai-xiu__section-title--white {
  color: #FFFFFF;
}

.page-tai-xiu__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  text-align: center;
  margin-bottom: 30px;
  color: #555555;
}

.page-tai-xiu__subtitle--white {
  color: #f0f0f0;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-tai-xiu__btn-primary:hover {
  background: #1e87b8;
  border-color: #1e87b8;
}

.page-tai-xiu__btn-secondary {
  background: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-tai-xiu__btn-secondary:hover {
  background: #e0f4ff;
  color: #1e87b8;
  border-color: #1e87b8;
}

.page-tai-xiu__btn-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
}

.page-tai-xiu__btn-link:hover {
  text-decoration: underline;
  color: #1e87b8;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-tai-xiu__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* HERO SECTION */
.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 550px; /* Limit hero image height */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 0;
}

.page-tai-xiu__hero-content {
  max-width: 900px;
  padding: 0 20px;
  margin-top: -100px; /* Pull content up slightly over the image */
  position: relative;
  z-index: 2;
}

.page-tai-xiu__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-tai-xiu__description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #444444;
  margin-bottom: 30px;
}

/* INTRODUCTION SECTION */
.page-tai-xiu__introduction-section {
  padding: 60px 0;
  background-color: #f8f8f8;
  margin-bottom: 60px;
}

.page-tai-xiu__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-tai-xiu__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #444;
}

.page-tai-xiu__image-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* HOW TO PLAY SECTION */
.page-tai-xiu__how-to-play-section {
  padding: 60px 0;
  background-color: #26A9E0;
  margin-bottom: 60px;
}

.page-tai-xiu__how-to-play-section .page-tai-xiu__subtitle {
  color: #FFFFFF;
}

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

.page-tai-xiu__step-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-tai-xiu__step-card p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-tai-xiu__step-card a {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-tai-xiu__step-card a:hover {
  color: #d0eaff;
}

/* STRATEGIES SECTION */
.page-tai-xiu__strategies-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

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

.page-tai-xiu__strategy-card {
  background: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__strategy-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-tai-xiu__strategy-card p {
  font-size: 16px;
  color: #555;
}

/* WHY CHOOSE US SECTION */
.page-tai-xiu__why-choose-us {
  padding: 60px 0;
  background-color: #26A9E0;
  margin-bottom: 60px;
}

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

.page-tai-xiu__feature-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  object-fit: contain;
  border-radius: 0;
}

.page-tai-xiu__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-tai-xiu__feature-card p {
  font-size: 16px;
  color: #f0f0f0;
}

/* PROMOTIONS SECTION */
.page-tai-xiu__promotions-section {
  padding: 60px 0;
  background-color: #f8f8f8;
  margin-bottom: 60px;
}

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

.page-tai-xiu__promo-card {
  background: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-tai-xiu__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 20px;
}

.page-tai-xiu__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0 20px;
  color: #26A9E0;
}

.page-tai-xiu__promo-card p {
  font-size: 16px;
  color: #555;
  padding: 0 20px;
  margin-bottom: 20px;
}

/* FAQ SECTION */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question:hover {
  background: #f5f5f5;
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-tai-xiu__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0;
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
  transition: transform 0.3s ease;
}
details.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  transform: rotate(45deg);
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-tai-xiu__faq-answer p {
  font-size: 16px;
  color: #555;
}

.page-tai-xiu__faq-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

/* FINAL CTA SECTION */
.page-tai-xiu__final-cta {
  padding: 80px 0;
  background-color: #26A9E0;
  text-align: center;
}

.page-tai-xiu__btn-large {
  padding: 15px 35px;
  font-size: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-image-wrapper {
    max-height: 450px;
  }
  .page-tai-xiu__hero-image {
    height: 450px;
  }
  .page-tai-xiu__hero-content {
    margin-top: -80px;
  }
  .page-tai-xiu__content-grid {
    grid-template-columns: 1fr;
  }
  .page-tai-xiu__image-block {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__container {
    padding: 0 15px !important; /* Ensure padding for containers */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Section */
  .page-tai-xiu__hero-section {
    padding-top: 10px;
    margin-bottom: 40px;
  }
  .page-tai-xiu__hero-image-wrapper {
    max-height: 300px;
    width: 100%;
    overflow: hidden;
  }
  .page-tai-xiu__hero-image {
    height: 300px !important;
    object-fit: contain !important; /* Ensure image is not cropped */
    aspect-ratio: unset !important;
    width: 100% !important;
  }
  .page-tai-xiu__hero-content {
    margin-top: -50px;
    padding: 0 15px;
  }
  .page-tai-xiu__main-title {
    font-size: 32px; /* Fixed size for mobile to prevent over-scaling */
    margin-bottom: 15px;
  }
  .page-tai-xiu__description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
  }

  /* General Section Styling */
  .page-tai-xiu__introduction-section,
  .page-tai-xiu__how-to-play-section,
  .page-tai-xiu__strategies-section,
  .page-tai-xiu__why-choose-us,
  .page-tai-xiu__promotions-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__final-cta {
    padding: 40px 0;
    margin-bottom: 40px;
  }
  .page-tai-xiu__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-tai-xiu__subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Content Grid */
  .page-tai-xiu__content-grid {
    gap: 30px;
  }
  .page-tai-xiu__text-block p {
    font-size: 15px;
  }
  .page-tai-xiu__image-block {
    margin-bottom: 20px;
  }

  /* Steps Grid */
  .page-tai-xiu__steps-grid {
    gap: 20px;
  }
  .page-tai-xiu__step-title {
    font-size: 20px;
  }
  .page-tai-xiu__step-card p {
    font-size: 15px;
  }

  /* Strategy Grid */
  .page-tai-xiu__strategy-grid {
    gap: 20px;
  }
  .page-tai-xiu__strategy-title {
    font-size: 20px;
  }
  .page-tai-xiu__strategy-card p {
    font-size: 15px;
  }

  /* Features Grid */
  .page-tai-xiu__features-grid {
    gap: 20px;
  }
  .page-tai-xiu__feature-icon {
    width: 60px;
    height: 60px;
  }
  .page-tai-xiu__feature-title {
    font-size: 20px;
  }
  .page-tai-xiu__feature-card p {
    font-size: 15px;
  }

  /* Promo Cards */
  .page-tai-xiu__promo-cards {
    gap: 20px;
  }
  .page-tai-xiu__promo-image {
    height: 180px;
  }
  .page-tai-xiu__promo-title {
    font-size: 20px;
  }
  .page-tai-xiu__promo-card p {
    font-size: 15px;
  }

  /* FAQ Section */
  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
    padding: 15px;
  }
  .page-tai-xiu__faq-qtext {
    font-size: 16px;
  }
  .page-tai-xiu__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
    padding: 0 15px 15px;
  }
  .page-tai-xiu__faq-answer p {
    font-size: 15px;
  }

  /* Final CTA */
  .page-tai-xiu__final-cta {
    padding: 60px 0;
  }
  .page-tai-xiu__btn-large {
    font-size: 18px;
    padding: 14px 25px;
  }

  /* Global Image and Container Responsiveness */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Default to contain for mobile images */
  }

  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure no horizontal scroll for product/gameshow like grids (though not used here) */
  .page-tai-xiu__products-grid, /* Example for other pages, not relevant here but for completeness */
  .page-tai-xiu__promo-cards, 
  .page-tai-xiu__steps-grid, 
  .page-tai-xiu__strategy-grid,
  .page-tai-xiu__features-grid {
    overflow-x: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .page-tai-xiu__promo-card, 
  .page-tai-xiu__step-card, 
  .page-tai-xiu__strategy-card,
  .page-tai-xiu__feature-card {
    width: 100%;
    max-width: 350px; /* Limit individual card width if flex-wrapped */
  }

  /* Ensure no width/height override for images causing overflow */
  .page-tai-xiu__hero-image {
    object-fit: contain !important; /* Override object-fit: cover for mobile hero */
  }
}