.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Assuming body background from shared.css is light */
}

.page-tai-xiu__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Brand primary color for hero background */
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 30px;
  padding: 0 20px;
}

.page-tai-xiu__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Use custom color for main title as per prompt */
}

.page-tai-xiu__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-tai-xiu__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom color for register/login font */
  border: 2px solid #C30808;
}

.page-tai-xiu__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

.page-tai-xiu__section {
  padding: 60px 0;
  border-bottom: 1px solid #e0e0e0;
}

.page-tai-xiu__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-tai-xiu__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-tai-xiu__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit color from section (dark/light) */
}

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

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

.page-tai-xiu__highlight {
  color: #C30808; /* Highlight color for daga999 */
  font-weight: bold;
}

.page-tai-xiu__figure {
  margin: 30px auto;
  text-align: center;
  max-width: 680px;
}

.page-tai-xiu__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__figcaption {
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
}

.page-tai-xiu__dark-section .page-tai-xiu__figcaption {
  color: #ccc;
}

.page-tai-xiu__ordered-list,
.page-tai-xiu__unordered-list {
  list-style-position: inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-tai-xiu__list-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  line-height: 1.7;
}

.page-tai-xiu__list-item strong {
  color: inherit;
}

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

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

.page-tai-xiu__dark-section .page-tai-xiu__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #eee;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For <summary> */
}

.page-tai-xiu__dark-section .page-tai-xiu__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

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

.page-tai-xiu__faq-question .page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  transform: rotate(45deg);
}

.page-tai-xiu__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.05em;
  line-height: 1.6;
}

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

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

  .page-tai-xiu__description {
    font-size: 1.1em;
  }

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

  .page-tai-xiu__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + CTA */
  .page-tai-xiu__hero-section {
    padding-bottom: 30px;
    padding-top: 10px !important; /* Small top padding */
  }

  .page-tai-xiu__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-tai-xiu__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;
  }

  /* 2. Single column long text containers */
  .page-tai-xiu__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__text-block {
    font-size: 1em;
  }

  .page-tai-xiu__list-item {
    font-size: 1em;
  }

  /* 3. General images and figures */
  .page-tai-xiu__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu__figure {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* 4. Buttons and button containers (already covered in top-cta, but general check) */
  .page-tai-xiu__cta-button,
  .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;
  }

  .page-tai-xiu__cta-buttons,
  .page-tai-xiu__button-group,
  .page-tai-xiu__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
  }

  /* 5. FAQ blocks */
  .page-tai-xiu__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-tai-xiu__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }
  .page-tai-xiu__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}