/* style/tai-xiu.css */

:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --site-bg: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Body background is dark, so use light text */
  background-color: var(--site-bg);
  line-height: 1.6;
  padding-bottom: 40px;
}

.page-tai-xiu__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, main offset from body */
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-tai-xiu__hero-image-wrap {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 2;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect, but not text on image */
  background: linear-gradient(0deg, var(--site-bg) 70%, transparent 100%);
}

.page-tai-xiu__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 0 0 10px rgba(255, 165, 58, 0.5);
}

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

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.page-tai-xiu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn--primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-tai-xiu__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-tai-xiu__btn--secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 10px rgba(255, 165, 58, 0.2);
}

.page-tai-xiu__btn--secondary:hover {
  background: rgba(255, 165, 58, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 165, 58, 0.3);
}

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

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

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
  position: relative;
}

.page-tai-xiu__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-tai-xiu__sub-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-tai-xiu p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: var(--text-main-color);
}

.page-tai-xiu__highlight {
  color: var(--secondary-color);
  font-weight: 600;
}

.page-tai-xiu a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tai-xiu a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-tai-xiu__figure {
  margin: 30px 0;
  text-align: center;
  background-color: var(--card-bg);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-tai-xiu__figcaption {
  font-size: 0.95rem;
  color: var(--text-main-color);
  margin-top: 10px;
  opacity: 0.8;
}

.page-tai-xiu__info-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  margin: 25px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__info-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-main-color);
}

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

.page-tai-xiu__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  background-color: #1f2229;
  border-bottom: 1px solid transparent; /* default */
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;
}

.page-tai-xiu__faq-item[open] > .page-tai-xiu__faq-question {
  background-color: var(--primary-color);
  color: #ffffff;
  border-bottom-color: var(--deep-orange);
}

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

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

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

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

.page-tai-xiu__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-main-color);
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
}

.page-tai-xiu__conclusion-section {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(0deg, var(--site-bg) 0%, #17191F 100%);
}

.page-tai-xiu__final-cta {
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 30px;
}

/* --- Responsive Styles --- */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Top section title + dual CTAs */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Small top padding, main offset from body */
  }

  .page-tai-xiu__hero-content {
    padding: 20px 15px;
    margin-top: -60px;
  }

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

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

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

  /* Buttons and button containers */
  .page-tai-xiu__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-tai-xiu__cta-buttons,
  .page-tai-xiu__button-group,
  .page-tai-xiu__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-tai-xiu__content-section,
  .page-tai-xiu__conclusion-section {
    padding: 25px 0;
  }

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

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

  .page-tai-xiu p {
    font-size: 0.95rem;
  }

  /* Generic images and figures */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset;
    min-height: unset;
  }
  
  .page-tai-xiu__figure {
    padding: 10px;
    margin: 20px 0;
  }

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

  .page-tai-xiu__info-card {
    padding: 15px;
    margin: 20px 0;
  }

  .page-tai-xiu__info-card p {
    font-size: 0.9rem;
  }

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

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

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

  .page-tai-xiu__final-cta {
    font-size: 1.1rem;
  }
}

/* Tablet (max-width: 1024px) - Adjustments for larger tablets */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-tai-xiu__hero-content {
    margin-top: -80px;
  }
  .page-tai-xiu__main-title {
    font-size: 2.8rem;
  }
  .page-tai-xiu__description {
    font-size: 1.05rem;
  }
  .page-tai-xiu__section-title {
    font-size: 2.2rem;
  }
  .page-tai-xiu__sub-title {
    font-size: 1.6rem;
  }
  .page-tai-xiu__article-wrap {
    padding: 0 30px;
  }
}