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

.page-tai-xiu__content-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-tai-xiu__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #F2C14E; /* Primary */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

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

.page-tai-xiu__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  color: #FFF6D6;
}

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

.page-tai-xiu__list-item {
  margin-bottom: 10px;
  font-size: 17px;
  color: #FFF6D6;
}

.page-tai-xiu__list-item strong {
  color: #F2C14E;
}

/* Buttons */
.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu__btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  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, #FFD86A 0%, #DDA11D 100%); /* Button Gradient */
  color: #111111; /* Dark text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-tai-xiu__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Primary */
  border: 2px solid #F2C14E; /* Primary */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__btn-inline {
  background: #3A2A12; /* Border color for subtle button */
  color: #FFD36B; /* Glow color */
  border: 1px solid #FFD36B;
  padding: 8px 15px;
  font-size: 16px;
  margin-top: 10px;
}

.page-tai-xiu__btn-inline:hover {
  background: #FFD36B;
  color: #111111;
}

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

.page-tai-xiu__cta-center .page-tai-xiu__btn-primary {
  margin: 0 auto;
  min-width: 250px;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  padding-bottom: 60px;
  background-color: #0A0A0A;
}

.page-tai-xiu__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 16px;
  flex-wrap: wrap; /* Ensure responsiveness */
}

.page-tai-xiu__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-tai-xiu__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #F2C14E; /* Primary */
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-tai-xiu__hero-description {
  font-size: 19px;
  color: #FFF6D6;
  margin-bottom: 25px;
}

.page-tai-xiu__hero-image-wrapper {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.page-tai-xiu__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Intro Section */
.page-tai-xiu__intro-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-tai-xiu__feature-item {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
}

.page-tai-xiu__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #FFD36B; /* Glow */
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.6);
}

.page-tai-xiu__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-tai-xiu__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #F2C14E;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-tai-xiu__feature-description {
  font-size: 16px;
  color: #FFF6D6;
}

/* Rules Section */
.page-tai-xiu__rules-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-tai-xiu__image-text-block {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-tai-xiu__content-image {
  flex: 1 1 45%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 280px;
}

.page-tai-xiu__text-content {
  flex: 1 1 50%;
  min-width: 300px;
}

/* Strategy Section */
.page-tai-xiu__strategy-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-tai-xiu__strategy-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

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

.page-tai-xiu__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2C14E;
  padding: 20px 20px 10px;
}

.page-tai-xiu__card-description {
  font-size: 16px;
  color: #FFF6D6;
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* Why Choose Section */
.page-tai-xiu__why-choose-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-tai-xiu__advantages-list {
  list-style-type: '⭐ ';
  padding-left: 20px;
}

.page-tai-xiu__advantages-list .page-tai-xiu__list-item {
  font-size: 18px;
  margin-bottom: 15px;
  color: #FFF6D6;
}

.page-tai-xiu__advantages-list .page-tai-xiu__list-item strong {
  color: #FFD36B;
}

/* Promo Section */
.page-tai-xiu__promo-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-tai-xiu__promo-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

/* Guide Section */
.page-tai-xiu__guide-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-tai-xiu__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-tai-xiu__guide-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__guide-step-title {
  font-size: 24px;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-tai-xiu__guide-step-description {
  font-size: 17px;
  color: #FFF6D6;
  margin-bottom: 15px;
}

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

.page-tai-xiu__faq-list {
  margin-top: 40px;
}

.page-tai-xiu__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 19px;
  font-weight: 600;
  color: #F2C14E;
  cursor: pointer;
  background-color: #1a1a1a;
  list-style: none;
  user-select: none;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
  background-color: #222222;
}

.page-tai-xiu__faq-qtext {
  flex-grow: 1;
}

.page-tai-xiu__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #FFD36B;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  content: '−';
}

.page-tai-xiu__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: #FFF6D6;
  border-top: 1px solid #3A2A12;
}

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

/* Hide default details marker */
.page-tai-xiu__faq-item > summary::-webkit-details-marker {
  display: none;
}
.page-tai-xiu__faq-item > summary::marker {
  display: none;
}

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

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-tai-xiu__content-container,
  .page-tai-xiu__hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* HERO Section */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Force small top padding */
    padding-bottom: 40px;
  }

  .page-tai-xiu__hero-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-tai-xiu__hero-content,
  .page-tai-xiu__hero-image-wrapper {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(30px, 8vw, 42px);
    text-align: center;
  }

  .page-tai-xiu__hero-description {
    font-size: 16px;
    text-align: center;
  }

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

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

  /* Module 1: Intro Section (round images) */
  .page-tai-xiu__icon-box-media {
    width: 200px;
    height: 200px;
    border-width: 3px;
  }
  .page-tai-xiu__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Rules Section */
  .page-tai-xiu__image-text-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-tai-xiu__content-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-tai-xiu__text-content {
    flex: 1 1 100%;
    min-width: unset;
  }

  /* Strategy Section */
  .page-tai-xiu__strategy-grid {
    grid-template-columns: 1fr;
  }

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

  /* Promo Section */
  .page-tai-xiu__promo-grid {
    grid-template-columns: 1fr;
  }

  /* Guide Section */
  .page-tai-xiu__guide-item {
    padding: 20px;
  }

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

  /* FAQ Section */
  .page-tai-xiu__faq-question {
    font-size: 17px;
    padding: 15px 20px;
  }

  .page-tai-xiu__faq-answer {
    font-size: 15px;
    padding: 10px 20px 15px;
  }

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

  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container,
  .page-tai-xiu__cta-buttons,
  .page-tai-xiu__button-group,
  .page-tai-xiu__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure buttons allow text wrap */
  .page-tai-xiu__cta-button,
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary,
  .page-tai-xiu a[class*="button"],
  .page-tai-xiu a[class*="btn"] {
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}