/* Base styles */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

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

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

.page-tai-xiu__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #FFF3E6;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

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

.page-tai-xiu__content-area p,
.page-tai-xiu__content-area li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #FFF3E6;
}

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

.page-tai-xiu__list,
.page-tai-xiu__numbered-list {
  list-style-position: inside;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-tai-xiu__list li,
.page-tai-xiu__numbered-list li {
  margin-bottom: 10px;
  list-style-type: disc;
}

.page-tai-xiu__numbered-list li {
  list-style-type: decimal;
}

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

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

.page-tai-xiu__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6);
  transition: transform 0.3s ease-in-out;
}

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: 20px;
}

.page-tai-xiu__main-title {
  font-size: clamp(38px, 5vw, 60px);
  color: #FFF3E6;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-tai-xiu__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: #FFF3E6;
  margin-bottom: 30px;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

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

.page-tai-xiu__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A;
  border: 2px solid #FFA53A;
}

.page-tai-xiu__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  border-color: #FFA53A;
  transform: translateY(-2px);
}

/* Image Wrappers */
.page-tai-xiu__image-wrapper {
  margin: 30px auto;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-tai-xiu__image-wrapper--small {
  margin: 0 auto 15px auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #17191F;
  border: 2px solid #FFA53A;
  box-shadow: 0 0 15px rgba(255, 165, 58, 0.5);
}

.page-tai-xiu__image-wrapper--small img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* Grid List for Ưu Điểm Nổi Bật */
.page-tai-xiu__grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 0;
  list-style: none;
}

.page-tai-xiu__grid-item {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.3);
}

.page-tai-xiu__item-title {
  font-size: 20px;
  color: #FFA53A;
  margin-bottom: 15px;
  font-weight: 700;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
  background-color: #0D0E12;
  padding: 60px 0;
}

.page-tai-xiu__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C;
  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 25px;
  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(255, 140, 26, 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: 28px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  background: #0D0E12;
  border-radius: 0 0 10px 10px;
}

details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer p {
  color: #FFF3E6;
}

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

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

  .page-tai-xiu__hero-content {
    padding: 15px;
  }

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

  .page-tai-xiu__hero-description {
    font-size: clamp(16px, 2vw, 20px);
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-tai-xiu__grid-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

@media (max-width: 849px) {
  .page-tai-xiu__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    filter: brightness(0.7) !important;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__container {
    padding: 15px;
  }

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

  .page-tai-xiu__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-tai-xiu__sub-title {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-tai-xiu__content-area p,
  .page-tai-xiu__content-area li {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-tai-xiu__hero-section {
    min-height: auto;
    padding-top: 10px; /* 約 10px 頂距 */
  }

  .page-tai-xiu__hero-image {
    max-height: 400px;
  }

  .page-tai-xiu__hero-image img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important; /* 强制 contain */
    aspect-ratio: unset !important; /* 取消 aspect-ratio */
  }

  .page-tai-xiu__hero-content {
    margin-top: 15px;
  }

  .page-tai-xiu__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-tai-xiu__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* 按钮与按钮容器 */
  .page-tai-xiu__cta-buttons,
  .page-tai-xiu__cta-buttons--bottom,
  .page-tai-xiu__cta-buttons--final {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary,
  .page-tai-xiu a[class*="button"],
  .page-tai-xiu a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
  }

  /* 通用图片与容器 */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-tai-xiu__image-wrapper,
  .page-tai-xiu__image-wrapper--small {
    max-width: 100% !important;
    width: auto !important; /* Allow auto width for small images to center */
    box-sizing: border-box !important;
  }

  .page-tai-xiu__image-wrapper--small {
    margin-left: auto;
    margin-right: auto;
  }

  .page-tai-xiu__content-area,
  .page-tai-xiu__text-block,
  .page-tai-xiu__grid-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* 产品展示图区域 (if any, for this page it's grid-list, not products-grid) */
  .page-tai-xiu__grid-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tai-xiu__grid-item {
    padding: 20px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-tai-xiu__section-title-wrap,
  .page-tai-xiu__article-body,
  .page-tai-xiu__article-figure {
    text-align: center;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu__section-title {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.3;
  }

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

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

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

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

@media (max-width: 480px) {
  .page-tai-xiu__main-title {
    font-size: 28px;
  }

  .page-tai-xiu__hero-description {
    font-size: 15px;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
  }

  .page-tai-xiu__section-title {
    font-size: 24px;
  }

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

  .page-tai-xiu__content-area p,
  .page-tai-xiu__content-area li {
    font-size: 15px;
  }

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