/* Base Styles */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.page-tai-xiu__section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFB04D; /* Glow */
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
}

.page-tai-xiu__subsection-title {
  font-size: 26px;
  font-weight: 600;
  color: #FFA53A; /* Auxiliary */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-tai-xiu__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #FFF3E6;
}

.page-tai-xiu__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-tai-xiu__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 17px;
  color: #FFF3E6;
}

.page-tai-xiu__list-item::before {
  content: '▶'; /* Custom bullet */
  position: absolute;
  left: 0;
  color: #FFA53A; /* Auxiliary */
  font-size: 18px;
  line-height: 1;
}

.page-tai-xiu__list--ordered {
  list-style: decimal;
  padding-left: 25px;
}

.page-tai-xiu__list--ordered .page-tai-xiu__list-item::before {
  content: none;
}

.page-tai-xiu__image-content-wrapper {
    margin: 40px auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #A84F0C; /* Border */
}

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

/* Buttons */
.page-tai-xiu__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.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: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #FFF3E6;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
  transform: translateY(-2px);
}

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

.page-tai-xiu__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  box-shadow: 0 0 15px rgba(255, 165, 58, 0.5);
  transform: translateY(-2px);
}

.page-tai-xiu__btn-center {
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  background-color: #0D0E12;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height on desktop */
  overflow: hidden;
  position: relative;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop to fill space */
  display: block;
}

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px 60px;
  background: rgba(13, 14, 18, 0.7);
  border-radius: 0 0 15px 15px;
  margin-top: -80px; /* Overlap image slightly */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-tai-xiu__main-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 176, 77, 0.7);
}

.page-tai-xiu__tagline {
  font-size: clamp(18px, 2vw, 22px);
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark Section */
.page-tai-xiu__dark-section {
    background-color: #17191F; /* Card BG */
    border-top: 1px solid #A84F0C;
    border-bottom: 1px solid #A84F0C;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
  margin-top: 30px;
}

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
}

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;
  color: #FFF3E6;
  font-size: 18px;
  font-weight: 600;
}

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(255, 165, 58, 0.1);
}

.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}

.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  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(255, 165, 58, 0.05);
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
  font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__section-title {
    font-size: 34px;
  }
  .page-tai-xiu__subsection-title {
    font-size: 24px;
  }
  .page-tai-xiu__text-block, .page-tai-xiu__list-item {
    font-size: 16px;
  }
  .page-tai-xiu__hero-content {
    margin-top: -60px;
    padding: 30px 20px 40px;
  }
}

@media (max-width: 849px) {
  .page-tai-xiu__hero-image {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    max-height: 400px; /* Adjust max height for smaller screens */
  }
  .page-tai-xiu__hero-content {
    margin-top: -40px;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-tai-xiu__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-tai-xiu__subsection-title {
    font-size: 22px;
    padding: 0 10px;
  }

  .page-tai-xiu__text-block, .page-tai-xiu__list-item {
    font-size: 15px;
    padding: 0 10px;
  }
  
  .page-tai-xiu__list-item::before {
    left: 10px;
  }

  .page-tai-xiu__list--ordered {
    padding-left: 35px;
  }

  .page-tai-xiu__list--ordered .page-tai-xiu__list-item {
    padding-left: 0;
  }

  /* HERO Section Mobile */
  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Explicit small top padding */
  }
  .page-tai-xiu__hero-image-wrapper {
    max-height: 300px;
  }
  .page-tai-xiu__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  .page-tai-xiu__hero-content {
    margin-top: -30px;
    padding: 25px 15px 35px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-tai-xiu__tagline {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* Buttons Mobile */
  .page-tai-xiu__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 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: 16px;
  }

  /* General Images Mobile */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__image-content-wrapper {
    margin: 30px auto;
    padding: 0 10px;
  }
  
  /* FAQ Mobile */
  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
    padding: 15px;
    font-size: 16px;
  }
  .page-tai-xiu__faq-qtext {
    font-size: 16px;
  }
  .page-tai-xiu__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }
}