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

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Fixed small top padding as shared.css handles body padding */
  background: linear-gradient(135deg, #26A9E0, #1a7fb5);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-tai-xiu__hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative; /* Ensure content is above any background effects */
  z-index: 1;
}

.page-tai-xiu__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-tai-xiu__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-tai-xiu__content-area {
  padding: 60px 0;
}

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

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

.page-tai-xiu__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-tai-xiu__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.page-tai-xiu__highlight {
  color: #26A9E0;
  font-weight: bold;
}

.page-tai-xiu__content-image {
  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__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.page-tai-xiu__list li {
  margin-bottom: 10px;
}

.page-tai-xiu__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

/* Color Contrast Specifics */
.page-tai-xiu__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-tai-xiu__light-text {
  color: #ffffff;
}

.page-tai-xiu__dark-text {
  color: #333333;
}

/* Buttons */
.page-tai-xiu__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-tai-xiu__button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  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-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

/* FAQ Section */
.page-tai-xiu__faq-list {
  margin-top: 30px;
}

.page-tai-xiu__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #ffffff;
  font-size: 1.15rem;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-tai-xiu__faq-item[open] > .page-tai-xiu__faq-question {
  background-color: #eaf7ff;
  color: #26A9E0;
}

.page-tai-xiu__faq-item[open] > .page-tai-xiu__faq-question .page-tai-xiu__faq-toggle {
  transform: rotate(45deg);
}

.page-tai-xiu__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #555555;
}

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

.page-tai-xiu__call-to-action {
  padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-tai-xiu__container {
    padding: 0 25px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-tai-xiu__section-title {
    font-size: 2.2rem;
  }

  .page-tai-xiu__sub-title {
    font-size: 1.6rem;
  }

  .page-tai-xiu__description,
  .page-tai-xiu__text-block,
  .page-tai-xiu__list {
    font-size: 1rem;
  }
}

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

  .page-tai-xiu__hero-section {
    padding-bottom: 30px;
  }

  .page-tai-xiu__hero-image-wrapper {
    max-height: 400px;
  }

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

  .page-tai-xiu__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

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

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

  .page-tai-xiu__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-tai-xiu__sub-title {
    font-size: 1.4rem;
    margin-top: 30px;
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__list {
    font-size: 0.95rem;
  }

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

  .page-tai-xiu__cta-buttons,
  .page-tai-xiu__button-group {
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px;
  }
  
  /* General image and container rules for mobile */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
}