/* style/tai-xiu.css */

:root {
  --page-primary-color: #26A9E0;
  --page-secondary-color: #FFFFFF;
  --page-text-color: #333333;
  --page-dark-text-color: #000000;
  --page-light-text-color: #FFFFFF;
  --page-login-color: #EA7C07;
  --page-background-color: #FFFFFF;
}

.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-text-color);
  background-color: var(--page-background-color);
}

.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;
  font-weight: bold;
  color: var(--page-dark-text-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tai-xiu__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
  background-color: var(--page-primary-color);
  color: var(--page-light-text-color);
  border: 2px solid var(--page-primary-color);
}

.page-tai-xiu__btn-primary:hover {
  background-color: darken(var(--page-primary-color), 10%);
  border-color: darken(var(--page-primary-color), 10%);
}

.page-tai-xiu__btn-secondary {
  background-color: transparent;
  color: var(--page-primary-color);
  border: 2px solid var(--page-primary-color);
}

.page-tai-xiu__btn-secondary:hover {
  background-color: var(--page-primary-color);
  color: var(--page-light-text-color);
}

/* Hero Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Minimal top padding, rely on body for header offset */
  padding-bottom: 60px;
  background-color: var(--page-background-color);
}

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

.page-tai-xiu__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
  color: var(--page-dark-text-color);
}

.page-tai-xiu__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 font size */
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-primary-color);
}

.page-tai-xiu__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: var(--page-text-color);
}

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

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

.page-tai-xiu__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Intro Features Section (Module 1 equivalent) */
.page-tai-xiu__intro-features-section {
  padding: 80px 0;
  background-color: var(--page-background-color);
}

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

.page-tai-xiu__feature-item {
  text-align: center;
  padding: 25px;
  background-color: var(--page-secondary-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-tai-xiu__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--page-primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-tai-xiu__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--page-primary-color);
  margin-bottom: 15px;
}

.page-tai-xiu__feature-description {
  font-size: 1em;
  color: var(--page-text-color);
}

/* Guide Section */
.page-tai-xiu__guide-section {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.page-tai-xiu__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-tai-xiu__guide-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 60px;
  background-color: var(--page-secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__guide-item:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image/text direction */
}

.page-tai-xiu__guide-image {
  flex: 1 1 45%;
  max-width: 45%;
  height: auto;
  border-radius: 8px;
  margin: 0 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__guide-item:nth-child(even) .page-tai-xiu__guide-image {
  margin: 0 20px 0 0; /* Adjust margin for reversed order */
}

.page-tai-xiu__guide-item:nth-child(odd) .page-tai-xiu__guide-image {
  margin: 0 0 0 20px; /* Adjust margin for normal order */
}

.page-tai-xiu__guide-item > div {
  flex: 1 1 50%;
}

.page-tai-xiu__guide-step-title {
  font-size: 1.8em;
  color: var(--page-primary-color);
  margin-bottom: 15px;
}

.page-tai-xiu__guide-item p {
  font-size: 1em;
  color: var(--page-text-color);
}

.page-tai-xiu__guide-item a {
  color: var(--page-primary-color);
  text-decoration: underline;
}

/* Tips Section */
.page-tai-xiu__tips-section {
  padding: 80px 0;
  background-color: var(--page-primary-color);
  color: var(--page-light-text-color);
}

.page-tai-xiu__tips-section .page-tai-xiu__section-title,
.page-tai-xiu__tips-section .page-tai-xiu__section-description {
  color: var(--page-light-text-color);
}

.page-tai-xiu__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 20px;
}

.page-tai-xiu__tips-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.5;
  color: var(--page-light-text-color);
}

.page-tai-xiu__tips-item strong {
  color: var(--page-secondary-color);
}

.page-tai-xiu__cta-buttons--center {
  justify-content: center;
  margin-top: 40px;
}

/* Advantages Section */
.page-tai-xiu__advantages-section {
  padding: 80px 0;
  background-color: var(--page-background-color);
}

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

.page-tai-xiu__advantage-item {
  background-color: var(--page-secondary-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-tai-xiu__advantage-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--page-primary-color);
  margin-bottom: 15px;
}

.page-tai-xiu__advantage-item p {
  font-size: 1em;
  color: var(--page-text-color);
}

/* FAQ Section */
.page-tai-xiu__faq-section {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.page-tai-xiu__faq-list {
  margin-top: 40px;
}

.page-tai-xiu__faq-item {
  background-color: var(--page-secondary-color);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--page-dark-text-color);
  cursor: pointer;
  list-style: none; /* For details/summary */
  user-select: none;
}

.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-tai-xiu__faq-question::marker {
  display: none; /* Hide default marker */
}

.page-tai-xiu__faq-qtext {
  flex-grow: 1;
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--page-primary-color);
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--page-text-color);
  line-height: 1.6;
}

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

.page-tai-xiu__faq-answer a {
  color: var(--page-primary-color);
  text-decoration: underline;
}

/* Bottom CTA Section */
.page-tai-xiu__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--page-primary-color);
  color: var(--page-light-text-color);
  text-align: center;
}

.page-tai-xiu__cta-bottom-section .page-tai-xiu__section-title,
.page-tai-xiu__cta-bottom-section .page-tai-xiu__section-description {
  color: var(--page-light-text-color);
}

.page-tai-xiu__cta-bottom-container {
  max-width: 900px;
}

/* General Image Styling */
.page-tai-xiu img:not(.page-tai-xiu__icon-box-media 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;
  }

  .page-tai-xiu__hero-content {
    text-align: center;
  }

  .page-tai-xiu__cta-buttons {
    justify-content: center;
  }

  .page-tai-xiu__guide-item,
  .page-tai-xiu__guide-item:nth-child(even) {
    flex-direction: column;
  }

  .page-tai-xiu__guide-image {
    max-width: 100%;
    margin: 0 0 20px 0 !important;
  }

  .page-tai-xiu__guide-item > div {
    flex: 1 1 100%;
    text-align: center;
  }

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

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

@media (max-width: 768px) {
  .page-tai-xiu {
    font-size: 15px;
  }

  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
    padding-bottom: 40px;
  }

  .page-tai-xiu__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-tai-xiu__section-title {
    font-size: 2em;
  }

  .page-tai-xiu__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .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;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General content containers and images */
  .page-tai-xiu__container,
  .page-tai-xiu__intro-features-section,
  .page-tai-xiu__guide-section,
  .page-tai-xiu__tips-section,
  .page-tai-xiu__advantages-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tai-xiu img:not(.page-tai-xiu__icon-box-media img) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tai-xiu__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
  }

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

  .page-tai-xiu__guide-item {
    padding: 20px;
  }

  .page-tai-xiu__tips-item {
    padding: 15px;
    font-size: 1em;
  }

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

  .page-tai-xiu__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-tai-xiu__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }
}