/* Biến màu sắc tùy chỉnh */
:root {
  --page-tai-xiu-primary-color: #C91F17;
  --page-tai-xiu-secondary-color: #E53935;
  --page-tai-xiu-card-bg: #D32F2F;
  --page-tai-xiu-background-color: #B71C1C;
  --page-tai-xiu-text-main-color: #FFF5E1;
  --page-tai-xiu-border-color: #F2B544;
  --page-tai-xiu-glow-color: #FFCC66;
  --page-tai-xiu-gold-color: #F4D34D;
  --page-tai-xiu-deep-red-color: #7A0E0E;
  --page-tai-xiu-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
}

/* Cấu trúc chung của trang */
.page-tai-xiu {
  background-color: var(--page-tai-xiu-background-color);
  color: var(--page-tai-xiu-text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-tai-xiu__dark-section {
  background-color: var(--page-tai-xiu-deep-red-color);
  color: var(--page-tai-xiu-text-main-color);
}

.page-tai-xiu__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Tiêu đề chính và phụ */
.page-tai-xiu__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-tai-xiu-text-main-color);
  line-height: 1.2;
}

.page-tai-xiu__section-title {
  font-size: clamp(2em, 4vw, 3em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-tai-xiu-primary-color);
  line-height: 1.3;
}

.page-tai-xiu__section-title.page-tai-xiu__text-main {
  color: var(--page-tai-xiu-text-main-color);
}

.page-tai-xiu__sub-title {
  font-size: clamp(1.5em, 3vw, 2em);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--page-tai-xiu-secondary-color);
}

.page-tai-xiu__sub-title.page-tai-xiu__text-main {
  color: var(--page-tai-xiu-text-main-color);
}

/* Nút CTA */
.page-tai-xiu__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-tai-xiu__cta-buttons--center {
  justify-content: center;
}

.page-tai-xiu__cta-button,
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-tai-xiu__btn-primary {
  background: var(--page-tai-xiu-button-gradient);
  color: #ffffff;
  border: 2px solid var(--page-tai-xiu-gold-color);
  box-shadow: 0 0 15px var(--page-tai-xiu-glow-color);
}

.page-tai-xiu__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--page-tai-xiu-glow-color);
}

.page-tai-xiu__btn-secondary {
  background: var(--page-tai-xiu-deep-red-color);
  color: var(--page-tai-xiu-text-main-color);
  border: 2px solid var(--page-tai-xiu-border-color);
}

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

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

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

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

.page-tai-xiu__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -150px; /* Pull content slightly over image for visual flow, but not overlapping text */
  background: rgba(var(--page-tai-xiu-deep-red-color-rgb), 0.8);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-tai-xiu__hero-description {
  font-size: 1.2em;
  color: var(--page-tai-xiu-text-main-color);
  margin-bottom: 30px;
}

/* Article Body (for SEO long-form content) */
.page-tai-xiu__article-body {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-tai-xiu__article-body p {
  margin-bottom: 1.2em;
}

.page-tai-xiu__article-body ul,
.page-tai-xiu__article-body ol {
  list-style-position: inside;
  margin-bottom: 1.2em;
  padding-left: 20px;
}

.page-tai-xiu__article-body li {
  margin-bottom: 0.5em;
}

.page-tai-xiu__article-figure {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Lists */
.page-tai-xiu__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-tai-xiu__ordered-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-tai-xiu__list-item {
  margin-bottom: 10px;
  color: #333333;
}

.page-tai-xiu__list-item.page-tai-xiu__text-main {
  color: var(--page-tai-xiu-text-main-color);
}

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

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

@media (max-width: 768px) {
  .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;
  }

  /* HERO 主图区域 */
  .page-tai-xiu__hero-section {
    padding-top: 10px;
  }

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

  .page-tai-xiu__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu__hero-content {
    padding: 20px 15px;
    margin-top: -80px; /* Adjust for smaller screens */
  }

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

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

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

  .page-tai-xiu__cta-button,
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-tai-xiu__section-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 30px;
    padding: 0 10px;
  }

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

  .page-tai-xiu__article-body {
    font-size: 1em;
    line-height: 1.7;
    padding: 0 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__article-figure {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu__list,
  .page-tai-xiu__ordered-list {
    padding-left: 20px;
  }

  .page-tai-xiu__list-item {
    font-size: 0.95em;
  }

  /* 通用图片与容器 */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Section */
  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question { padding: 15px; }
  .page-tai-xiu__faq-qtext { font-size: 15px; }
  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer { padding: 0 15px 15px; }
}