/* tai-xiu.css - Red Gold theme for game tai xiu page */
.page-tai-xiu {
  background-color: #140C0C;
  color: #FFF1E8;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== Hero Section ===== */
.page-tai-xiu__hero-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 12px;
  background: transparent;
}

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

.page-tai-xiu__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  object-fit: cover;
}

.page-tai-xiu__hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 20px auto 0;
  padding: 0 20px 20px;
  text-align: center;
}

.page-tai-xiu__hero-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.5px;
  color: #F3C54D;
  max-width: 900px;
  margin: 0 auto 10px;
}

.page-tai-xiu__hero-description {
  color: #FFF1E8;
  max-width: 800px;
  margin: 0 auto 20px;
}

.page-tai-xiu__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
}

/* ===== Common Buttons ===== */
.page-tai-xiu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  cursor: pointer;
}

.page-tai-xiu__btn--primary {
  background: linear-gradient(180deg, #FFB04A 0%, #7E0D0D 100%);
  color: #FFF1E8;
}

.page-tai-xiu__btn--gold {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  border-color: #F3C54D;
}

.page-tai-xiu__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 197, 77, 0.3);
}

/* ===== Sections Common ===== */
.page-tai-xiu__section-title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: #F3C54D;
  text-align: center;
  margin-bottom: 30px;
}

/* ===== Why Section (Cards) ===== */
.page-tai-xiu__why-section,
.page-tai-xiu__related-blog-section {
  padding: 40px 16px;
  background-color: #140C0C;
}

.page-tai-xiu__why-container,
.page-tai-xiu__related-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.page-tai-xiu__why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.page-tai-xiu__why-card {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.page-tai-xiu__why-image,
.page-tai-xiu__how-image,
.page-tai-xiu__related-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #6A1E1E;
}

.page-tai-xiu__why-title {
  font-size: 1.35rem;
  color: #F3C54D;
  margin: 16px 0 8px;
}

.page-tai-xiu__why-text {
  color: #FFF1E8;
}

/* ===== How To (Guide) Section ===== */
.page-tai-xiu__how-section {
  padding: 40px 16px;
  background-color: #2A1212;
  border-top: 2px solid #6A1E1E;
  border-bottom: 2px solid #6A1E1E;
}

.page-tai-xiu__how-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.page-tai-xiu__how-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.page-tai-xiu__how-image-wrap {
  flex: 1 1 350px;
  min-width: 280px;
}

.page-tai-xiu__how-content {
  flex: 1 1 380px;
}

.page-tai-xiu__how-title {
  font-size: 1.4rem;
  color: #F3C54D;
  margin: 0 0 10px;
}

.page-tai-xiu__how-text {
  margin: 0 0 15px;
  color: #FFF1E8;
}

.page-tai-xiu__link,
.page-tai-xiu__related-link {
  color: #F3C54D;
  text-decoration: underline;
}

/* ===== CTA Section ===== */
.page-tai-xiu__cta-section {
  padding: 40px 16px;
}

.page-tai-xiu__cta-banner {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(135deg, #7E0D0D, #2A1212);
  border: 2px solid #F3C54D;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
}

.page-tai-xiu__cta-title {
  color: #F3C54D;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.page-tai-xiu__cta-text {
  color: #FFF1E8;
  margin-bottom: 24px;
}

.page-tai-xiu__cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
}

/* ===== FAQ Section ===== */
.page-tai-xiu__faq-section {
  padding: 40px 16px;
  background-color: #140C0C;
}

.page-tai-xiu__faq-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.page-tai-xiu__faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-tai-xiu__faq-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
}

.page-tai-xiu__faq-question {
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #FFF1E8;
  list-style: none;
  font-size: 1.05rem;
}

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

.page-tai-xiu__faq-icon {
  color: #F3C54D;
  font-size: 24px;
  margin-right: 12px;
  font-weight: bold;
}

.page-tai-xiu__faq-answer {
  padding: 0 20px 18px 45px;
  color: #FFF1E8;
}

/* ===== Related Blog Cards ===== */
.page-tai-xiu__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.page-tai-xiu__related-card {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.page-tai-xiu__related-title {
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 12px 0 8px;
}

.page-tai-xiu__related-excerpt {
  color: #FFF1E8;
  font-size: 0.95rem;
  margin: 0;
}

.page-tai-xiu__related-all {
  text-align: center;
  margin-top: 35px;
}

.page-tai-xiu__related-all .page-tai-xiu__btn {
  display: inline-flex;
}


/* ===== Responsive (1024px) ===== */
@media (max-width: 1024px) {
  .page-tai-xiu__why-grid {
    gap: 18px;
  }

  .page-tai-xiu__how-row {
    gap: 20px;
  }

  .page-tai-xiu__how-image-wrap {
    flex-basis: 280px;
  }
}

/* ===== Responsive (768px) ===== */
@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-top: 8px;
  }

  .page-tai-xiu__hero-image {
    aspect-ratio: 2/1;
  }

  .page-tai-xiu__hero-content {
    padding-left: 12px;
    padding-right: 12px;
    margin-top: 15px;
  }

  .page-tai-xiu__hero-actions,
  .page-tai-xiu__cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .page-tai-xiu__btn {
    width: 100%;
    max-width: 100%;
    padding: 12px 20px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    display: flex;
    min-width: 0;
  }

  .page-tai-xiu__why-grid,
  .page-tai-xiu__related-grid {
    grid-template-columns: 1fr;
  }

  .page-tai-xiu__why-card {
    padding: 15px;
  }

  .page-tai-xiu__why-image {
    aspect-ratio: 2/1;
  }

  .page-tai-xiu__how-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-tai-xiu__how-image-wrap,
  .page-tai-xiu__how-content {
    flex: 1 1 100%;
  }

  .page-tai-xiu__how-image {
    aspect-ratio: 2/1;
  }

  .page-tai-xiu__cta-banner {
    padding: 30px 20px;
  }

  .page-tai-xiu__cta-actions {
    gap: 12px;
  }

  .page-tai-xiu__faq-question {
    padding: 14px 14px;
    font-size: 1rem;
  }

  .page-tai-xiu__faq-answer {
    padding: 0 14px 14px 38px;
    font-size: 0.95rem;
  }

  .page-tai-xiu__related-card {
    padding: 14px;
  }

  .page-tai-xiu__related-image {
    aspect-ratio: 2/1;
  }

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

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

  .page-tai-xiu__why-section,
  .page-tai-xiu__how-section,
  .page-tai-xiu__cta-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__related-blog-section {
    padding-left: 12px;
    padding-right: 12px;
  }
}