.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #0f0000; /* Dark background as per example CSS */
  color: #f0e6e6; /* Light text for dark background */
}

.page-tai-xiu__section-padding {
  padding: 60px 0;
}

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

.page-tai-xiu__highlight {
  color: #FF5A4F; /* Auxiliary color for highlights */
  font-weight: bold;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding as per instruction */
  overflow: hidden;
  min-height: 500px;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  order: 1; /* Image first in DOM */
}

.page-tai-xiu__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-tai-xiu__hero-content {
  order: 2; /* Content after image in DOM */
  text-align: center;
  padding: 40px 15px;
  max-width: 900px;
  z-index: 1; /* Ensure content is above any potential background effect if not purely image */
}

.page-tai-xiu__main-title {
  font-size: 3.2em;
  font-weight: bold;
  color: #E53935; /* Main color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

/* General Titles */
.page-tai-xiu__section-title {
  font-size: 2.5em;
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-tai-xiu__sub-title {
  font-size: 1.8em;
  color: #FF5A4F;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Text Blocks */
.page-tai-xiu__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0e6e6;
}

/* Lists */
.page-tai-xiu__list,
.page-tai-xiu__step-list,
.page-tai-xiu__benefit-list,
.page-tai-xiu__promotion-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-tai-xiu__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0e6e6;
}

.page-tai-xiu__list li::before {
  content: '✔️'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: #FF5A4F;
}

/* Cards */
.page-tai-xiu__card {
  background: #ffffff; /* Card BG */
  color: #333333; /* Text Main */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 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;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff; /* White text for contrast */
  border: none;
}

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

.page-tai-xiu__btn-secondary {
  background: #ffffff; /* White background */
  color: #E53935; /* Main color text */
  border: 2px solid #E53935; /* Main color border */
}

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

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

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Content Grid for images and text */
.page-tai-xiu__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

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

.page-tai-xiu__text-content {
  flex: 1;
}

.page-tai-xiu__image-wrapper {
  flex: 1;
  min-width: 200px; /* Min size for image */
}

.page-tai-xiu__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Global image min-width */
  min-height: 200px; /* Global image min-height */
}

/* Dark background sections */
.page-tai-xiu__dark-section {
  background-color: #1a0000; /* Slightly lighter dark for contrast with main .page-tai-xiu */
  color: #f0e6e6;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title {
  color: #FF5A4F; /* Auxiliary color for titles on dark background */
}

.page-tai-xiu__dark-section .page-tai-xiu__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on dark bg */
  color: #f0e6e6;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-tai-xiu__dark-section .page-tai-xiu__card h3 {
  color: #FF5A4F;
}

.page-tai-xiu__dark-section .page-tai-xiu__list li::before {
  color: #E53935;
}

/* Benefit List (3 columns) */
.page-tai-xiu__benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-tai-xiu__benefit-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #E53935; /* Main color for benefit titles */
}

.page-tai-xiu__benefit-item p {
  color: #333333; /* Text Main for card content */
}

/* Promotions List */
.page-tai-xiu__promotion-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-tai-xiu__promotion-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #E53935;
}

.page-tai-xiu__promotion-item p {
  color: #333333;
}

/* Step List */
.page-tai-xiu__step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-tai-xiu__step-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #E53935;
}

.page-tai-xiu__step-item p {
  color: #333333;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
  margin-top: 30px;
}

.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0; /* Border color */
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff; /* Card BG */
  color: #333333; /* Text Main */
}

.page-tai-xiu__faq-item[open] {
  background: #fdfdfd;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333; /* Text Main */
  background: #f5f5f5; /* Light background for question summary */
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-tai-xiu__faq-question:hover {
  background-color: #eaeaea;
}

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

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
  background-color: #eaeaea;
  color: #E53935;
  border-bottom: 1px solid #E53935;
}

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

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  content: '-';
  transform: rotate(0deg); /* No rotation for +/- */
}

.page-tai-xiu__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #333333;
  background: #ffffff;
}

.page-tai-xiu__faq-answer p {
  color: #333333;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__main-title {
    font-size: 2.8em;
  }

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

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

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

@media (max-width: 768px) {
  .page-tai-xiu__section-padding {
    padding: 40px 0;
  }

  .page-tai-xiu__hero-section {
    min-height: auto;
    padding-top: 10px; /* Ensure small top padding */
  }

  .page-tai-xiu__hero-content {
    padding: 30px 15px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Clamp for H1 */
    margin-bottom: 15px;
  }

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

  .page-tai-xiu__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-tai-xiu__sub-title {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__list li,
  .page-tai-xiu__faq-answer p {
    font-size: 1em;
  }

  /* General Image & Container Adaption for Mobile */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container,
  .page-tai-xiu__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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