.page-tai-xiu {
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Ensure consistency, though body handles it */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

/* Hero Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background: #0A0A0A; /* Dark background */
}

.page-tai-xiu__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 16px;
  gap: 40px;
}

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

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

.page-tai-xiu__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

.page-tai-xiu__hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.4);
}

/* Buttons */
.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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: none;
}

.page-tai-xiu__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E;
}

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

/* Intro Section (Module 1) */
.page-tai-xiu__intro-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-tai-xiu__features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-tai-xiu__feature-item {
  flex: 1 1 calc(33.333% - 40px);
  max-width: calc(33.333% - 40px);
  text-align: center;
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6;
  border: 1px solid #3A2A12; /* Border */
}

.page-tai-xiu__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #FFD36B; /* Glow color border */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.6);
}

.page-tai-xiu__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure it stays circular */
  display: block;
}

.page-tai-xiu__feature-title {
  font-size: 1.6em;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-tai-xiu__feature-description {
  font-size: 1em;
  line-height: 1.5;
}

/* Advantages Section */
.page-tai-xiu__advantages-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-tai-xiu__advantage-item {
  background-color: #111111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
  color: #FFF6D6;
}

.page-tai-xiu__advantage-item img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-tai-xiu__advantage-item h3 {
  font-size: 1.5em;
  color: #F2C14E;
  padding: 20px 20px 10px;
}

.page-tai-xiu__advantage-item p {
  font-size: 1em;
  padding: 0 20px 20px;
  line-height: 1.5;
}

/* Guide Section */
.page-tai-xiu__guide-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-tai-xiu__guide-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-tai-xiu__guide-list li {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  color: #FFF6D6;
}

.page-tai-xiu__guide-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background-color: #F2C14E;
  color: #111111;
  font-weight: bold;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -20px;
  top: 25px;
  font-size: 1.2em;
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-tai-xiu__guide-list {
  counter-reset: step-counter;
}

.page-tai-xiu__guide-step-title {
  font-size: 1.4em;
  color: #FFD36B;
  margin-left: 30px;
  margin-bottom: 10px;
}

.page-tai-xiu__guide-list p {
  margin-left: 30px;
  font-size: 1em;
}

.page-tai-xiu__guide-list a {
  color: #F2C14E;
  text-decoration: underline;
}

.page-tai-xiu__guide-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
}

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

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

.page-tai-xiu__tip-card {
  background-color: #111111;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
  color: #FFF6D6;
}

.page-tai-xiu__tip-title {
  font-size: 1.5em;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-tai-xiu__tip-description {
  font-size: 1em;
  line-height: 1.5;
}

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

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

.page-tai-xiu__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF6D6;
}

.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: #F2C14E;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  transform: rotate(45deg); /* Change + to x */
}

.page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #FFF6D6;
}

/* CTA Section */
.page-tai-xiu__cta-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-tai-xiu__cta-section .page-tai-xiu__container {
  text-align: center;
  background: #111111; /* Card BG */
  border-radius: 10px;
  padding: 50px 30px;
  border: 1px solid #3A2A12;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-tai-xiu__cta-section .page-tai-xiu__section-title {
  color: #F2C14E;
  margin-bottom: 20px;
}

.page-tai-xiu__cta-section .page-tai-xiu__text-block {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1em;
}

.page-tai-xiu__cta-section .page-tai-xiu__cta-buttons {
  justify-content: center;
  gap: 20px;
}

/* --- Responsive Styles --- */
/* Mobile @media (max-width: 768px) MUST be complete for ALL sections */
@media (max-width: 768px) {
  .page-tai-xiu__container {
    padding: 20px 15px;
  }

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

  .page-tai-xiu__text-block {
    font-size: 1em;
    padding-left: 15px;
    padding-right: 15px;
    text-align: left;
  }

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

  .page-tai-xiu__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 30px;
  }

  .page-tai-xiu__main-title {
    font-size: 2em;
    text-align: center;
  }

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

  .page-tai-xiu__hero-cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-tai-xiu__hero-image {
    width: 100%;
    order: -1; /* Image first on mobile */
  }

  .page-tai-xiu__hero-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Intro Section (Module 1) */
  .page-tai-xiu__intro-section {
    padding: 40px 0;
  }

  .page-tai-xiu__features-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-tai-xiu__feature-item {
    max-width: 100%;
    flex: 1 1 100%;
    padding: 25px;
  }

  .page-tai-xiu__icon-box-media {
    width: 180px; /* Still square */
    height: 180px; /* Still square */
    margin-bottom: 15px;
  }
  
  .page-tai-xiu__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .page-tai-xiu__feature-title {
    font-size: 1.4em;
  }

  /* Advantages Section */
  .page-tai-xiu__advantages-section {
    padding: 40px 0;
  }

  .page-tai-xiu__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tai-xiu__advantage-item img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important; /* Override with auto for general image responsiveness */
  }
  
  /* Guide Section */
  .page-tai-xiu__guide-section {
    padding: 40px 0;
  }

  .page-tai-xiu__guide-list li {
    padding: 20px 15px 20px 40px; /* Adjust padding for pseudo-element */
    margin-bottom: 15px;
  }

  .page-tai-xiu__guide-list li::before {
    left: 15px;
    top: 20px;
    width: 30px;
    height: 30px;
    font-size: 1em;
  }

  .page-tai-xiu__guide-step-title {
    font-size: 1.2em;
    margin-left: 0;
  }

  .page-tai-xiu__guide-list p {
    margin-left: 0;
    font-size: 0.95em;
  }

  .page-tai-xiu__guide-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-top: 30px;
  }

  /* Tips Section */
  .page-tai-xiu__tips-section {
    padding: 40px 0;
  }

  .page-tai-xiu__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tai-xiu__tip-card {
    padding: 25px;
  }

  .page-tai-xiu__tip-title {
    font-size: 1.3em;
  }

  /* FAQ Section */
  .page-tai-xiu__faq-section {
    padding: 40px 0;
  }

  .page-tai-xiu__faq-list {
    margin-top: 30px;
  }

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

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

  /* CTA Section */
  .page-tai-xiu__cta-section {
    padding: 40px 0;
  }

  .page-tai-xiu__cta-section .page-tai-xiu__container {
    padding: 30px 15px;
  }

  .page-tai-xiu__cta-section .page-tai-xiu__section-title {
    font-size: 1.8em;
  }

  .page-tai-xiu__cta-section .page-tai-xiu__text-block {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-tai-xiu__cta-section .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Generic Image and Container responsiveness for mobile */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container,
  .page-tai-xiu__features-grid,
  .page-tai-xiu__advantages-grid,
  .page-tai-xiu__tips-grid,
  .page-tai-xiu__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-tai-xiu__cta-button,
  .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__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: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-tai-xiu__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}