/* style/tai-xiu.css */

:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg: #D32F2F;
  --page-bg: #B71C1C;
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
}

.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Assumed dark body background from shared.css */
  background-color: var(--page-bg);
}

.page-tai-xiu__top-section {
  padding-top: 10px; /* Adhering to the 10px top spacing rule */
  padding-bottom: 40px;
  text-align: center;
  background-color: var(--deep-red-color);
  color: var(--light-text-color);
}

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

.page-tai-xiu__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--gold-color);
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(255, 204, 102, 0.6);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.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__top-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-tai-xiu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  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: var(--button-gradient);
  color: var(--deep-red-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: inset 0 0 0 1px var(--gold-color);
}

.page-tai-xiu__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__content-section {
  padding: 50px 0;
  background-color: var(--page-bg);
}

.page-tai-xiu__article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-tai-xiu__article h2 {
  color: var(--gold-color);
  font-size: 2.2rem;
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  text-shadow: 0 0 5px rgba(255, 204, 102, 0.4);
}

.page-tai-xiu__article h3 {
  color: var(--text-main-color);
  font-size: 1.6rem;
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 4px solid var(--gold-color);
  padding-left: 15px;
}

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

.page-tai-xiu__highlight {
  color: var(--gold-color);
  font-weight: 700;
}

.page-tai-xiu__link {
  color: var(--glow-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-tai-xiu__link:hover {
  color: var(--gold-color);
}

.page-tai-xiu__figure {
  margin: 30px 0;
  text-align: center;
  background-color: var(--deep-red-color);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

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

.page-tai-xiu__figcaption {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-main-color);
}

.page-tai-xiu__promo-box {
  background-color: var(--card-bg);
  border: 2px solid var(--gold-color);
  border-radius: 10px;
  padding: 30px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__promo-title {
  color: var(--gold-color);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.page-tai-xiu__promo-text {
  font-size: 1.1rem;
  margin-bottom: 25px;
  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 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color);
}

.page-tai-xiu__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none; /* Hide default marker */
  color: var(--gold-color);
  background-color: var(--deep-red-color);
  border-bottom: 1px solid var(--border-color);
}

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

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  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: 20px 25px;
  font-size: 1rem;
  color: var(--text-main-color);
}

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

.page-tai-xiu__cta-bottom {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
}

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

@media (max-width: 1024px) {
  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-tai-xiu__article-wrap {
    padding: 0 15px;
  }

  .page-tai-xiu__article h2 {
    font-size: 2rem;
  }

  .page-tai-xiu__article h3 {
    font-size: 1.5rem;
  }

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

  .page-tai-xiu__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

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

@media (max-width: 768px) {
  /* Top Section / Heading + Dual CTA */
  .page-tai-xiu__top-section {
    padding-top: 10px !important; /* Fixed header spacing */
    padding-bottom: 30px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
    margin-bottom: 10px;
  }

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

  .page-tai-xiu__top-cta {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }

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

  /* Single Column Long Text Container */
  .page-tai-xiu__content-section {
    padding: 30px 0;
  }

  .page-tai-xiu__article-wrap {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__article h2 {
    font-size: 1.8rem !important;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 8px;
  }

  .page-tai-xiu__article h3 {
    font-size: 1.3rem !important;
    margin-top: 25px;
    margin-bottom: 12px;
    padding-left: 10px;
  }

  .page-tai-xiu__article p {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  /* Generic Images and Figures */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

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

  /* Buttons and Button Containers */
  .page-tai-xiu__promo-box {
    padding: 25px 15px;
    margin: 30px 0;
  }

  .page-tai-xiu__promo-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

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

  .page-tai-xiu__cta-bottom {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    margin-top: 30px;
    padding: 0 15px;
  }

  /* Registration Tutorial and FAQ Blocks (FAQ here) */
  .page-tai-xiu__faq-item summary {
    padding: 15px 15px;
    font-size: 1rem !important;
  }

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