/* tai-xiu.css - Red White Flatsome theme */
.page-tai-xiu {
  padding-top: 0;
  margin-top: 0;
  color: #333333;
  background: #F5F7FA;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}
.page-tai-xiu__container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 16px;
  width:100%;
  box-sizing:border-box;
}
.page-tai-xiu__hero-wrapper {
  background: #FFFFFF;
  padding: 10px 15px 32px;
}
.page-tai-xiu__hero-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 17 / 5;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}
.page-tai-xiu__hero-content {
  text-align: center;
  max-width: 100%;
  margin: 20px auto 0;
}
.page-tai-xiu__main-title {
  color: #E53935;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 750px;
  margin: 0 auto 8px;
  font-size: clamp(1.3125rem, 1rem + 1vw, 2rem); /* fallback size for a thin header */
}
.page-tai-xiu__hero-description {
  max-width: 780px;
  margin: 0 auto 18px;
  color: #333333;
  font-weight: 400;
  font-size: 1rem;
}
.page-tai-xiu__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 0 12px;
  box-sizing: border-box;
}
.page-tai-xiu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  min-width: 160px;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  text-align:center;
}
.page-tai-xiu__btn--primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #FFFFFF;
}
.page-tai-xiu__btn--secondary {
  background: #FFFFFF;
  color: #E53935;
  border: 1px solid #E53935;
}
.page-tai-xiu__trust-logos {
  padding: 30px 15px;
}
.page-tai-xiu__trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
.page-tai-xiu__logo-item {
  background: #FFFFFF;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  width: 100%;
  box-sizing: border-box;
  justify-self: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.page-tai-xiu__logo-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  border-radius: 6px;
}
.page-tai-xiu__logo-cta {
  display: inline-block;
  width: 100%;
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
}
.page-tai-xiu__logo-item:nth-child(5) {
  grid-column: 2;
}
.page-tai-xiu__logo-item:nth-child(6) {
  grid-column: 3;
}
.page-tai-xiu__introduction {
  background: #FFFFFF;
}
.page-tai-xiu__section-title {
  color: #E53935;
  text-align: center;
  margin-bottom: 28px;
  font-size: clamp(1.375rem, 1.2rem + 0.4vw, 1.75rem);
}
.page-tai-xiu__leading-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 26px;
}
.page-tai-xiu__guide-section {
  display: grid;
  gap: 30px;
  max-width: 920px;
  margin: 0 auto;
}
.page-tai-xiu__guide-item {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #F5F7FA;
  padding: 12px;
  border-radius: 16px;
}
.page-tai-xiu__guide-item--reverse {
  flex-direction: row-reverse;
}
.page-tai-xiu__guide-figure {
  flex: 0 1 46%;
}
.page-tai-xiu__guide-figure img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 12px;
  display:block;
}
.page-tai-xiu__guide-content {
  flex: 1;
}
.page-tai-xiu__guide-title {
  margin-top: 0;
  color: #333333;
  font-size: 1.125rem;
}
.page-tai-xiu__guide-content p {
  margin: 0 0 8px;
}
.page-tai-xiu__text-link {
  color: #0477DB;
  text-decoration: underline;
  font-weight: 600;
  word-break: break-word;
}
.page-tai-xiu__benefits {
  background: #FFFFFF;
}
.page-tai-xiu__benefit-list {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.page-tai-xiu__benefit-item {
  background: #F5F7FA;
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 6px solid #E53935;
}
.page-tai-xiu__video-guide {
  background: #F5F7FA;
  border-top: 1px solid #E0E0E0;
}
.page-tai-xiu__video-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 16px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}
.page-tai-xiu__video-container {
  flex: 1 1 500px;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #20232a;
  position: relative;
  min-width: 0;
}
.page-tai-xiu__game-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.page-tai-xiu__video-content {
  flex: 1 1 360px;
}
.page-tai-xiu__play-title {
  color: #E53935;
  margin: 0 0 12px;
  color: #333;
}
.page-tai-xiu__play-title {
  color: #E53935;
  font-size: 1.4rem;
}
@media (max-width: 1024px) {
  .page-tai-xiu__trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .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__trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-tai-xiu__logo-item {
    max-width: 100%;
  }
  .page-tai-xiu__hero-image img {
    aspect-ratio: 2 / 1;
  }
  .page-tai-xiu__guide-item,
  .page-tai-xiu__guide-item--reverse {
    flex-direction: column;
    align-items: stretch;
  }
  .page-tai-xiu__guide-figure {
    flex: auto;
  }
  .page-tai-xiu__guide-content {
    padding: 6px 6px 12px;
  }
  .page-tai-xiu__video-wrapper {
    flex-direction: column;
  }
  .page-tai-xiu .page-tai-xiu__btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    margin-left: 0;
    margin-right: 0;
  }
  .page-tai-xiu .page-tai-xiu__hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding:0;
  }
  .page-tai-xiu .page-tai-xiu__video-container,
  .page-tai-xiu .page-tai-xiu__trust-logos,
  .page-tai-xiu .page-tai-xiu__introduction,
  .page-tai-xiu .page-tai-xiu__hero-wrapper {
    overflow-x: hidden;
  }
  .page-tai-xiu img {
    max-width: 100% !important;
    height: auto !important;
  }
}