.page-tai-xiu {
  font-family: Arial, sans-serif;
  color: #333333;
  background-color: #ffffff;
}

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(to bottom, #017439, #005f2c);
  color: #ffffff;
  text-align: center;
  position: relative;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-tai-xiu__hero-content {
  padding: 30px 20px;
  background-color: #ffffff; /* Ensure high contrast for text */
  color: #333333;
  width: 100%;
  box-sizing: border-box;
}

.page-tai-xiu__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #017439;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-tai-xiu__cta-buttons--centered {
  margin-top: 30px;
  margin-bottom: 30px;
}

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

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

.page-tai-xiu__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-tai-xiu__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2c;
  border-color: #005f2c;
}

.page-tai-xiu__section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

.page-tai-xiu__dark-section .page-tai-xiu__section-title,
.page-tai-xiu__dark-section .page-tai-xiu__sub-title,
.page-tai-xiu__dark-section .page-tai-xiu__heading-4 {
  color: #ffffff;
}

.page-tai-xiu__section-title {
  font-size: 2.2em;
  color: #017439;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

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

.page-tai-xiu__heading-4 {
  font-size: 1.3em;
  color: #017439;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-tai-xiu p {
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-tai-xiu__list,
.page-tai-xiu__ordered-list {
  margin-bottom: 20px;
  padding-left: 25px;
}

.page-tai-xiu__list li,
.page-tai-xiu__ordered-list li {
  line-height: 1.7;
  margin-bottom: 8px;
}

.page-tai-xiu__image-figure {
  margin: 30px auto;
  max-width: 800px;
  text-align: center;
}

.page-tai-xiu__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-tai-xiu__image-caption {
  font-style: italic;
  font-size: 0.9em;
  color: #555;
  margin-top: 10px;
}

.page-tai-xiu__dark-section .page-tai-xiu__image-caption {
  color: #f0f0f0;
}

.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;
  padding: 20px;
  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 {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #017439;
}

.page-tai-xiu__dark-section .page-tai-xiu__faq-question {
  color: #ffffff;
}

.page-tai-xiu__faq-answer {
  line-height: 1.6;
}

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

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

  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
  }

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

  .page-tai-xiu__main-title {
    font-size: 2em;
    margin-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    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;
  }

  .page-tai-xiu__section,
  .page-tai-xiu__content-area {
    padding: 20px 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;
  }

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

  .page-tai-xiu__heading-4 {
    font-size: 1.1em;
    margin-top: 15px;
    margin-bottom: 8px;
  }

  .page-tai-xiu p {
    font-size: 0.95em;
  }

  .page-tai-xiu__list,
  .page-tai-xiu__ordered-list {
    padding-left: 20px;
  }

  .page-tai-xiu__list li,
  .page-tai-xiu__ordered-list li {
    font-size: 0.95em;
  }

  .page-tai-xiu__image-figure {
    margin: 20px auto;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-tai-xiu__image-caption {
    font-size: 0.85em;
  }

  .page-tai-xiu__faq-item {
    padding: 15px;
  }

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

  .page-tai-xiu__faq-answer {
    font-size: 0.95em;
  }
}