.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

.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;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #F3C54D; /* Gold */
  line-height: 1.2;
}

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

.page-tai-xiu__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Adjusted H1 font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: #F3C54D; /* Gold */
  line-height: 1.2;
}

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Assuming shared.css handles body padding */
  padding-bottom: 40px;
  background: linear-gradient(135deg, #140C0C 0%, #2A1212 100%); /* Card BG */
  text-align: center;
}

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

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

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

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C; /* Dark text for light button */
  border: none;
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background: transparent;
  color: #FFB04A; /* Gold color for text */
  border: 2px solid #FFB04A; /* Gold border */
}

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

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

.page-tai-xiu__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-tai-xiu__guide-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__guide-step-title {
  font-size: 1.5em;
  color: #FFB04A; /* Gold */
  margin-bottom: 10px;
}

.page-tai-xiu__tips-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 30px;
}

.page-tai-xiu__tips-item {
  margin-bottom: 15px;
  font-size: 1.1em;
}

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

.page-tai-xiu__feature-card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__feature-icon {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid #FFB04A; /* Gold */
  box-shadow: 0 0 15px rgba(255, 192, 72, 0.5);
}

.page-tai-xiu__feature-title {
  font-size: 1.4em;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
}

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

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

.page-tai-xiu__faq-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  cursor: pointer;
  list-style: none;
  transition: background-color 0.3s ease;
}

.page-tai-xiu__faq-question:hover {
  background-color: #7E0D0D; /* Deep Red */
}

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

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  content: '−';
}

.page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #FFF1E8;
  text-align: justify;
}

/* Hide default details marker */
.page-tai-xiu__faq-item > summary::-webkit-details-marker,
.page-tai-xiu__faq-item > summary::marker {
  display: none;
}

.page-tai-xiu__dark-section {
  background-color: #140C0C; /* Background */
  color: #FFF1E8;
  padding: 60px 16px;
  text-align: center;
}

.page-tai-xiu__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-tai-xiu__cta-content .page-tai-xiu__btn-primary {
  margin-top: 30px;
  font-size: 1.2em;
  padding: 15px 35px;
}

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

  .page-tai-xiu__hero-content {
    text-align: center;
  }

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

  .page-tai-xiu__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

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

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

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

  .page-tai-xiu__container {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-tai-xiu__hero-content {
    order: 2; /* Content below image */
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-tai-xiu__hero-image {
    order: 1; /* Image above content */
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-tai-xiu__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

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

  /* General Images & Containers */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__content-image {
    margin: 20px auto !important;
  }

  /* Module 1 three-column (features grid) */
  .page-tai-xiu__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tai-xiu__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }

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

  /* Guide & Tips Sections */
  .page-tai-xiu__guide-item,
  .page-tai-xiu__tips-item {
    padding: 20px;
    font-size: 1em;
  }

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

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

  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px;
  }

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

  .page-tai-xiu__cta-content .page-tai-xiu__btn-primary {
    font-size: 1.1em;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}