/* style/tai-xiu.css */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
  line-height: 1.6;
}

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

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

.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Assuming body padding-top handles header offset */
  margin-bottom: 20px;
}

.page-tai-xiu__hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.page-tai-xiu__hero-slide {
  display: none;
  width: 100%;
  transition: opacity 0.5s ease-in-out;
}

.page-tai-xiu__hero-slide.is-active {
  display: block;
  opacity: 1;
}

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

.page-tai-xiu__hero-slider-prev,
.page-tai-xiu__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(229, 57, 53, 0.7); /* E53935 */
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  border-radius: 5px;
}

.page-tai-xiu__hero-slider-prev {
  left: 15px;
}

.page-tai-xiu__hero-slider-next {
  right: 15px;
}

.page-tai-xiu__hero-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.page-tai-xiu__hero-slider-dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-tai-xiu__hero-slider-dot.is-active {
  background-color: #E53935; /* E53935 */
}

.page-tai-xiu__hero-content {
  padding: 30px 15px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  margin-top: -100px; /* Overlap with slider for visual effect */
  position: relative;
  z-index: 5;
  border-radius: 8px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-tai-xiu__description {
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 25px;
}

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

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

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

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

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

.page-tai-xiu__btn-secondary:hover {
  background-color: #E53935; /* Primary */
  color: #ffffff;
  transform: translateY(-2px);
}

.page-tai-xiu__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #E53935; /* Primary */
  text-align: center;
  margin-bottom: 30px;
}

.page-tai-xiu__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #FF5A4F; /* Secondary */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-tai-xiu__text-block {
  font-size: 1rem;
  margin-bottom: 15px;
  text-align: justify;
}

.page-tai-xiu__highlight {
  color: #E53935; /* Primary */
  font-weight: 600;
}

.page-tai-xiu__list,
.page-tai-xiu__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

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

.page-tai-xiu__text-link {
  color: #FF5A4F; /* Secondary */
  text-decoration: underline;
}

.page-tai-xiu__text-link:hover {
  color: #E53935; /* Primary */
}

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

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

.page-tai-xiu__image-caption {
  font-style: italic;
  font-size: 0.9rem;
  color: #777777;
  margin-top: 10px;
}

.page-tai-xiu__promotion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.page-tai-xiu__promo-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-tai-xiu__promo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #E53935; /* Primary */
  margin-bottom: 10px;
}

.page-tai-xiu__card-description {
  font-size: 0.95rem;
  color: #555555;
}

.page-tai-xiu__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

.page-tai-xiu__faq-item {
  background-color: #FFFFFF; /* Card BG */\  border: 1px solid #E0E0E0; /* Border */
  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;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333; /* Text Main */
  background-color: #fcfcfc;
  user-select: none;
}

.page-tai-xiu__faq-question:hover {
  background-color: #f0f0f0;
}

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

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #E53935; /* Primary */
  margin-left: 15px;
}

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

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

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

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

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

  .page-tai-xiu__description {
    font-size: 1rem;
  }

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

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

  .page-tai-xiu__promotion-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-top: 10px !important;
  }

  .page-tai-xiu__hero-content {
    margin-top: -60px;
    padding: 20px 10px;
    max-width: 95%;
  }

  .page-tai-xiu__main-title {
    font-size: 1.8rem;
  }

  .page-tai-xiu__description {
    font-size: 0.9rem;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-tai-xiu__hero-slider-prev,
  .page-tai-xiu__hero-slider-next {
    padding: 8px 12px;
    font-size: 20px;
  }

  .page-tai-xiu__section {
    padding: 20px 0;
    margin-bottom: 10px;
  }

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

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

  .page-tai-xiu__text-block,
  .page-tai-xiu__list-item,
  .page-tai-xiu__card-description,
  .page-tai-xiu__image-caption,
  .page-tai-xiu__faq-answer {
    font-size: 0.95rem;
  }

  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__promotion-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-tai-xiu__promo-card {
    padding: 15px;
  }

  .page-tai-xiu__card-title {
    font-size: 1.2rem;
  }

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

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

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

  /* General container for mobile overflow prevention */
  .page-tai-xiu__container,
  .page-tai-xiu__section,
  .page-tai-xiu__promo-card,
  .page-tai-xiu__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu__hero-slider-prev,
  .page-tai-xiu__hero-slider-next {
    display: none; /* Hide arrows on small screens */
  }

  .page-tai-xiu__hero-slider-dots {
    bottom: 10px;
  }
}