.page-tai-xiu {
  background-color: var(--bg-color, #0D0E12); /* Default to dark if shared var not found */
  color: #FFF3E6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-tai-xiu__section-title {
  font-size: 2.5em;
  color: #FF8C1A; /* Primary color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-tai-xiu__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-tai-xiu__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-tai-xiu__list-item {
  margin-bottom: 10px;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%); /* Card BG for top, then main BG */
}

.page-tai-xiu__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-tai-xiu__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: #FFF3E6;
}

.page-tai-xiu__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for responsive H1 */
  color: #FF8C1A;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-tai-xiu__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A;
  border: 2px solid #A84F0C; /* Border color */
}

.page-tai-xiu__btn-secondary:hover {
  background: #2a2c33;
  color: #FFA53A;
  transform: translateY(-2px);
}

.page-tai-xiu__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-tai-xiu__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 140, 26, 0.4); /* Glow effect */
}

/* Content Grid for How-to-play and Strategies */
.page-tai-xiu__content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-tai-xiu__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-tai-xiu__image-wrapper {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-tai-xiu__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__text-content {
  flex: 1 1 50%;
  min-width: 300px;
}

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

.page-tai-xiu__feature-card {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #A84F0C; /* Border color */
}

.page-tai-xiu__feature-title {
  font-size: 1.5em;
  color: #FFA53A; /* Accent color for feature titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tai-xiu__feature-description {
  color: #FFF3E6;
}

.page-tai-xiu__image-center {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-tai-xiu__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tai-xiu__faq-item[open] {
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.3);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFA53A; /* Accent color for questions */
  cursor: pointer;
  background-color: #17191F; /* Card BG */
  list-style: none; /* Remove default marker */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #FF8C1A;
}

.page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: #FFF3E6;
}

.page-tai-xiu__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Bottom CTA Section */
.page-tai-xiu__cta-bottom-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-tai-xiu__cta-bottom-section .page-tai-xiu__cta-buttons {
  justify-content: center;
  margin-top: 30px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-tai-xiu__hero-content,
  .page-tai-xiu__hero-image {
    flex: 1 1 100%;
  }

  .page-tai-xiu__cta-buttons {
    justify-content: center;
  }

  .page-tai-xiu__content-grid {
    flex-direction: column;
  }

  .page-tai-xiu__content-grid--reverse {
    flex-direction: column;
  }

  .page-tai-xiu__hero-side-image,
  .page-tai-xiu__content-image {
    max-width: 80%; /* Adjust for slightly smaller screens */
  }
}

@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tai-xiu__container {
    padding: 20px 15px !important;
  }

  /* HERO Section */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Specific top padding for mobile */
    padding-bottom: 40px !important;
  }

  .page-tai-xiu__hero-container {
    padding: 20px 15px !important;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(2em, 8vw, 2.5em) !important;
    text-align: center;
  }

  .page-tai-xiu__hero-description {
    font-size: 1em !important;
    text-align: center;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important; /* Add padding to container */
    box-sizing: border-box !important;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__hero-side-image,
  .page-tai-xiu__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Section Titles */
  .page-tai-xiu__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px !important;
  }

  /* Content Grid */
  .page-tai-xiu__content-grid,
  .page-tai-xiu__content-grid--reverse {
    gap: 20px !important;
  }

  /* Features Grid */
  .page-tai-xiu__features-grid {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 20px !important;
  }

  .page-tai-xiu__feature-title {
    font-size: 1.3em !important;
  }

  /* FAQ Section */
  .page-tai-xiu__faq-question {
    font-size: 1em !important;
    padding: 15px 20px !important;
  }

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

  /* General Image and Container Rules */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container,
  .page-tai-xiu__cta-buttons { /* Including cta-buttons here for container width */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}