/* ===== Trang Tài Xỉu mb661 ===== */
.page-tai-xiu {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #F4F7FB;
  color: #1F2D3D;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

.page-tai-xiu__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- HERO ---- */
.page-tai-xiu__hero-section {
  width: 100%;
  background: linear-gradient(135deg, #F4F7FB 0%, #D6E2FF 100%);
  padding: 10px 16px 40px;
  margin: 0;
}

.page-tai-xiu__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.18);
}

.page-tai-xiu__hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-tai-xiu__hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.page-tai-xiu__hero-title {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: #2F6BFF;
  margin: 0;
  max-width: 900px;
}

.page-tai-xiu__hero-desc {
  color: #1F2D3D;
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0;
}

.page-tai-xiu__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

/* ---- Buttons ---- */
.page-tai-xiu__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  cursor: pointer;
}

.page-tai-xiu__btn--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(47, 107, 255, 0.35);
}

.page-tai-xiu__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.45);
}

.page-tai-xiu__btn--secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-tai-xiu__btn--secondary:hover {
  background: #D6E2FF;
}

/* ---- Banner thumbs ---- */
.page-tai-xiu__banner-section {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

.page-tai-xiu__banner-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.page-tai-xiu__banner-thumbs a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(47, 107, 255, 0.12);
  transition: transform 0.2s ease;
}

.page-tai-xiu__banner-thumbs a:hover {
  transform: translateY(-3px);
}

.page-tai-xiu__thumb-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---- Section chung ---- */
.page-tai-xiu__intro-section,
.page-tai-xiu__rule-section,
.page-tai-xiu__payout-section,
.page-tai-xiu__tip-section,
.page-tai-xiu__variant-section,
.page-tai-xiu__faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
}

.page-tai-xiu__section-title {
  color: #2F6BFF;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 24px;
  line-height: 1.3;
  position: relative;
  padding-bottom: 12px;
}

.page-tai-xiu__section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #2F6BFF, #6FA3FF);
  border-radius: 2px;
}

/* ---- Rule cards ---- */
.page-tai-xiu__rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.page-tai-xiu__rule-card {
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(47, 107, 255, 0.08);
}

.page-tai-xiu__card-title {
  color: #2F6BFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.35;
}

.page-tai-xiu__rule-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #1F2D3D;
}

.page-tai-xiu__rule-list li {
  margin-bottom: 8px;
}

/* ---- Payout table ---- */
.page-tai-xiu__table-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #D6E2FF;
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(47, 107, 255, 0.08);
}

.page-tai-xiu__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.page-tai-xiu__table th {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  padding: 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
}

.page-tai-xiu__table td {
  padding: 14px 16px;
  border-bottom: 1px solid #D6E2FF;
  color: #1F2D3D;
}

.page-tai-xiu__table tbody tr:last-child td {
  border-bottom: none;
}

.page-tai-xiu__table tbody tr:nth-child(even) {
  background: #F4F7FB;
}

.page-tai-xiu__note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: #1F2D3D;
  background: #D6E2FF;
  padding: 12px 16px;
  border-radius: 10px;
}

/* ---- Tips ---- */
.page-tai-xiu__tip-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.page-tai-xiu__tip-item {
  background: #FFFFFF;
  border-left: 5px solid #2F6BFF;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(47, 107, 255, 0.08);
}

/* ---- Variants ---- */
.page-tai-xiu__variant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.page-tai-xiu__variant-card {
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #D6E2FF;
  box-shadow: 0 4px 16px rgba(47, 107, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.page-tai-xiu__variant-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-tai-xiu__variant-card .page-tai-xiu__card-title {
  padding: 20px 20px 0;
}

.page-tai-xiu__variant-card p {
  padding: 0 20px 24px;
  margin: 10px 0 0;
  color: #1F2D3D;
}

/* ---- FAQ ---- */
.page-tai-xiu__faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-tai-xiu__faq-item {
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 12px;
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: #FFFFFF;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1F2D3D;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}

.page-tai-xiu__faq-question::after {
  content: '+';
  color: #2F6BFF;
  font-size: 1.5rem;
  font-weight: 400;
  flex-shrink: 0;
}

.page-tai-xiu__faq-item.is-open .page-tai-xiu__faq-question::after {
  content: '\2212';
}

.page-tai-xiu__faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: #1F2D3D;
}

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

.page-tai-xiu__faq-item.is-open .page-tai-xiu__faq-answer {
  display: block;
}

/* ---- CTA ---- */
.page-tai-xiu__cta-section {
  background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%);
  padding: 56px 16px;
  text-align: center;
  border-radius: 0;
  margin-top: 24px;
}

.page-tai-xiu__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-tai-xiu__cta-title {
  color: #FFFFFF;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.3;
}

.page-tai-xiu__cta-desc {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.page-tai-xiu__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.page-tai-xiu__cta-actions .page-tai-xiu__btn--primary {
  background: #FFFFFF;
  color: #2F6BFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__cta-actions .page-tai-xiu__btn--secondary {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-tai-xiu__cta-actions .page-tai-xiu__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding: 10px 12px 30px;
  }

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

  .page-tai-xiu__hero-desc {
    font-size: 1rem;
  }

  .page-tai-xiu__banner-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .page-tai-xiu__intro-section,
  .page-tai-xiu__rule-section,
  .page-tai-xiu__payout-section,
  .page-tai-xiu__tip-section,
  .page-tai-xiu__variant-section,
  .page-tai-xiu__faq-section {
    padding: 28px 12px;
  }

  .page-tai-xiu__section-title {
    font-size: 1.4rem;
  }

  .page-tai-xiu__rule-grid {
    grid-template-columns: 1fr;
  }

  .page-tai-xiu__tip-list {
    grid-template-columns: 1fr;
  }

  .page-tai-xiu__variant-grid {
    grid-template-columns: 1fr;
  }

  .page-tai-xiu__cta-title {
    font-size: 1.4rem;
  }

  .page-tai-xiu__hero-actions,
  .page-tai-xiu__cta-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

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

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

  .page-tai-xiu__table {
    min-width: 420px;
  }
}