.page-tai-xiu {
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

.page-tai-xiu__dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-tai-xiu__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-tai-xiu__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFD36B;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-tai-xiu__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.page-tai-xiu__note-text {
  font-size: 15px;
  color: #AAA;
  margin-top: 30px;
  text-align: center;
}

.page-tai-xiu__note-text a {
  color: #F2C14E;
  text-decoration: underline;
}

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Rely on body padding-top from shared.css */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-tai-xiu__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 1;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px; /* Limit height to maintain aspect ratio */
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.page-tai-xiu__hero-content {
  order: 2;
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -200px; /* Pull content up to overlap image slightly for visual effect, but not text on image */
  background: rgba(10, 10, 10, 0.7);
  border-radius: 10px;
  border: 1px solid #3A2A12;
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.3);
}

.page-tai-xiu__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #FFD36B;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-tai-xiu__intro-text {
  font-size: 18px;
  color: #FFF6D6;
  margin-bottom: 30px;
  line-height: 1.7;
}

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

.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;
  min-width: 200px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  filter: brightness(1.1);
}

.page-tai-xiu__btn-secondary {
  background: #111111;
  color: #FFD36B;
  border: 2px solid #FFD36B;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
  transform: translateY(-3px);
  background: #222222;
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

.page-tai-xiu__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #3A2A12;
}

.page-tai-xiu__list {
  list-style: none;
  padding: 0;
  margin: 20px auto 30px;
  max-width: 800px;
  text-align: left;
}

.page-tai-xiu__list-item {
  background: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  font-size: 17px;
  color: #FFF6D6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
}

.page-tai-xiu__list-item strong {
  color: #FFD36B;
  margin-right: 8px;
  font-weight: 700;
}

.page-tai-xiu__numbered-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin: 20px auto 30px;
  max-width: 900px;
  text-align: left;
}

.page-tai-xiu__numbered-list .page-tai-xiu__list-item {
  counter-increment: step-counter;
  position: relative;
  padding-left: 50px;
}

.page-tai-xiu__numbered-list .page-tai-xiu__list-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: #F2C14E;
  color: #111111;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.page-tai-xiu__grid-three-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-tai-xiu__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
  text-align: left;
}

.page-tai-xiu__card {
  background: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  color: #FFF6D6;
}

.page-tai-xiu__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-tai-xiu__card-text {
  font-size: 16px;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
  text-align: justify;
}

.page-tai-xiu__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #3A2A12;
}

.page-tai-xiu__promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tai-xiu__promotion-cards .page-tai-xiu__card {
  text-align: left;
}

/* FAQ Styles */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12;
  overflow: hidden;
  background: #111111;
  color: #FFF6D6;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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: #1A1A1A;
}

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

.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B;
  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: #0A0A0A;
  border-top: 1px solid #3A2A12;
  border-radius: 0 0 5px 5px;
}

details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #AAA;
  text-align: justify;
}

details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer p a {
  color: #F2C14E;
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-content {
    margin-top: -150px;
  }
  .page-tai-xiu__section-title {
    font-size: 32px;
  }
  .page-tai-xiu__card-title {
    font-size: 20px;
  }
  .page-tai-xiu__grid-two-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-tai-xiu__image-wrapper {
    order: -1;
  }
}

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

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

  .page-tai-xiu__hero-section {
    min-height: 450px;
  }

  .page-tai-xiu__hero-image {
    object-fit: contain !important; /* Ensure image is not cropped */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    max-height: 300px;
  }

  .page-tai-xiu__hero-content {
    padding: 25px 15px;
    margin-top: -100px; /* Adjust overlap for mobile */
  }

  .page-tai-xiu__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust font size for mobile */
    margin-bottom: 15px;
  }

  .page-tai-xiu__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    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 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-tai-xiu__text-block {
    font-size: 16px;
    text-align: left;
  }

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

  .page-tai-xiu__list,
  .page-tai-xiu__numbered-list {
    margin: 15px 0 20px;
  }

  .page-tai-xiu__list-item,
  .page-tai-xiu__numbered-list .page-tai-xiu__list-item {
    font-size: 15px;
    padding: 12px 15px;
    padding-left: 45px;
  }

  .page-tai-xiu__numbered-list .page-tai-xiu__list-item::before {
    width: 25px;
    height: 25px;
    font-size: 14px;
    left: 10px;
  }

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

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

  .page-tai-xiu__card {
    padding: 20px;
  }

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

  .page-tai-xiu__card-text {
    font-size: 15px;
  }

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

  details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question { padding: 15px; }
  .page-tai-xiu__faq-qtext { font-size: 15px; }
  .page-tai-xiu__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
    padding: 0 15px 15px;
  }
}