:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --page-bg: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --hero-padding-top-mobile: 10px; /* Small top padding for hero on mobile */
}

/* Base styles for the page content */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for light body background */
  background-color: var(--page-bg); /* Page background from custom colors */
  line-height: 1.6;
  padding-bottom: 40px;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-black); /* Ensure contrast on hero image */
  padding: 40px 0; /* Adjust padding for desktop, mobile will override */
  padding-top: var(--hero-padding-top-mobile); /* Default small top padding */
}

.page-tai-xiu__hero-image {
  width: 100%;
  max-height: 675px; /* Limit height for aesthetic */
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and content */
}

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

.page-tai-xiu__hero-content {
  max-width: 900px;
  padding: 0 15px;
}

.page-tai-xiu__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--primary-color); /* H1 using primary color for prominence */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-tai-xiu__hero-description {
  font-size: clamp(1em, 1.5vw, 1.25em);
  margin-bottom: 30px;
  color: var(--text-main);
}

/* CTA Buttons */
.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-tai-xiu__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-tai-xiu__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--primary-color), 0.3);
}

.page-tai-xiu__btn-secondary {
  background: var(--card-bg); /* White background for secondary */
  color: var(--primary-color); /* Primary color text */
  border: 2px solid var(--primary-color);
}

.page-tai-xiu__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--primary-color), 0.3);
}

/* Content Area Common Styles */
.page-tai-xiu__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-tai-xiu__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-tai-xiu p {
  margin-bottom: 15px;
  font-size: 1em;
  color: var(--text-main);
}

.page-tai-xiu ul,
.page-tai-xiu ol {
  margin-bottom: 15px;
  padding-left: 25px;
  color: var(--text-main);
}

.page-tai-xiu ul li,
.page-tai-xiu ol li {
  margin-bottom: 10px;
}

.page-tai-xiu__image-wrapper {
    margin: 30px auto;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-tai-xiu__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Dark Section Styling */
.page-tai-xiu__dark-section {
    background-color: var(--primary-color); /* Using primary brand color for dark section */
    color: #ffffff; /* White text for dark background */
    padding: 60px 20px;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title {
    color: #ffffff; /* White title for dark background */
}

.page-tai-xiu__dark-section p,
.page-tai-xiu__dark-section ul li,
.page-tai-xiu__dark-section ol li {
    color: #ffffff;
}

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

.page-tai-xiu__feature-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main); /* Ensure dark text on light card background */
  border: 1px solid var(--border-color);
}

.page-tai-xiu__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-tai-xiu__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
  max-width: 800px;
  margin: 30px auto 0;
}

.page-tai-xiu__faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--primary-color);
  user-select: none;
  list-style: none; /* Remove default marker */
}

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

.page-tai-xiu__faq-toggle {
  display: block;
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232F6BFF"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>'); /* Plus icon */
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232F6BFF"><path d="M19 13H5v-2h14v2z"/></svg>'); /* Minus icon */
  transform: rotate(180deg);
}

.page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: var(--text-main);
}


/* Responsive styles */
@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 16px; /* Base font size for mobile */
    line-height: 1.6;
  }

  /* Hero Section Mobile */
  .page-tai-xiu__hero-section {
    padding: 20px 0; /* Adjusted padding for mobile */
    padding-top: var(--hero-padding-top-mobile); /* Small top padding */
  }

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

  .page-tai-xiu__main-title {
    font-size: 2.2em; /* Smaller H1 for mobile */
    margin-bottom: 10px;
  }

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

  .page-tai-xiu__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100% !important; /* Ensure container takes full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to container */
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Content Area Mobile */
  .page-tai-xiu__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-tai-xiu__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 20px auto;
    padding: 0 15px; /* Ensure image wrapper itself has padding */
  }

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

  /* Features Grid Mobile */
  .page-tai-xiu__features-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to grid container */
  }

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

  /* FAQ Mobile */
  .page-tai-xiu__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to faq list container */
  }

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

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