.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

.page-tai-xiu__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as per instruction */
  padding-bottom: 40px;
  overflow: hidden;
}

.page-tai-xiu__hero-image-wrap {
  width: 100%;
  max-height: 500px;
  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 {
  max-width: 900px;
  padding: 20px;
  margin-top: 20px;
  position: relative; /* Ensure content is above the image but not overlapping its area */
  z-index: 2;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
}

.page-tai-xiu__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 30px;
}

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

.page-tai-xiu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-tai-xiu__btn-secondary {
  background-color: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__btn-secondary:hover {
  background-color: #F4F7FB; /* Background */
  color: #4A8BFF;
  border-color: #4A8BFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-tai-xiu__section {
  padding: 40px 0;
  border-bottom: 1px solid #D6E2FF; /* Border */
}

.page-tai-xiu__section:last-of-type {
  border-bottom: none;
}

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

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
}

.page-tai-xiu__section-title--white {
  color: #ffffff;
}

.page-tai-xiu__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: #2F6BFF; /* Main Color */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-tai-xiu__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 1em;
}

.page-tai-xiu__text-block--white {
  color: #ffffff;
}

.page-tai-xiu__figure {
  margin: 30px 0;
  text-align: center;
}

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

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

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

.page-tai-xiu__list-item {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 0.5em;
}

.page-tai-xiu__dark-bg {
  background-color: #2F6BFF;
  color: #ffffff;
}

.page-tai-xiu__light-bg {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

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

.page-tai-xiu__step-card {
  background-color: #ffffff; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #1F2D3D;
}

.page-tai-xiu__step-card:hover {
  transform: translateY(-5px);
}

.page-tai-xiu__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2F6BFF; /* Main Color */
  margin-bottom: 15px;
}

.page-tai-xiu__step-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-tai-xiu__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.page-tai-xiu__cta-bottom,
.page-tai-xiu__conclusion-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

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

.page-tai-xiu__faq-item {
  background-color: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #1F2D3D;
}

.page-tai-xiu__faq-question {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2F6BFF; /* Main Color */
  padding: 18px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.page-tai-xiu__faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item.active .page-tai-xiu__faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.page-tai-xiu__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  padding: 0 25px;
}

.page-tai-xiu__faq-item.active .page-tai-xiu__faq-answer {
  max-height: 2000px; /* Sufficiently large value */
  padding-bottom: 25px;
}

.page-tai-xiu__faq-answer .page-tai-xiu__text-block {
  margin-bottom: 0;
  padding-top: 10px;
}

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

  .page-tai-xiu__hero-content {
    padding: 15px;
    margin-top: 10px;
  }

  .page-tai-xiu__main-title {
    font-size: 2.2rem; /* Adjusted for mobile readability */
    margin-bottom: 10px;
  }

  .page-tai-xiu__subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-tai-xiu__hero-cta {
    flex-direction: column;
    gap: 10px;
  }

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

  .page-tai-xiu__section {
    padding: 25px 0;
  }

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

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

  .page-tai-xiu__sub-title {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__list-item {
    font-size: 1rem;
    line-height: 1.6;
  }

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

  .page-tai-xiu__registration-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

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

  .page-tai-xiu__step-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .page-tai-xiu__step-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .page-tai-xiu__cta-bottom,
  .page-tai-xiu__conclusion-cta {
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-tai-xiu__faq-item.active .page-tai-xiu__faq-answer {
    padding-bottom: 20px;
  }

  .page-tai-xiu__faq-answer .page-tai-xiu__text-block {
    padding-top: 5px;
  }

  .page-tai-xiu p,
  .page-tai-xiu li {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Ensure all image containers are responsive */
  .page-tai-xiu__hero-image-wrap,
  .page-tai-xiu__figure,
  .page-tai-xiu__step-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* FAQ Specific styles for native <details> element */
.page-tai-xiu__faq-item details {
  background-color: #ffffff;
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #1F2D3D;
}

.page-tai-xiu__faq-item summary {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2F6BFF;
  padding: 18px 25px;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.page-tai-xiu__faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item details[open] summary::after {
  content: '-';
  transform: rotate(180deg);
}

.page-tai-xiu__faq-item details[open] .page-tai-xiu__faq-answer {
  padding-bottom: 25px;
}

.page-tai-xiu__faq-item details .page-tai-xiu__faq-answer {
  padding: 0 25px;
}

@media (max-width: 768px) {
  .page-tai-xiu__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-tai-xiu__faq-item details .page-tai-xiu__faq-answer {
    padding: 0 20px;
  }
  .page-tai-xiu__faq-item details[open] .page-tai-xiu__faq-answer {
    padding-bottom: 20px;
  }
}