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

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

.page-tai-xiu__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-tai-xiu__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

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

.page-tai-xiu__btn-inline {
  margin-top: 20px;
}

.page-tai-xiu__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, relies on body padding-top from shared */
  background-color: #f0f8ff;
  position: relative;
  overflow: hidden;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px;
}

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual appeal, but content is below image */
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__hero-title {
  font-size: clamp(2em, 3.5vw, 3.5em);
  color: #000000;
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.page-tai-xiu__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

.page-tai-xiu__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Intro Section */
.page-tai-xiu__intro-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

/* Features Section */
.page-tai-xiu__features-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-tai-xiu__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-tai-xiu__feature-card {
  background-color: #f0f8ff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-tai-xiu__feature-card:hover {
  transform: translateY(-10px);
}

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

.page-tai-xiu__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-tai-xiu__feature-description {
  font-size: 1em;
  color: #555555;
}

/* How-to-play Section */
.page-tai-xiu__how-to-play-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-tai-xiu__step-by-step {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-tai-xiu__step-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.page-tai-xiu__step-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 15px;
}

.page-tai-xiu__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
}

.page-tai-xiu__bet-types {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  color: #555555;
}

.page-tai-xiu__bet-types li {
  margin-bottom: 8px;
}

/* Tips Section */
.page-tai-xiu__tips-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-tai-xiu__tips-section .page-tai-xiu__section-title,
.page-tai-xiu__tips-section .page-tai-xiu__text-block {
  color: #FFFFFF;
}

.page-tai-xiu__tips-list {
  list-style-type: decimal;
  margin-left: 20px;
  padding-left: 0;
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-tai-xiu__tips-list li {
  margin-bottom: 15px;
}

.page-tai-xiu__tips-list strong {
  color: #ffeb3b;
}

.page-tai-xiu__tips-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  object-fit: cover;
}

.page-tai-xiu__cta-buttons--center {
  text-align: center;
}

/* Promo Section */
.page-tai-xiu__promo-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-tai-xiu__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-tai-xiu__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-tai-xiu__promo-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-tai-xiu__promo-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-tai-xiu__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-tai-xiu__faq-item {
  background-color: #f0f8ff;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  background-color: #e0f4ff;
  border-bottom: 1px solid #cceeff;
  list-style: none; /* For details/summary */
}

.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}

.page-tai-xiu__faq-qtext {
  flex-grow: 1;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-tai-xiu__faq-answer {
  padding: 20px;
  font-size: 1.1em;
  color: #555555;
  background-color: #f0f8ff;
}

.page-tai-xiu__faq-answer p {
  margin-bottom: 10px;
}

/* CTA Bottom Section */
.page-tai-xiu__cta-bottom-section {
  padding: 80px 0;
  background-color: #26A9E0;
  text-align: center;
  color: #FFFFFF;
}

.page-tai-xiu__cta-container {
  max-width: 800px;
}

.page-tai-xiu__cta-title {
  font-size: 2.8em;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: 800;
}

.page-tai-xiu__cta-description {
  font-size: 1.3em;
  color: #f0f8ff;
  margin-bottom: 40px;
}

/* Image and container responsive rules */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-tai-xiu__section,
.page-tai-xiu__card,
.page-tai-xiu__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .page-tai-xiu__container {
    padding: 15px;
  }

  .page-tai-xiu__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
  }

  .page-tai-xiu__hero-image-wrapper {
    max-height: 400px;
  }

  .page-tai-xiu__hero-image {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important;
    max-height: none !important;
  }

  .page-tai-xiu__hero-content {
    padding: 30px 15px;
    margin-top: -60px; /* Adjust overlap */
  }

  .page-tai-xiu__hero-title {
    font-size: 1.8em;
  }

  .page-tai-xiu__hero-description {
    font-size: 1em;
  }

  .page-tai-xiu__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary,
  .page-tai-xiu a[class*="button"],
  .page-tai-xiu 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-tai-xiu__hero-cta-buttons,
  .page-tai-xiu__button-group,
  .page-tai-xiu__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure buttons stack vertically */
  }

  .page-tai-xiu__features-grid,
  .page-tai-xiu__promo-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-tai-xiu__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-tai-xiu__step-title {
    font-size: 1.5em;
  }

  .page-tai-xiu__tips-list {
    font-size: 1em;
  }

  .page-tai-xiu__promo-image {
    height: 180px;
  }

  .page-tai-xiu__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-tai-xiu__faq-answer {
    font-size: 0.95em;
    padding: 15px;
  }

  .page-tai-xiu__cta-bottom-section {
    padding: 50px 0;
  }

  .page-tai-xiu__cta-title {
    font-size: 2em;
  }

  .page-tai-xiu__cta-description {
    font-size: 1.1em;
  }

  /* General image responsiveness */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  /* No jackpot/winner list on this page, but if present, they would have 768px rules here */
}

/* Color Contrast Adjustments */
.page-tai-xiu__dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

.page-tai-xiu__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-tai-xiu__tips-section .page-tai-xiu__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border-color: #FFFFFF;
}

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

.page-tai-xiu__promo-card .page-tai-xiu__btn-primary {
  background-color: #EA7C07; /* Login color */
  border-color: #EA7C07;
}

.page-tai-xiu__promo-card .page-tai-xiu__btn-primary:hover {
  background-color: #c76706;
  border-color: #c76706;
}

.page-tai-xiu__faq-answer .page-tai-xiu__btn-secondary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border-color: #26A9E0;
}

.page-tai-xiu__faq-answer .page-tai-xiu__btn-secondary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}