.page-tai-xiu {
  max-width: 100%;
  margin: 0 auto;
  color: #333333;
  font-family: 'Arial', sans-serif;
  overflow-x: hidden;
}

/* Hero Section */
.page-tai-xiu__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px 30px;
  background: linear-gradient(to bottom, #017439 0%, #017439 30%, #ffffff 100%);
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-width: 1020px;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 5;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-tai-xiu__hero-content {
  width: 100%;
  max-width: 1020px;
  text-align: center;
  padding-top: 20px;
}

.page-tai-xiu__hero-title {
  color: #017439;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
  max-width: 800px;
  margin: 0 auto 12px;
}

.page-tai-xiu__hero-subtitle {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto 22px;
}

.page-tai-xiu__hero-actions {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-tai-xiu__btn-register {
  display: inline-block;
  background: #C30808;
  color: #FFFF00;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(195, 8, 8, 0.35);
  transition: transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-tai-xiu__btn-register:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(195, 8, 8, 0.4);
}

/* Logo Section (4+2 grid) */
.page-tai-xiu__logo-section {
  padding: 30px 16px;
  background: #f7faf8;
}

.page-tai-xiu__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.page-tai-xiu__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 240px;
  width: 100%;
  text-align: center;
}

.page-tai-xiu__logo-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.page-tai-xiu__logo-link {
  color: #017439;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.page-tai-xiu__logo-link:hover {
  color: #C30808;
  text-decoration: underline;
}

/* 5th & 6th items positioned in row 2 */
.page-tai-xiu__logo-item:nth-child(5) {
  grid-column: 2;
}

.page-tai-xiu__logo-item:nth-child(6) {
  grid-column: 3;
}

/* Guide Section */
.page-tai-xiu__guide-section {
  padding: 20px 16px 50px;
  background: #ffffff;
}

.page-tai-xiu__guide-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.page-tai-xiu__guide-title {
  text-align: center;
  color: #017439;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.page-tai-xiu__guide-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 22px;
}

.page-tai-xiu__guide-figure {
  margin: 0 0 30px;
  text-align: center;
}

.page-tai-xiu__guide-figure img {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.page-tai-xiu__guide-figure figcaption {
  font-size: 0.9rem;
  color: #666;
  padding-top: 8px;
  font-style: italic;
}

.page-tai-xiu__guide-steps {
  display: grid;
  gap: 28px;
  margin: 20px 0 25px;
}

.page-tai-xiu__guide-step {
  background: #f7faf8;
  border-left: 6px solid #017439;
  padding: 18px 22px;
  border-radius: 8px;
  transition: box-shadow 0.3s;
}

.page-tai-xiu__guide-step:hover {
  box-shadow: 0 5px 15px rgba(1, 116, 57, 0.15);
}

.page-tai-xiu__guide-step-title {
  color: #017439;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.page-tai-xiu__guide-step p {
  color: #555;
  line-height: 1.7;
}

.page-tai-xiu__guide-callout {
  background: linear-gradient(135deg, #017439 0%, #014d28 100%);
  color: #ffffff;
  padding: 25px 22px;
  border-radius: 10px;
  text-align: center;
  margin: 30px 0;
}

.page-tai-xiu__guide-callout h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.page-tai-xiu__guide-callout p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto 16px;
  opacity: 0.95;
}

.page-tai-xiu__guide-callout .page-tai-xiu__btn-register {
  background: #C30808;
  color: #FFFF00;
}

/* FAQ */
.page-tai-xiu__faq-item {
  background: #f9fbfa;
  border: 1px solid #e0e8e3;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  padding: 0;
}

.page-tai-xiu__faq-question {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  background: #f3f7f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  list-style: none;
  transition: background 0.3s;
}

.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}

.page-tai-xiu__faq-question:hover {
  background: #e5f0ea;
}

.page-tai-xiu__faq-icon {
  color: #017439;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-icon {
  transform: rotate(45deg);
}

.page-tai-xiu__faq-item p {
  padding: 0 20px 18px;
  color: #444;
  line-height: 1.65;
  border-top: 1px solid #e0e8e3;
  padding-top: 14px;
  margin: 0;
}

@media (max-width: 1024px) {
  .page-tai-xiu__logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 20px;
  }
  .page-tai-xiu__logo-item:nth-child(5),
  .page-tai-xiu__logo-item:nth-child(6) {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu {
    overflow-x: hidden;
  }

  .page-tai-xiu__hero-section {
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .page-tai-xiu__hero-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 1;
    border-radius: 6px;
  }

  .page-tai-xiu__hero-content {
    width: 100%;
    max-width: 100%;
  }

  .page-tai-xiu__hero-actions {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .page-tai-xiu__btn-register {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .page-tai-xiu__logo-section {
    padding: 20px 10px;
  }

  .page-tai-xiu__logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 14px;
  }

  .page-tai-xiu__logo-item,
  .page-tai-xiu__logo-item:nth-child(5),
  .page-tai-xiu__logo-item:nth-child(6) {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
  }

  .page-tai-xiu__logo-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu img {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu__guide-section {
    padding: 15px 10px 30px;
  }

  .page-tai-xiu__guide-inner {
    width: 100%;
  }

  .page-tai-xiu__guide-title {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .page-tai-xiu__guide-figure {
    width: 100%;
  }

  .page-tai-xiu__guide-figure img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu__guide-intro,
  .page-tai-xiu__guide-step p {
    font-size: 0.95rem;
  }

  .page-tai-xiu__guide-callout {
    padding: 18px 14px;
  }

  .page-tai-xiu__guide-callout h3 {
    font-size: 1.05rem;
  }
}