/* Page: tai-xiu | BEM prefix: .page-tai-xiu__ */

.page-tai-xiu {
  background: #FFFFFF;
  color: #333333;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* Hero */
.page-tai-xiu__hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px 0;
}

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

.page-tai-xiu__hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.page-tai-xiu__hero-content {
  padding: 20px 8px 24px;
  text-align: center;
}

.page-tai-xiu__main-title {
  color: #017439;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.5px;
  max-width: 800px;
  margin: 0 auto 12px;
}

.page-tai-xiu__hero-description {
  max-width: 760px;
  margin: 0 auto 24px;
  font-size: 1.1rem;
  color: #4A4A4A;
}

.page-tai-xiu__hero-button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Buttons */
.page-tai-xiu__button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 40px;
  background: #017439;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: background .2s ease;
}

.page-tai-xiu__button--login,
.page-tai-xiu__button--register {
  background: #C30808;
  color: #FFFF00;
}

.page-tai-xiu__button--login:hover,
.page-tai-xiu__button--register:hover {
  background: #A00505;
}

.page-tai-xiu__button--secondary {
  background: #FFFFFF;
  color: #017439;
  border-color: #017439;
}

.page-tai-xiu__button--center {
  margin: 0 auto;
}

/* Logo Grid */
.page-tai-xiu__logo-section {
  max-width: 1200px;
  margin: 24px auto 8px;
  padding: 0 16px;
}

.page-tai-xiu__logo-section-title {
  text-align: center;
  color: #017439;
  margin-bottom: 24px;
  font-weight: 700;
}

.page-tai-xiu__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
  justify-items: center;
}

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

.page-tai-xiu__logo-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
}

.page-tai-xiu__logo-cta {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 30px;
  background: #017439;
  color: #FFFFFF;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
}

.page-tai-xiu__logo-cta:hover {
  background: #015d2e;
}

.page-tai-xiu__logo-cta {
  width: 100%;
  max-width: 160px;
  text-align: center;
  box-sizing: border-box;
}

/* 4+2 layout */
.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 {
  background: #F8F9FA;
  margin-top: 32px;
}

.page-tai-xiu__guide-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

.page-tai-xiu__guide-title {
  color: #017439;
  text-align: center;
  margin-bottom: 24px;
  font-weight: 700;
}

.page-tai-xiu__guide-list {
  margin: 0 0 24px;
  padding-left: 20px;
}

.page-tai-xiu__guide-item {
  margin-bottom: 8px;
}

.page-tai-xiu__guide-figure {
  margin: 24px 0;
  width: 100%;
}

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

.page-tai-xiu__guide-text {
  margin: 16px 0;
  text-align: justify;
}

.page-tai-xiu__guide-register-box {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin: 32px 0;
}

.page-tai-xiu__guide-subtitle {
  color: #017439;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.page-tai-xiu__guide-callout {
  max-width: 720px;
  margin: 0 auto 20px;
  font-weight: 500;
}

.page-tai-xiu__cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-image {
    aspect-ratio: 17 / 5;
  }

  .page-tai-xiu__logo-grid {
    gap: 20px 12px;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding: 10px 10px 0;
  }

  .page-tai-xiu__hero-image {
    aspect-ratio: 2 / 1;
    border-radius: 6px;
  }

  .page-tai-xiu__hero-content {
    padding: 16px 4px 20px;
  }

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

  .page-tai-xiu__button {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
  }

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

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

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

  .page-tai-xiu__guide-inner {
    padding: 24px 12px 40px;
  }

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

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

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

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

  .page-tai-xiu__cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .page-tai-xiu {
    max-width: 100%;
    overflow-x: hidden;
  }
}