/* style/tai-xiu.css */

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

.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Body background is dark, so text is light */
  background-color: var(--background-color);
}

.page-tai-xiu__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 50px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

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

.page-tai-xiu__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

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

.page-tai-xiu__hero-description {
  font-size: 1.2rem;
  color: var(--text-main-color);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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: var(--btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(255, 176, 74, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 176, 74, 0.6);
}

.page-tai-xiu__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 0 10px rgba(243, 197, 77, 0.3);
}

.page-tai-xiu__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--background-color);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(243, 197, 77, 0.5);
}

.page-tai-xiu__section {
  padding: 60px 0;
  background-color: var(--background-color);
  color: var(--text-main-color);
}

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

.page-tai-xiu__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__section-title--light {
  color: #ffffff;
}

.page-tai-xiu__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-main-color);
}

.page-tai-xiu__text-block--light {
  color: #ffffff;
}

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

.page-tai-xiu__highlight-link {
  color: var(--gold-color);
  text-decoration: underline;
  font-weight: 600;
}

.page-tai-xiu__image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.page-tai-xiu__ordered-list,
.page-tai-xiu__unordered-list {
  list-style-position: inside;
  padding-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main-color);
}

.page-tai-xiu__ordered-list li,
.page-tai-xiu__unordered-list li {
  margin-bottom: 10px;
}

.page-tai-xiu__ordered-list strong {
  color: var(--gold-color);
}

.page-tai-xiu__ordered-list a,
.page-tai-xiu__unordered-list a,
.page-tai-xiu__text-block a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tai-xiu__ordered-list a:hover,
.page-tai-xiu__unordered-list a:hover,
.page-tai-xiu__text-block a:hover {
  color: #ffffff;
}

.page-tai-xiu__grid-3-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-tai-xiu__grid-2-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-tai-xiu__card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
}

.page-tai-xiu__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__card-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-tai-xiu__card-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main-color);
}

.page-tai-xiu__advantage-item {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main-color);
}

.page-tai-xiu__advantage-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__advantage-title {
  font-size: 1.6rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-tai-xiu__advantage-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-main-color);
}

.page-tai-xiu__cta-bottom .page-tai-xiu__container {
  background-color: var(--deep-red-color);
  border-radius: 15px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__cta-bottom .page-tai-xiu__cta-buttons {
  margin-top: 40px;
}

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-background);
  color: var(--text-main-color);
}
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;
}
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(--deep-red-color), 0.2);
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  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: rgba(var(--deep-red-color), 0.1);
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer p {
  margin: 0;
  line-height: 1.7;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-image {
    height: 500px;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-tai-xiu__hero-description {
    font-size: 1.1rem;
  }
  .page-tai-xiu__section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
  }
  .page-tai-xiu__grid-2-columns {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 849px) {
  .page-tai-xiu__hero-image img {
    object-fit: contain !important; /* HERO main image mobile: contain */
    aspect-ratio: unset !important;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 30px;
  }
  .page-tai-xiu__hero-image {
    height: 300px;
    margin-bottom: 20px;
  }
  .page-tai-xiu__hero-content {
    padding: 0 15px;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-tai-xiu__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-tai-xiu__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    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;
  }
  .page-tai-xiu__hero-buttons,
  .page-tai-xiu__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }
  .page-tai-xiu__section {
    padding: 40px 0;
  }
  .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, 6vw, 2rem);
    margin-bottom: 30px;
  }
  .page-tai-xiu__text-block {
    font-size: 1rem;
    text-align: left;
  }
  .page-tai-xiu__image-wrapper {
    margin: 30px auto;
  }
  .page-tai-xiu__ordered-list,
  .page-tai-xiu__unordered-list {
    font-size: 1rem;
    padding-left: 15px;
  }
  .page-tai-xiu__grid-3-columns,
  .page-tai-xiu__grid-2-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tai-xiu__card,
  .page-tai-xiu__advantage-item {
    padding: 20px;
  }
  .page-tai-xiu__card-title {
    font-size: 1.3rem;
  }
  .page-tai-xiu__advantage-title {
    font-size: 1.4rem;
  }
  .page-tai-xiu__advantage-item img {
    max-width: 100%;
  }
  .page-tai-xiu__cta-bottom .page-tai-xiu__container {
    padding: 30px 20px;
  }
  .page-tai-xiu__cta-bottom .page-tai-xiu__cta-buttons {
    margin-top: 30px;
    flex-direction: column;
  }
  /* General image responsive rule for content area */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* FAQ specific mobile styles */
  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question { padding: 15px; }
  .page-tai-xiu__faq-qtext { font-size: 1rem; }
  .page-tai-xiu__faq-toggle { font-size: 20px; width: 24px; height: 24px; margin-left: 10px; }
  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer { padding: 0 15px 15px; }
}