/* Base Styles */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.page-tai-xiu__section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFB04D; /* Glow */
  text-transform: uppercase;
}

.page-tai-xiu__sub-title {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
  color: #FFA53A; /* Auxiliary */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-tai-xiu__lead-text {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 20px auto 30px auto;
  color: #FFF3E6;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body has header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
}

.page-tai-xiu__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-tai-xiu__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  color: #FFF3E6;
}

.page-tai-xiu__main-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFB04D; /* Glow */
  line-height: 1.2;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  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: #FFF3E6; /* Text Main */
  border: none;
}

.page-tai-xiu__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
  background: transparent;
  color: #FFA53A; /* Auxiliary */
  border: 2px solid #FFA53A;
}

.page-tai-xiu__btn-secondary:hover {
  background: #FFA53A;
  color: #0D0E12; /* Background */
}

.page-tai-xiu__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-tai-xiu__cta-center .page-tai-xiu__btn-primary {
  margin-top: 20px;
}

/* Content Area */
.page-tai-xiu__content-area {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #FFF3E6;
}

.page-tai-xiu__content-area p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.page-tai-xiu__content-area a {
  color: #FFA53A;
  text-decoration: none;
}

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

.page-tai-xiu__content-area strong {
  color: #FFB04D;
}

.page-tai-xiu__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-tai-xiu__list li {
  margin-bottom: 8px;
}

.page-tai-xiu__list ul {
  list-style: circle;
  margin-left: 20px;
  margin-top: 5px;
}

/* Grid Content */
.page-tai-xiu__grid-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-tai-xiu__grid-content .page-tai-xiu__text-block {
  background: none;
  padding: 0;
  box-shadow: none;
}

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

/* Card Grid */
.page-tai-xiu__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 0;
  background: none;
  box-shadow: none;
}

.page-tai-xiu__card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
}

.page-tai-xiu__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-tai-xiu__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-tai-xiu__card-description {
  font-size: 15px;
  color: #FFF3E6;
  padding: 0 15px;
}

/* Promo Grid */
.page-tai-xiu__promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 0;
  background: none;
  box-shadow: none;
}

.page-tai-xiu__promo-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 25px;
}

.page-tai-xiu__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-tai-xiu__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-tai-xiu__promo-description {
  font-size: 16px;
  color: #FFF3E6;
  padding: 0 20px;
  margin-bottom: 25px;
}

/* Feature Grid */
.page-tai-xiu__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0;
  background: none;
  box-shadow: none;
  margin-top: 30px;
}

.page-tai-xiu__feature-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFA53A; /* Auxiliary */
  margin-bottom: 10px;
}

.page-tai-xiu__feature-description {
  font-size: 15px;
  color: #FFF3E6;
}

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

details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFB04D; /* Glow */
  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, 176, 77, 0.1);
}

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

.page-tai-xiu__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  background: rgba(23, 25, 31, 0.8); /* Slightly lighter Card BG for contrast */
  border-radius: 0 0 8px 8px;
  color: #FFF3E6;
}

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

/* General Image styles for responsiveness */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-tai-xiu__main-title {
    font-size: clamp(32px, 5vw, 48px);
  }

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

  .page-tai-xiu__container {
    padding: 15px;
  }

  .page-tai-xiu__grid-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-tai-xiu__grid-content .page-tai-xiu__image-block:first-child {
    order: 2;
  }

  .page-tai-xiu__grid-content .page-tai-xiu__text-block:first-child {
    order: 1;
  }

  .page-tai-xiu__promo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 849px) {
  .page-tai-xiu__hero-image img {
    object-fit: contain !important; /* Prevent cropping on smaller screens */
    aspect-ratio: unset !important;
    filter: brightness(0.5);
  }
}

@media (max-width: 768px) {
  /* General mobile container and padding */
  .page-tai-xiu__container,
  .page-tai-xiu__content-area,
  .page-tai-xiu__cta-buttons,
  .page-tai-xiu__promo-grid,
  .page-tai-xiu__card-grid,
  .page-tai-xiu__feature-grid,
  .page-tai-xiu__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-tai-xiu {
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden; /* Ensure no horizontal scroll */
  }

  .page-tai-xiu__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    min-height: 450px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-tai-xiu__lead-text {
    font-size: 16px;
    margin: 15px auto 20px auto;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-tai-xiu__section-title {
    font-size: clamp(24px, 7vw, 30px);
    margin-bottom: 30px;
  }

  .page-tai-xiu__sub-title {
    font-size: clamp(18px, 5vw, 22px);
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-tai-xiu__content-area {
    padding: 20px;
  }

  /* Image responsiveness */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu__grid-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tai-xiu__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tai-xiu__card-image {
    height: 180px;
  }

  .page-tai-xiu__card-title {
    font-size: 20px;
  }

  .page-tai-xiu__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tai-xiu__promo-image {
    height: 180px;
  }

  .page-tai-xiu__promo-title {
    font-size: 20px;
  }

  .page-tai-xiu__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
    padding: 15px 20px;
  }

  .page-tai-xiu__faq-qtext {
    font-size: 16px;
  }

  .page-tai-xiu__faq-toggle {
    font-size: 24px;
    width: 25px;
    margin-left: 10px;
  }

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