.page-tai-xiu {
  color: var(--text-main); /* Deep Navy background, so light text */
  background-color: var(--deep-navy);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top margin, relying on body for header offset */
  margin-bottom: 40px;
  text-align: center;
  background-color: var(--deep-navy);
  position: relative;
  overflow: hidden;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  transform: translateY(-50px); /* Adjust to bring content slightly up */
}

.page-tai-xiu__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(79, 168, 255, 0.5);
}

.page-tai-xiu__description {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 8px 20px rgba(43, 115, 246, 0.6);
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background: transparent;
  color: var(--glow);
  border: 2px solid var(--glow);
  box-shadow: 0 0 10px rgba(79, 168, 255, 0.3);
}

.page-tai-xiu__btn-secondary:hover {
  background: rgba(79, 168, 255, 0.1);
  box-shadow: 0 0 15px rgba(79, 168, 255, 0.5);
  transform: translateY(-2px);
}

.page-tai-xiu__section {
  padding: 60px 0;
  margin-bottom: 20px;
  background-color: var(--deep-navy);
}

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

.page-tai-xiu__section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__section-title--light {
  color: var(--text-main);
  text-shadow: none;
}

.page-tai-xiu__content-area {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
}

.page-tai-xiu__content-area p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-tai-xiu__content-area strong.page-tai-xiu__highlight {
  color: var(--text-main);
  font-weight: 700;
}

.page-tai-xiu__sub-title {
  font-size: 1.6rem;
  color: var(--gold);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-tai-xiu__list,
.page-tai-xiu__numbered-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

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

.page-tai-xiu__list li,
.page-tai-xiu__numbered-list li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-tai-xiu__image-inline {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-tai-xiu__cta-block {
  background: var(--deep-navy);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__cta-block p {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 25px;
  font-weight: 600;
}

.page-tai-xiu__section--faq .page-tai-xiu__content-area {
  background: none;
  box-shadow: none;
  padding: 0;
}

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-secondary);
}

details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
}

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

details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question:hover {
  background: rgba(var(--text-main-rgb), 0.05);
}

.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-navy);
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary);
}

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

.page-tai-xiu__section--contact .page-tai-xiu__container {
  background: linear-gradient(90deg, #113B7A 0%, #1D5FD1 100%);
  padding: 50px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__section--contact .page-tai-xiu__section-title {
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: none;
}

.page-tai-xiu__section--contact .page-tai-xiu__description {
  color: #ffffff;
  margin-bottom: 30px;
}

.page-tai-xiu__section--contact .page-tai-xiu__btn-primary {
  background: #F2C14E;
  color: #113B7A;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__section--contact .page-tai-xiu__btn-primary:hover {
  background: #e0b03d;
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

/* Common image responsive styles */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    transform: translateY(-30px);
  }
  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-tai-xiu__description {
    font-size: 1rem;
  }
  .page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-tai-xiu__sub-title {
    font-size: 1.4rem;
  }
  .page-tai-xiu__content-area {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Consistent small top margin */
    margin-bottom: 20px;
  }
  .page-tai-xiu__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
  }
  .page-tai-xiu__hero-content {
    padding: 20px 15px;
    transform: translateY(0); /* Reset transform */
  }
  .page-tai-xiu__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem); /* Adjust H1 size for mobile */
    margin-bottom: 15px;
  }
  .page-tai-xiu__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-tai-xiu__section {
    padding: 40px 0;
    margin-bottom: 10px;
  }
  .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: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }
  .page-tai-xiu__sub-title {
    font-size: 1.3rem;
    margin-top: 25px;
  }
  .page-tai-xiu__content-area {
    padding: 20px;
  }
  .page-tai-xiu__content-area p {
    font-size: 0.95rem;
  }
  .page-tai-xiu__list,
  .page-tai-xiu__numbered-list {
    margin-left: 20px;
  }
  .page-tai-xiu__list li,
  .page-tai-xiu__numbered-list li {
    font-size: 0.95rem;
  }
  .page-tai-xiu__image-inline {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-tai-xiu__cta-block {
    padding: 25px;
  }
  .page-tai-xiu__cta-block p {
    font-size: 1.1rem;
  }
  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-tai-xiu__faq-qtext {
    font-size: 1rem;
    width: calc(100% - 40px);
  }
  .page-tai-xiu__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
    padding: 0 15px 15px;
  }
  .page-tai-xiu__section--contact .page-tai-xiu__container {
    padding: 30px 15px;
  }
  .page-tai-xiu__section--contact .page-tai-xiu__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .page-tai-xiu__section--contact .page-tai-xiu__description {
    font-size: 0.95rem;
  }
  /* Ensure all content images are responsive */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tai-xiu__section,
  .page-tai-xiu__content-area,
  .page-tai-xiu__cta-block,
  .page-tai-xiu__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}