/* style/tai-xiu.css */

/* General styles for .page-tai-xiu */
.page-tai-xiu {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
}

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

.page-tai-xiu__container--center {
  text-align: center;
}

.page-tai-xiu__section-title {
  font-size: clamp(28px, 3.5vw, 40px); /* H1 font size rule */
  font-weight: 700;
  color: #C91F17; /* Main brand color for titles */
  margin-bottom: 20px;
  text-align: center;
}

.page-tai-xiu__section-title--light {
  color: #FFF5E1; /* Text Main for dark backgrounds */
}

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

.page-tai-xiu__text-block--light {
  color: #FFF5E1;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 40px;
  background: #B71C1C; /* Background custom color */
  color: #FFF5E1; /* Text Main custom color */
}

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

.page-tai-xiu__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  padding-right: 20px;
}

.page-tai-xiu__main-title {
  font-size: clamp(32px, 4.5vw, 56px); /* H1 font size rule */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main custom color */
}

.page-tai-xiu__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main custom color */
}

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

.page-tai-xiu__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element */
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for button width responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  flex-shrink: 0; /* Prevent buttons from shrinking too much */
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom color */
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 2px solid #F2B544; /* Border custom color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #FFE68A 0%, #F0C810 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn-secondary {
  background: #C91F17; /* Main brand color */
  color: #FFF5E1; /* Text Main custom color */
  border: 2px solid #F2B544; /* Border custom color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
  background: #E53935; /* Accent brand color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 15px;
}

/* Intro Section */
.page-tai-xiu__intro-section {
  background: #ffffff; /* Default light background */
  color: #333333; /* Default dark text */
}

.page-tai-xiu__image-wrapper {
  margin: 30px auto;
  text-align: center;
}

.page-tai-xiu__image-wrapper--center {
  text-align: center;
}

.page-tai-xiu__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto;
}

/* Guide Section */
.page-tai-xiu__guide-section {
  background: #7A0E0E; /* Deep Red custom color */
  color: #FFF5E1; /* Text Main custom color */
}

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

.page-tai-xiu__guide-item {
  background: #D32F2F; /* Card BG custom color */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-tai-xiu__guide-step-title {
  font-size: 22px;
  color: #FFCC66; /* Glow custom color for step titles */
  margin-bottom: 15px;
}

.page-tai-xiu__guide-step-text {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #FFF5E1; /* Text Main custom color */
  flex-grow: 1;
}

/* Tips Section */
.page-tai-xiu__tips-section {
  background: #ffffff; /* Default light background */
  color: #333333; /* Default dark text */
}

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

.page-tai-xiu__tips-list li {
  margin-bottom: 10px;
  font-size: 17px;
}

.page-tai-xiu__tips-list li strong {
  color: #C91F17; /* Main brand color for emphasis */
}

/* Promo Section */
.page-tai-xiu__promo-section {
  background: #B71C1C; /* Background custom color */
  color: #FFF5E1; /* Text Main custom color */
}

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

.page-tai-xiu__card {
  background: #D32F2F; /* Card BG custom color */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-tai-xiu__card-title {
  font-size: 22px;
  color: #F4D34D; /* Gold custom color for card titles */
  margin-bottom: 15px;
}

.page-tai-xiu__card-text {
  font-size: 16px;
  line-height: 1.5;
  color: #FFF5E1; /* Text Main custom color */
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* FAQ Section */
.page-tai-xiu__faq-section {
  background: #ffffff; /* Default light background */
  color: #333333; /* Default dark text */
}

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

.page-tai-xiu__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #C91F17; /* Main brand color */
  cursor: pointer;
  background-color: #fff;
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

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

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

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
  background-color: #f0f0f0;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  content: "−"; /* Change to minus when open */
}


.page-tai-xiu__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #555555;
  border-top: 1px solid #eee;
  background-color: #fdfdfd;
}

.page-tai-xiu__faq-answer p {
  margin-bottom: 10px;
}
.page-tai-xiu__faq-answer a {
  color: #C91F17;
  text-decoration: underline;
}

/* Final CTA Section */
.page-tai-xiu__cta-final-section {
  background: #7A0E0E; /* Deep Red custom color */
  color: #FFF5E1; /* Text Main custom color */
  padding: 60px 16px;
}

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

  .page-tai-xiu__hero-content {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .page-tai-xiu__hero-image {
    order: 1; /* Move image above content on smaller screens */
  }

  .page-tai-xiu__hero-content {
    order: 2;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(30px, 5vw, 48px);
  }

  .page-tai-xiu__section-title {
    font-size: clamp(26px, 4vw, 36px);
  }

  .page-tai-xiu__guide-steps,
  .page-tai-xiu__promo-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 30px;
  }

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

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

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

  .page-tai-xiu__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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;
  }

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

  .page-tai-xiu__section-title {
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: 15px;
  }

  .page-tai-xiu__text-block {
    font-size: 16px;
    margin-bottom: 15px;
  }

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

  /* Guide Section */
  .page-tai-xiu__guide-steps {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .page-tai-xiu__guide-item {
    padding: 20px;
  }

  .page-tai-xiu__guide-step-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-tai-xiu__guide-step-text {
    font-size: 15px;
  }

  /* Promo Section */
  .page-tai-xiu__promo-cards {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .page-tai-xiu__card {
    padding: 20px;
  }

  .page-tai-xiu__card-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-tai-xiu__card-text {
    font-size: 15px;
  }

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

  .page-tai-xiu__faq-toggle {
    font-size: 20px;
  }

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

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

  .page-tai-xiu__cta-bottom .page-tai-xiu__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
  }
}