/* style/tai-xiu.css */
.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Body Background */
}

.page-tai-xiu__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-tai-xiu__section-title {
  font-size: 2.5em;
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding as shared.css handles body padding */
  padding-bottom: 60px;
  background-color: #0D0E12;
}

.page-tai-xiu__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 16px;
}

.page-tai-xiu__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-tai-xiu__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 */
  color: #FFF3E6;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 600px;
}

.page-tai-xiu__hero-description {
  font-size: 1.1em;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 600px;
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-tai-xiu__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-tai-xiu__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 0 15px #FFB04D;
}

.page-tai-xiu__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A;
  border: 2px solid #A84F0C;
}

.page-tai-xiu__btn-secondary:hover {
  background: #FF8C1A;
  color: #ffffff;
  border-color: #FF8C1A;
  box-shadow: 0 0 15px #FFB04D;
}

.page-tai-xiu__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-tai-xiu__hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.page-tai-xiu__intro-section,
.page-tai-xiu__guide-section,
.page-tai-xiu__strategy-section,
.page-tai-xiu__promo-section,
.page-tai-xiu__faq-section,
.page-tai-xiu__cta-bottom-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

.page-tai-xiu__intro-section p,
.page-tai-xiu__guide-section p,
.page-tai-xiu__strategy-section p,
.page-tai-xiu__promo-section p,
.page-tai-xiu__faq-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF3E6;
}

.page-tai-xiu__feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.page-tai-xiu__feature-item {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 280px;
  box-sizing: border-box;
}

.page-tai-xiu__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #A84F0C;
}

.page-tai-xiu__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-tai-xiu__feature-title {
  font-size: 1.5em;
  color: #FF8C1A;
  margin-bottom: 10px;
}

.page-tai-xiu__feature-description {
  font-size: 0.95em;
  color: #FFF3E6;
  margin: 0;
}

.page-tai-xiu__guide-step {
  background-color: #17191F;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-tai-xiu__guide-step:last-of-type {
  margin-bottom: 0;
}

.page-tai-xiu__guide-title {
  font-size: 1.8em;
  color: #FFA53A;
  margin-bottom: 20px;
}

.page-tai-xiu__guide-step p {
  text-align: left;
  max-width: 900px;
  margin: 0 auto 20px;
  color: #FFF3E6;
}

.page-tai-xiu__guide-step img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tai-xiu__strategy-card {
  background-color: #17191F;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__strategy-title {
  font-size: 1.4em;
  color: #FF8C1A;
  margin-bottom: 15px;
}

.page-tai-xiu__strategy-card p {
  text-align: left;
  margin: 0;
  color: #FFF3E6;
}

.page-tai-xiu__final-strategy-tip {
  font-style: italic;
  margin-top: 40px;
  text-align: center;
  color: #FFF3E6;
}

.page-tai-xiu__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tai-xiu__promo-card {
  background-color: #17191F;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__promo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__promo-title {
  font-size: 1.4em;
  color: #FF8C1A;
  margin-bottom: 10px;
}

.page-tai-xiu__promo-description {
  font-size: 0.95em;
  color: #FFF3E6;
  margin-bottom: 20px;
}

.page-tai-xiu__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__faq-item {
  background-color: #17191F;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #A84F0C;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: #FFF3E6;
  list-style: none;
}

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

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  color: #FF8C1A;
  margin-left: 15px;
}

.page-tai-xiu__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #FFF3E6;
  line-height: 1.7;
}

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

.page-tai-xiu__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
  background-color: #17191F; /* Card BG */
}

.page-tai-xiu__cta-bottom-section p {
  max-width: 700px;
  margin: 0 auto 30px;
  color: #FFF3E6;
}

/* General image styling for content areas */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 40px 16px;
  }
  .page-tai-xiu__hero-content,
  .page-tai-xiu__hero-image {
    flex: 1 1 100%;
  }
  .page-tai-xiu__main-title,
  .page-tai-xiu__hero-description {
    max-width: 100%;
  }
  .page-tai-xiu__cta-buttons {
    justify-content: center;
  }
  .page-tai-xiu__feature-item {
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
  .page-tai-xiu__strategy-grid,
  .page-tai-xiu__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-tai-xiu__section-title {
    font-size: 2em;
  }
  .page-tai-xiu__guide-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }
  .page-tai-xiu__hero-container {
    padding: 30px 15px;
    gap: 30px;
  }
  .page-tai-xiu__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-tai-xiu__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to container */
  }

  /* Buttons */
  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary,
  .page-tai-xiu a[class*="button"],
  .page-tai-xiu a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  
  /* Module 1 - Feature Grid (Round Images) */
  .page-tai-xiu__feature-grid {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }
  .page-tai-xiu__feature-item {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 25px;
  }
  .page-tai-xiu__icon-box-media {
    width: 180px;
    height: 180px;
    margin-bottom: 15px;
    border-width: 3px;
  }

  /* Generic Game Tabs Section (placeholder for checklist) */
  .page-tai-xiu__game-tabs {
    padding: 40px 15px;
  }
  .page-tai-xiu__tab-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .page-tai-xiu__tab-nav button {
    flex: 1 1 auto;
    min-width: unset;
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .page-tai-xiu__game-panel {
    padding: 20px 0;
  }

  /* Content sections (Guide, Strategy, Promo, FAQ, CTA Bottom) */
  .page-tai-xiu__intro-section,
  .page-tai-xiu__guide-section,
  .page-tai-xiu__strategy-section,
  .page-tai-xiu__promo-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__cta-bottom-section {
    padding: 40px 0;
  }
  .page-tai-xiu__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tai-xiu__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-tai-xiu__intro-section p,
  .page-tai-xiu__guide-section p,
  .page-tai-xiu__strategy-section p,
  .page-tai-xiu__promo-section p,
  .page-tai-xiu__faq-section p {
    margin-bottom: 20px;
    font-size: 0.95em;
  }

  /* General Images */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Guide Section */
  .page-tai-xiu__guide-step {
    padding: 30px;
    margin-bottom: 20px;
  }
  .page-tai-xiu__guide-title {
    font-size: 1.4em;
    margin-bottom: 15px;
  }

  /* Strategy Section */
  .page-tai-xiu__strategy-grid {
    gap: 20px;
  }
  .page-tai-xiu__strategy-card {
    padding: 25px;
  }
  .page-tai-xiu__strategy-title {
    font-size: 1.2em;
  }

  /* Promo Section */
  .page-tai-xiu__promo-grid {
    gap: 20px;
  }
  .page-tai-xiu__promo-card {
    padding: 15px;
  }
  .page-tai-xiu__promo-title {
    font-size: 1.2em;
  }

  /* FAQ Section */
  .page-tai-xiu__faq-list {
    margin-top: 30px;
  }
  .page-tai-xiu__faq-item {
    margin-bottom: 10px;
  }
  .page-tai-xiu__faq-question {
    padding: 15px;
    font-size: 1em;
  }
  .page-tai-xiu__faq-toggle {
    font-size: 1.2em;
  }
  .page-tai-xiu__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95em;
  }

  /* CTA Bottom Section */
  .page-tai-xiu__cta-bottom-section {
    padding: 60px 0;
  }
}