:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg-color: #17191F;
  --background-color-page: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
}

.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Assumed dark body background from shared.css, so light text */
  background-color: var(--background-color-page);
}

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
}

.page-tai-xiu__hero-image-container {
  width: 100%;
  height: auto;
  max-height: 675px;
  overflow: hidden;
}

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

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
  margin-top: -100px; /* Pull content up slightly, but not over image */
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.page-tai-xiu__main-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Responsive font size */
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-tai-xiu__description {
  font-size: 1.1em;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-tai-xiu__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-tai-xiu__content-section {
  padding: 60px 0;
  text-align: center;
}

.page-tai-xiu__dark-section {
  background-color: var(--card-bg-color);
}

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

.page-tai-xiu__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__sub-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-top: 40px;
  margin-bottom: 15px;
}

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

.page-tai-xiu__list {
  list-style-type: disc;
  text-align: left;
  margin: 0 auto 30px;
  padding-left: 40px;
  max-width: 800px;
  color: var(--text-main-color);
}

.page-tai-xiu__list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-tai-xiu__list strong {
  color: var(--secondary-color);
}

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

.page-tai-xiu__faq-list {
  text-align: left;
  margin-top: 40px;
}

.page-tai-xiu__faq-question {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-top: 25px;
  margin-bottom: 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.page-tai-xiu__faq-answer {
  font-size: 1em;
  color: var(--text-main-color);
  margin-bottom: 20px;
  padding-left: 15px;
}

.page-tai-xiu__conclusion-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--deep-orange-color));
  color: #ffffff;
  text-align: center;
}

.page-tai-xiu__conclusion-section .page-tai-xiu__section-title {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-tai-xiu__conclusion-section p {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1em;
  color: #ffffff;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

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

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

  .page-tai-xiu__sub-title {
    font-size: 1.6em;
  }
}

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

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

  .page-tai-xiu__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
    line-height: 1.3;
  }

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

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

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

  .page-tai-xiu__content-section {
    padding: 40px 0;
  }

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

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

  .page-tai-xiu__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
  }

  .page-tai-xiu p,
  .page-tai-xiu__list li,
  .page-tai-xiu__faq-answer {
    font-size: 0.95em;
  }

  .page-tai-xiu__list {
    padding-left: 25px;
  }

  .page-tai-xiu__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

  .page-tai-xiu__faq-question {
    font-size: 1.2em;
  }

  .page-tai-xiu__conclusion-section {
    padding: 50px 0;
  }

  .page-tai-xiu__conclusion-section p {
    font-size: 1em;
    margin-bottom: 30px;
  }
}