.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #f8f9fa; /* Light background for the page */
}

.page-tai-xiu__content-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-tai-xiu__content-container--center {
  text-align: center;
}

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, not --header-offset */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
  color: #333333;
}

.page-tai-xiu__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-tai-xiu__hero-content {
  flex: 1 1 50%;
  text-align: left;
}

.page-tai-xiu__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0;
  max-width: 600px; /* Limit H1 width */
}

.page-tai-xiu__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 600px; /* Limit description width */
}

.page-tai-xiu__hero-image {
  flex: 1 1 40%;
  text-align: center;
}

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

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-tai-xiu__cta-buttons--center {
  justify-content: center;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-tai-xiu__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-tai-xiu__btn-secondary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-tai-xiu__btn-secondary:hover {
  background: #c76706;
  border-color: #c76706;
}

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

.page-tai-xiu__section-subtitle {
  font-size: 1.6em;
  font-weight: 600;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-tai-xiu__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #444444;
}

.page-tai-xiu__image-content {
  max-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__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-tai-xiu__dark-bg .page-tai-xiu__section-title,
.page-tai-xiu__dark-bg .page-tai-xiu__section-subtitle {
  color: #ffffff;
}

.page-tai-xiu__dark-bg .page-tai-xiu__text-block {
  color: #f0f0f0;
}

.page-tai-xiu__feature-list,
.page-tai-xiu__strategy-list,
.page-tai-xiu__promo-list,
.page-tai-xiu__list-decimal,
.page-tai-xiu__ordered-list {
  list-style-type: disc;
  margin: 20px 0 20px 25px;
  padding: 0;
}

.page-tai-xiu__list-decimal {
  list-style-type: decimal;
}

.page-tai-xiu__ordered-list {
  list-style-type: decimal;
  margin-left: 20px;
}

.page-tai-xiu__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

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

.page-tai-xiu__faq-item {
  background-color: #f0faff; /* Lighter blue for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #cceeff;
}

.page-tai-xiu__dark-bg .page-tai-xiu__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: #26A9E0;
  list-style: none;
  user-select: none; /* Prevent text selection on click */
}

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

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

.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: 0 25px 20px;
  font-size: 1.0em;
  line-height: 1.6;
  color: #555555;
}

.page-tai-xiu__dark-bg .page-tai-xiu__faq-answer {
  color: #e0e0e0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-tai-xiu__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
    gap: 20px;
  }

  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }

  .page-tai-xiu__hero-content {
    flex: 1 1 100%;
    text-align: center;
  }

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

  .page-tai-xiu__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to container */
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-tai-xiu__hero-image {
    flex: 1 1 100%;
    width: 100%;
  }

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

  .page-tai-xiu__content-container {
    padding: 30px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-tai-xiu__section-subtitle {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-tai-xiu__text-block {
    font-size: 0.95em;
    margin-bottom: 15px;
  }

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

  .page-tai-xiu__feature-list,
  .page-tai-xiu__strategy-list,
  .page-tai-xiu__promo-list,
  .page-tai-xiu__list-decimal,
  .page-tai-xiu__ordered-list {
    margin-left: 15px;
    font-size: 0.95em;
  }

  .page-tai-xiu__list-item {
    margin-bottom: 8px;
  }

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

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

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

  .page-tai-xiu__cta-final-section .page-tai-xiu__section-title {
    font-size: 1.8em;
  }

  .page-tai-xiu__cta-final-section .page-tai-xiu__text-block {
    font-size: 1em;
  }
}