.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333);
  background-color: var(--background-color, #F5F7FA);
}

.page-tai-xiu__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-tai-xiu__article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Adjusted to 10px as per instructions, relying on body padding-top for header offset */
  padding-bottom: 40px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Using brand colors for hero background */
  color: #ffffff;
  text-align: center;
}

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

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

.page-tai-xiu__main-title {
  font-size: clamp(2em, 3.5vw, 3em);
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

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

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

.page-tai-xiu__cta-buttons--center {
  margin-top: 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: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-tai-xiu__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

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

.page-tai-xiu__section:nth-of-type(even) {
  background-color: var(--background-color, #F5F7FA);
}

.page-tai-xiu__section:nth-of-type(odd) {
  background-color: var(--card-bg, #FFFFFF);
}

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

.page-tai-xiu__light-bg {
  background: var(--background-color, #F5F7FA);
  color: var(--text-main, #333333);
}

.page-tai-xiu__section-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 25px;
  text-align: center;
  color: var(--text-main, #333333);
}

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

.page-tai-xiu__sub-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-main, #333333);
}

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

.page-tai-xiu p {
  margin-bottom: 1em;
  line-height: 1.7;
  color: var(--text-main, #333333);
}

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

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

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

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

.page-tai-xiu__figcaption--white {
  color: #f0f0f0;
}

.page-tai-xiu__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  color: var(--text-main, #333333);
}

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

.page-tai-xiu__list li {
  margin-bottom: 0.5em;
}

.page-tai-xiu__list strong {
  color: #E53935;
}

.page-tai-xiu__list--white strong {
  color: #FF5A4F;
}

.page-tai-xiu__button-container {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 25px;
}

.page-tai-xiu__button-container--center {
  margin-top: 40px;
  margin-bottom: 40px;
}

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

.page-tai-xiu__faq-item {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  color: var(--text-main, #333333);
  background-color: #fcfcfc;
  border-bottom: 1px solid var(--border-color, #E0E0E0);
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
  background-color: #f0f0f0;
  border-bottom: none;
}

.page-tai-xiu__faq-qtext {
  flex-grow: 1;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  content: "-";
}

.page-tai-xiu__faq-answer {
  padding: 15px 20px;
  color: var(--text-main, #333333);
  font-size: 0.95em;
}

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

/* Desktop specific styles for larger screens */
@media (min-width: 1025px) {
  .page-tai-xiu__hero-section {
    padding-top: 20px;
  }
}

/* Tablet and Mobile styles */
@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Top section title + dual CTA */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Force 10px top padding */
    padding-bottom: 30px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Smaller font size for mobile */
    margin-bottom: 10px;
  }

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

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

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

  /* Single column long article container */
  .page-tai-xiu__article-wrap {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    padding: 0 10px;
  }

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

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

  .page-tai-xiu__list {
    margin-left: 15px;
    padding-right: 10px;
  }

  /* General images and figure */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__figure {
    padding: 0 10px;
  }

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

  /* Buttons and button containers (already handled with general .page-tai-xiu__btn-primary, etc. but ensuring specific container rules) */
  .page-tai-xiu__button-container {
    padding: 0 15px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }

  /* Registration tutorial and FAQ sections */
  .page-tai-xiu__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-tai-xiu__faq-answer {
    padding: 12px 15px;
    font-size: 0.9em;
  }

  .page-tai-xiu__faq-toggle {
    font-size: 1.3em;
  }

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