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

.page-tai-xiu__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 40px;
  background-color: #f0f0f0; /* Light background for the section */
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for hero image */
  overflow: hidden;
}

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

.page-tai-xiu__hero-content {
  max-width: 960px;
  margin-top: 30px;
  padding: 0 20px;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  color: #017439;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-tai-xiu__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-tai-xiu__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
}

.page-tai-xiu__btn--register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

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

.page-tai-xiu__btn--login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

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

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

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

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

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

.page-tai-xiu__section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-tai-xiu__section:nth-of-type(odd) {
  background-color: #f9f9f9;
}

.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;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-tai-xiu__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-tai-xiu__paragraph {
  font-size: 1.1em;
  margin-bottom: 15px;
  line-height: 1.7;
  color: #444444;
}

.page-tai-xiu__highlight {
  color: #017439;
  font-weight: 700;
}

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

.page-tai-xiu__unordered-list li,
.page-tai-xiu__ordered-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

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

.page-tai-xiu__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-tai-xiu__card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-tai-xiu__card-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-tai-xiu__card-text {
  font-size: 1em;
  color: #555555;
}

.page-tai-xiu__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-tai-xiu__step-card {
  background-color: #f0f8f0; /* Light green background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  border: 1px solid #d0e0d0;
}

.page-tai-xiu__step-number {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 2.5em;
  font-weight: 800;
  color: rgba(1, 116, 57, 0.15); /* Transparent brand color */
  line-height: 1;
}

.page-tai-xiu__step-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  margin-top: 40px; /* Space for number */
  font-weight: 700;
}

.page-tai-xiu__step-text {
  font-size: 1em;
  color: #555555;
}

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

.page-tai-xiu__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  background-color: #f0f8f0; /* Light green for summary */
  user-select: none;
  list-style: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

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

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transform: rotate(0deg);
  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: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

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

.page-tai-xiu__text-center {
  text-align: center;
}

.page-tai-xiu__cta-buttons--final {
  margin-top: 40px;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

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

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

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

  .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: 12px 15px;
  }

  .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: 30px;
  }

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

  .page-tai-xiu__paragraph,
  .page-tai-xiu__unordered-list li,
  .page-tai-xiu__ordered-list li,
  .page-tai-xiu__card-text,
  .page-tai-xiu__step-text,
  .page-tai-xiu__faq-answer p {
    font-size: 1em;
  }

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

  .page-tai-xiu__card-grid,
  .page-tai-xiu__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
  }

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

  .page-tai-xiu__card-title {
    font-size: 1.2em;
  }

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

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

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

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

  .page-tai-xiu__cta-buttons--final {
    margin-top: 30px;
    padding: 0 15px;
  }
}