/* General styles for .page-tai-xiu */
.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #333333); /* Default text color */
  background-color: var(--bg-color, #F5F7FA); /* Default background color */
  line-height: 1.6;
}

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

.page-tai-xiu__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--main-color, #E53935);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-tai-xiu__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FF5A4F 0%, #E53935 100%);
  border-radius: 2px;
}

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

.page-tai-xiu__section-title--light::after {
  background: #ffffff; /* Or a light gradient */
}

.page-tai-xiu__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-tai-xiu__highlight-text {
  font-weight: bold;
  color: var(--main-color, #E53935);
}

.page-tai-xiu__ordered-list,
.page-tai-xiu__unordered-list {
  margin-bottom: 20px;
  padding-left: 25px;
  color: var(--text-main, #333333);
}

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

.page-tai-xiu__sub-list {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 20px;
  list-style-type: disc;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
}

.page-tai-xiu__btn-secondary {
  background: #ffffff;
  color: var(--main-color, #E53935);
  border: 2px solid var(--main-color, #E53935);
}

.page-tai-xiu__btn-secondary:hover {
  background: var(--main-color, #E53935);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.2);
}

/* Hero Section */
.page-tai-xiu__hero-section {
  position: relative;
  background-color: #000; /* Fallback */
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

.page-tai-xiu__hero-image {
  width: 100%;
  max-height: 700px; /* Limit height */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-tai-xiu__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default cover for desktop */
  aspect-ratio: 16/9; /* Maintain aspect ratio */
}

.page-tai-xiu__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-tai-xiu__main-title {
  font-size: clamp(36px, 5vw, 48px); /* H1 font size with clamp */
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.page-tai-xiu__lead-text {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 700px; /* Limit button group width */
  margin: 0 auto;
}

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

/* Overview Section */
.page-tai-xiu__overview-section {
  padding: 80px 0;
  background-color: var(--bg-color, #F5F7FA);
}

.page-tai-xiu__content-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-tai-xiu__overview-section .page-tai-xiu__text-block {
  flex: 1;
  min-width: 300px;
  max-width: 700px;
}

.page-tai-xiu__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}