/* ===== Tai Xiu Page Styles ===== */
.page-tai-xiu {
  color: #333333;
  background-color: #FFFFFF;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.page-tai-xiu__container--wide {
  max-width: 1400px;
  padding-right: 24px;
  padding-left: 24px;
}

.page-tai-xiu__container--narrow {
  max-width: 900px;
}

/* Buttons */
.page-tai-xiu__btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all .3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.2;
  box-sizing: border-box;
}

.page-tai-xiu__btn--primary {
  background: #26A9E0;
  color: #FFFFFF;
}

.page-tai-xiu__btn--primary:hover {
  background: #e07c07;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.page-tai-xiu__btn--secondary {
  background: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-tai-xiu__btn--secondary:hover {
  background: #26A9E0;
  color: #FFFFFF;
}

/* Hero Section */
.page-tai-xiu__hero {
  padding-top: 12px;
  padding-bottom: 40px;
}

.page-tai-xiu__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.page-tai-xiu__hero-content {
  text-align: center;
  max-width: 800px;
  margin: 32px auto 0;
  padding: 0 16px;
}

.page-tai-xiu__hero-title {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #000000;
  margin-bottom: 16px;
}

.page-tai-xiu__hero-description {
  font-size: 1.15rem;
  color: #333333;
  margin-bottom: 24px;
  line-height: 1.75;
}

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

/* Section Titles */
.page-tai-xiu__section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 16px;
  color: #000000;
  line-height: 1.2;
}

.page-tai-xiu__section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
  color: #333333;
}

/* Feature Cards */
.page-tai-xiu__features {
  background: #FFFFFF;
  padding-bottom: 40px;
}

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

.page-tai-xiu__feature-card {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all .3s ease;
  border: 1px solid #e0e0e0;
}

.page-tai-xiu__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 5px 15px rgba(118, 138, 176, 0.9);
}

.page-tai-xiu__feature-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
}

.page-tai-xiu__feature-title {
  font-size: 1.2rem;
  margin: 10px 0 8px;
  color: #2c3e50;
}

.page-tai-xiu__feature-text {
  font-size: 0.95rem;
  color: #333333;
}

.page-tai-xiu__section-cta {
  text-align: center;
  margin-top: 40px;
}

/* Rules */
.page-tai-xiu__rules {
  background: #fafafa;
}

.page-tai-xiu__rules .page-tai-xiu__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-tai-xiu__rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.page-tai-xiu__rule-item {
  background: #FFFFFF;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px;
  transition: border-color .2s ease;
}

.page-tai-xiu__rule-item:hover {
  border-color: #26A9E0;
}

.page-tai-xiu__rule-title {
  color: #0477db;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.page-tai-xiu__guide-note {
  background: #e8f6ff;
  border-radius: 8px;
  padding: 15px 20px;
  color: #2c3e50;
  font-weight: 500;
  border-left: 4px solid #26A9E0;
}

/* Tips Section */
.page-tai-xiu__tips {
  background: #FFFFFF;
}

.page-tai-xiu__tip-list {
  text-align: center;
  padding: 0;
  margin: 0;
}

.page-tai-xiu__tip-item {
  margin-bottom: 40px;
}

.page-tai-xiu__tip-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #0477db;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.page-tai-xiu__tip-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-tai-xiu__tips-cta {
  text-align: center;
}

/* Gameplay Section */
.page-tai-xiu__gameplay {
  background: #f0f8ff;
}

.page-tai-xiu__container--wide {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-tai-xiu__gameplay-image-container {
  flex: 1 1 50%;
  max-width: 50%;
}

.page-tai-xiu__gameplay-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 16px;
}

.page-tai-xiu__gameplay-content {
  flex: 1 1 50%;
  max-width: 50%;
}

.page-tai-xiu__gameplay-content .page-tai-xiu__section-title {
  text-align: left;
  margin-bottom: 24px;
}

.page-tai-xiu__steps {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
}

.page-tai-xiu__step {
  padding-left: 32px;
  margin-bottom: 24px;
  position: relative;
}

.page-tai-xiu__step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #26A9E0;
}

.page-tai-xiu__step-number-title {
  margin-bottom: 6px;
  color: #0477db;
}

.page-tai-xiu__gameplay-content .page-tai-xiu__btn {
  display: inline-block;
}

/* FAQ */
.page-tai-xiu__faq {
  background: #FFFFFF;
}

.page-tai-xiu__faq-item {
  border-bottom: 1px solid #e8e8e8;
}

.page-tai-xiu__faq-item summary {
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 16px;
}

.page-tai-xiu__faq-item[open] summary {
  border-bottom: 1px solid #e8e8e8;
}

.page-tai-xiu__faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  flex: 1;
}

.page-tai-xiu__faq-toggle {
  color: #26A9E0;
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
  font-weight: bold;
}

.page-tai-xiu__faq-content {
  max-width: 300px;
  margin-left: 56px;
  max-width: 800px;
  padding: 16px 0;
  color: #333333;
}

/* Guide content section (Replaces the generic blog grid) */
.page-tai-xiu__guide-section {
  background: #17a2b8;
  padding: 40px 0;
}

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

.page-tai-xiu__guide-title {
  text-align: center;
  color: #ffffff;
  margin-bottom: 32px;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-tai-xiu__guide-grid {
  display: flex;
  justify-content: center;
}

.page-tai-xiu__guide-figure {
  margin: 0;
  max-width: 800px;
  text-align: center;
}

.page-tai-xiu__guide-figure img {
  width: 100%;
  height: auto;
  max-width: 800px;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-tai-xiu__guide-caption {
  margin-top: 12px;
  color: #FFFFFF;
  font-weight: 500;
}

/* Generic Images Inside Content */
.page-tai-xiu img {
  display: block;
  height: auto;
  max-width: 100%;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tai-xiu__feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-tai-xiu__rules-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-tai-xiu__container--wide {
    flex-direction: column;
  }

  .page-tai-xiu__gameplay-image-container,
  .page-tai-xiu__gameplay-content {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-tai-xiu__section-title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .page-tai-xiu__hero {
    padding-top: 8px;
  }

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

  .page-tai-xiu__container {
    padding: 30px 16px;
  }

  .page-tai-xiu__feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-tai-xiu__rule-item {
    padding: 16px;
  }

  .page-tai-xiu__feature-image {
    max-width: 100%;
    height: auto;
  }

  .page-tai-xiu__gameplay-image {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

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

  .page-tai-xiu__tip-content {
    font-size: 1rem;
  }

  .page-tai-xiu__steps {
    padding-left: 20px;
  }

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

  .page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
  }

  .page-tai-xiu__faq-content {
    margin-left: 30px;
  }

  .page-tai-xiu__container--wide {
    padding-right: 16px;
    padding-left: 16px;
    gap: 20px;
  }

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

  .page-tai-xiu__hero-actions,
  .page-tai-xiu__section-cta,
  .page-tai-xiu__tips-cta,
  .page-tai-xiu__gameplay-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .page-tai-xiu__guide-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .page-tai-xiu__guide-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

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

  .page-tai-xiu {
    overflow-x: hidden;
  }
}