/* page: tai-xiu */
.page-tai-xiu {
  color: #333333;
  background: #FFFFFF;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
}

/* Hero Section: ảnh trên, nội dung dưới */
.page-tai-xiu__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px 24px;
  background: linear-gradient(135deg, #fff 0%, #f2faf6 100%);
}
.page-tai-xiu__hero-image {
  width: 100%;
  max-width: 1200px;
}
.page-tai-xiu__hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 17/5;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}
.page-tai-xiu__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 12px 0 0;
  width: 100%;
}
.page-tai-xiu__main-title {
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.2px;
  color: #017439;
  max-width: 720px;
  margin: 0 auto 12px;
}
.page-tai-xiu__hero-desc {
  font-size: 1.02rem;
  color: #222;
  max-width: 680px;
  margin: 0 auto 20px;
}
.page-tai-xiu__hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.page-tai-xiu__btn-register,
.page-tai-xiu__btn-login {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: #FFFFFF;
  background-color: #C30808;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid #C30808;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}
.page-tai-xiu__btn-login {
  background-color: #C30808;
  border-color: #C30808;
}
.page-tai-xiu__btn-register:hover,
.page-tai-xiu__btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(195, 8, 8, 0.3);
}
.page-tai-xiu__btn-register,
.page-tai-xiu__btn-login {
  color: #FFFF00;
}

/* Logo grid 4+2 */
.page-tai-xiu__logo-section {
  padding: 10px 16px;
}
.page-tai-xiu__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 16px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.page-tai-xiu__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}
.page-tai-xiu__logo-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  object-fit: contain;
  border-radius: 8px;
}
.page-tai-xiu__logo-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background-color: #017439;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}
.page-tai-xiu__logo-cta:hover {
  background-color: #015d2e;
}
.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: 10px 0 40px;
}
.page-tai-xiu__guide-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}
.page-tai-xiu__guide-title {
  text-align: center;
  color: #017439;
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.page-tai-xiu__guide-lead {
  font-size: 1.05rem;
  text-align: center;
  color: #333;
  margin-bottom: 24px;
}
.page-tai-xiu__guide-figure {
  text-align: center;
  margin-bottom: 24px;
}
.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-text {
  margin-bottom: 18px;
  color: #222;
}
.page-tai-xiu__guide-subtitle {
  color: #017439;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 28px 0 12px;
}
.page-tai-xiu__guide-steps {
  padding-left: 22px;
  margin-bottom: 24px;
}
.page-tai-xiu__guide-steps li {
  margin-bottom: 8px;
}

/* FAQ details */
.page-tai-xiu__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 12px;
  background: #fafafa;
}
.page-tai-xiu__faq-question {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #017439;
}
.page-tai-xiu__faq-toggle {
  font-size: 1.2rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #017439;
  color: #fff;
  border-radius: 50%;
  flex: 0 0 24px;
  padding-bottom: 2px;
}
.page-tai-xiu__faq-answer {
  padding: 10px 0 6px 32px;
  color: #333;
}

/* Responsive 768px */
@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding: 8px 12px 16px;
  }
  .page-tai-xiu__hero-image img {
    aspect-ratio: 2/1;
    border-radius: 10px;
  }
  .page-tai-xiu__logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
  .page-tai-xiu__logo-item:nth-child(5),
  .page-tai-xiu__logo-item:nth-child(6) {
    grid-column: auto;
  }
  .page-tai-xiu__guide-title {
    font-size: 1.5rem;
  }
  .page-tai-xiu__guide-figure img {
    max-width: 100%;
    height: auto;
  }
  .page-tai-xiu__btn-register,
  .page-tai-xiu__btn-login {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    padding: 12px 24px;
  }
  .page-tai-xiu__hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .page-tai-xiu img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-tai-xiu {
    max-width: 100%;
    overflow-x: hidden;
  }
}