/* style/tai-xiu.css */

:root {
  --page-tai-xiu-primary-color: #C61F1F;
  --page-tai-xiu-secondary-color: #E53030;
  --page-tai-xiu-card-bg: #2A1212;
  --page-tai-xiu-text-main: #FFF1E8;
  --page-tai-xiu-border-color: #6A1E1E;
  --page-tai-xiu-gold-color: #F3C54D;
  --page-tai-xiu-deep-red: #7E0D0D;
  --page-tai-xiu-btn-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-tai-xiu {
  font-family: Arial, sans-serif;
  color: var(--page-tai-xiu-text-main); /* Ensure light text on dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-tai-xiu__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for desktop hero */
}

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  margin-top: -80px; /* Overlap slightly for visual flow, but text is below image */
  background: rgba(42, 18, 18, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--page-tai-xiu-gold-color);
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.page-tai-xiu__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--page-tai-xiu-text-main);
  margin-bottom: 25px;
}

.page-tai-xiu__hero-cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-tai-xiu__btn--primary {
  background: var(--page-tai-xiu-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(255, 176, 74, 0.4);
}

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

.page-tai-xiu__btn--secondary {
  background: var(--page-tai-xiu-card-bg);
  color: var(--page-tai-xiu-gold-color);
  border: 2px solid var(--page-tai-xiu-gold-color);
  box-shadow: 0 4px 10px rgba(198, 31, 31, 0.4);
}

.page-tai-xiu__btn--secondary:hover {
  background: var(--page-tai-xiu-gold-color);
  color: var(--page-tai-xiu-card-bg);
  border-color: var(--page-tai-xiu-gold-color);
  transform: translateY(-2px);
}

.page-tai-xiu__btn--gold {
  background: var(--page-tai-xiu-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(255, 176, 74, 0.4);
  padding: 15px 30px;
  font-size: 1.2em;
}

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

.page-tai-xiu__section {
  padding: 50px 0;
  background-color: transparent;
}

.page-tai-xiu__section-title {
  font-size: 2.5em;
  color: var(--page-tai-xiu-gold-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.page-tai-xiu__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-tai-xiu-text-main);
}

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

.page-tai-xiu__figure {
  margin: 30px auto;
  text-align: center;
  max-width: 680px;
}

.page-tai-xiu__figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__figcaption {
  font-size: 0.95em;
  color: #ccc;
  margin-top: 10px;
}

.page-tai-xiu__step-list,
.page-tai-xiu__strategy-list,
.page-tai-xiu__feature-list,
.page-tai-xiu__promo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-tai-xiu__step-item,
.page-tai-xiu__strategy-item,
.page-tai-xiu__feature-item,
.page-tai-xiu__promo-item {
  background: var(--page-tai-xiu-card-bg);
  border: 1px solid var(--page-tai-xiu-border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__step-title,
.page-tai-xiu__strategy-subtitle,
.page-tai-xiu__feature-title,
.page-tai-xiu__promo-title {
  font-size: 1.4em;
  color: var(--page-tai-xiu-gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-tai-xiu__step-item p,
.page-tai-xiu__strategy-item p,
.page-tai-xiu__feature-item p,
.page-tai-xiu__promo-item p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-tai-xiu-text-main);
}

.page-tai-xiu__step-item a {
  color: var(--page-tai-xiu-gold-color);
  text-decoration: underline;
}

.page-tai-xiu__cta-box {
  background: var(--page-tai-xiu-deep-red);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  margin-top: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__cta-box--final {
  margin-bottom: 0;
}

.page-tai-xiu__cta-title {
  font-size: 2em;
  color: var(--page-tai-xiu-gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-tai-xiu__cta-text {
  font-size: 1.1em;
  color: var(--page-tai-xiu-text-main);
  margin-bottom: 25px;
  line-height: 1.6;
}

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

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

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-tai-xiu-gold-color);
  cursor: pointer;
  background: rgba(198, 31, 31, 0.2); /* Slightly lighter background for question */
  list-style: none; /* Hide default marker for details/summary */
}

.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-tai-xiu-text-main);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-answer {
  max-height: 500px; /* Sufficiently large for content */
  padding-top: 10px;
}

/* General link styling */
.page-tai-xiu a {
  color: var(--page-tai-xiu-gold-color);
  text-decoration: none;
}

.page-tai-xiu a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8em, 4.5vw, 2.5em);
  }

  .page-tai-xiu__hero-description {
    font-size: 1em;
  }

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

  .page-tai-xiu__cta-title {
    font-size: 1.8em;
  }

  .page-tai-xiu__btn {
    padding: 10px 20px;
    font-size: 1em;
  }

  .page-tai-xiu__btn--gold {
    padding: 12px 25px;
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  /* Top Section / Hero Section */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 20px;
  }

  .page-tai-xiu__hero-image {
    max-height: 400px; /* Adjust hero image height for mobile */
  }

  .page-tai-xiu__hero-content {
    margin-top: -40px;
    padding: 15px;
    width: calc(100% - 30px); /* Account for padding in article-wrap */
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em) !important;
    margin-bottom: 10px;
  }

  .page-tai-xiu__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-tai-xiu__hero-cta-group {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Buttons and Button Containers */
  .page-tai-xiu__btn,
  .page-tai-xiu__btn--primary,
  .page-tai-xiu__btn--secondary,
  .page-tai-xiu__btn--gold {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important; /* Adjust padding for mobile */
    font-size: 1em !important;
  }
  
  .page-tai-xiu__cta-box .page-tai-xiu__btn--gold {
    padding: 15px 20px !important;
    font-size: 1.1em !important;
  }

  .page-tai-xiu__cta-box,
  .page-tai-xiu__hero-cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  /* Single Column Long Text Container */
  .page-tai-xiu__article-wrap {
    padding: 0 15px !important; /* Adjust padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__section {
    padding: 30px 0;
  }

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

  .page-tai-xiu__text-block {
    font-size: 1em;
    line-height: 1.6;
  }

  /* General Images and Figure */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-tai-xiu__figure {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__figcaption {
    font-size: 0.9em;
  }

  /* Tutorial / FAQ Blocks */
  .page-tai-xiu__step-item,
  .page-tai-xiu__strategy-item,
  .page-tai-xiu__feature-item,
  .page-tai-xiu__promo-item,
  .page-tai-xiu__faq-item {
    padding: 20px;
    margin-bottom: 15px;
  }

  .page-tai-xiu__step-title,
  .page-tai-xiu__strategy-subtitle,
  .page-tai-xiu__feature-title,
  .page-tai-xiu__promo-title,
  .page-tai-xiu__faq-question {
    font-size: 1.1em !important;
    padding: 15px 20px !important;
  }

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

  .page-tai-xiu__cta-title {
    font-size: 1.6em !important;
  }

  .page-tai-xiu__cta-text {
    font-size: 1em;
  }
}