/* style/tai-xiu.css */

/* Core styles for the page-tai-xiu */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  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;
  font-weight: bold;
  color: #FF8C1A; /* Primary color for titles */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

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

/* Hero Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background: #0D0E12; /* Ensure consistent background */
}

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

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

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

.page-tai-xiu__hero-description {
  font-size: 1.2em;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 600px;
  line-height: 1.5;
}

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

.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%;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

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

.page-tai-xiu__btn-secondary:hover {
  background: rgba(255, 140, 26, 0.1);
  transform: translateY(-3px);
}

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

.page-tai-xiu__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

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

.page-tai-xiu__intro-section .page-tai-xiu__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-tai-xiu__feature-item {
  background-color: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-tai-xiu__feature-item:hover {
  transform: translateY(-5px);
}

.page-tai-xiu__icon-box-media {
  width: 150px; /* Fixed size for square image */
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #FF8C1A;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

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

.page-tai-xiu__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 40px;
}

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

.page-tai-xiu__step-item:nth-child(even) {
  flex-direction: column-reverse; /* Alternate image/text for visual variety */
}


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

.page-tai-xiu__step-description {
  font-size: 1.1em;
  color: #FFF3E6;
  margin-bottom: 25px;
  max-width: 800px;
}

.page-tai-xiu__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: block;
  margin-top: 20px;
}

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

.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: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-tai-xiu__tip-card:hover {
  transform: translateY(-5px);
}

.page-tai-xiu__tip-title {
  font-size: 1.4em;
  color: #FFA53A;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tai-xiu__tip-description {
  font-size: 1em;
  color: #FFF3E6;
}

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

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

.page-tai-xiu__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FF8C1A;
  cursor: pointer;
  background-color: #17191F; /* Card BG */
  position: relative;
  list-style: none; /* For details/summary */
}

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

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

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

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

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

/* Promo CTA Section */
.page-tai-xiu__promo-cta-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #D96800 0%, #FF8C1A 100%); /* Deep Orange to Primary */
  text-align: center;
}

.page-tai-xiu__promo-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.page-tai-xiu__promo-cta-section .page-tai-xiu__section-title {
  color: #FFF3E6;
  margin-bottom: 0;
}

.page-tai-xiu__promo-cta-section .page-tai-xiu__text-block {
  color: #FFF3E6;
  max-width: 800px;
}

.page-tai-xiu__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

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

.page-tai-xiu__container,
.page-tai-xiu__features-grid,
.page-tai-xiu__guide-steps,
.page-tai-xiu__tips-grid,
.page-tai-xiu__faq-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}

/* Responsive styles for smaller screens */
@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__section-title {
    font-size: 2em;
  }
  
  .page-tai-xiu__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px !important;
  }

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

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

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

  .page-tai-xiu__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !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;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Intro Section - Module 1 three-column */
  .page-tai-xiu__intro-section {
    padding: 40px 0 !important;
  }

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

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

  .page-tai-xiu__features-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    margin-top: 30px !important;
  }

  .page-tai-xiu__icon-box-media {
    width: 120px !important; /* Still square */
    height: 120px !important;
    margin-bottom: 15px !important;
    border-width: 2px !important;
  }

  .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.3em !important;
    margin-bottom: 10px !important;
  }

  .page-tai-xiu__feature-description {
    font-size: 0.95em !important;
  }

  /* Guide Section */
  .page-tai-xiu__guide-section {
    padding: 40px 0 !important;
  }

  .page-tai-xiu__guide-steps {
    gap: 40px !important;
    margin-top: 30px !important;
  }

  .page-tai-xiu__step-item {
    padding: 20px !important;
  }

  .page-tai-xiu__step-item:nth-child(even) {
    flex-direction: column !important; /* Ensure consistent stacking on mobile */
  }

  .page-tai-xiu__step-title {
    font-size: 1.5em !important;
    margin-bottom: 10px !important;
  }

  .page-tai-xiu__step-description {
    font-size: 1em !important;
    margin-bottom: 15px !important;
  }

  .page-tai-xiu__step-image {
    margin-top: 15px !important;
  }

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

  .page-tai-xiu__tips-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    margin-top: 30px !important;
  }

  .page-tai-xiu__tip-card {
    padding: 20px !important;
  }

  .page-tai-xiu__tip-title {
    font-size: 1.2em !important;
    margin-bottom: 10px !important;
  }

  .page-tai-xiu__tip-description {
    font-size: 0.95em !important;
  }

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

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

  .page-tai-xiu__faq-item {
    margin-bottom: 10px !important;
  }

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

  .page-tai-xiu__faq-toggle {
    font-size: 1.3em !important;
  }

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

  /* Promo CTA Section */
  .page-tai-xiu__promo-cta-section {
    padding: 50px 0 !important;
  }

  .page-tai-xiu__promo-cta-content {
    gap: 20px !important;
  }

  .page-tai-xiu__promo-cta-section .page-tai-xiu__text-block {
    font-size: 1em !important;
    padding: 0 15px;
  }

  .page-tai-xiu__btn-large {
    padding: 15px 30px !important;
    font-size: 1.1em !important;
  }

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