/* style/tai-xiu.css */

/* Base styles for the page content wrapper */
.page-tai-xiu {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Explicitly setting for context, though body handles it */
}

/* Hero Section */
.page-tai-xiu__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 40px;
  background-color: #FFFFFF; /* Light background for the hero section */
}

.page-tai-xiu__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 16px;
  gap: 24px;
}

.page-tai-xiu__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: #333333; /* Ensuring contrast on white background */
}

.page-tai-xiu__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 16px;
  max-width: 600px;
}

.page-tai-xiu__hero-description {
  font-size: 1.1em;
  margin-bottom: 24px;
  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: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow on small screens */
}

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

.page-tai-xiu__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

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

.page-tai-xiu__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1a8cc4;
  border-color: #1a8cc4;
}

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

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

/* Content Sections */
.page-tai-xiu__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  color: #333333;
}

.page-tai-xiu__section-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 600;
}

.page-tai-xiu__content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-tai-xiu__text-block {
  flex: 1 1 55%;
  min-width: 300px;
}

.page-tai-xiu__image-block {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-tai-xiu__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 200px;
  min-height: 200px;
}

.page-tai-xiu__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 0;
}

.page-tai-xiu__list li {
  margin-bottom: 10px;
}

.page-tai-xiu__highlight-text {
  color: #26A9E0; /* Brand color for highlighted text */
  font-weight: bold;
}

/* Dark Section for Strategy */
.page-tai-xiu__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF; /* White text on brand color background */
  padding: 60px 16px;
  margin: 40px 0;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title {
  color: #FFFFFF; /* White title on brand color background */
}

.page-tai-xiu__dark-section .page-tai-xiu__highlight-text {
  color: #FFFFFF; /* Ensure highlights are visible */
}

.page-tai-xiu__dark-section .page-tai-xiu__content-image {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__reverse-layout {
  flex-direction: row-reverse;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
  padding-bottom: 60px;
}

.page-tai-xiu__faq-list {
  margin-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.page-tai-xiu__faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
  color: #333333;
}

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  padding: 10px 0;
  list-style: none; /* Hide default marker for details summary */
}

.page-tai-xiu__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-tai-xiu__faq-item summary::marker {
  display: none; /* Hide default marker for Firefox */
}

.page-tai-xiu__faq-qtext {
  flex-grow: 1;
  color: #333333; /* Ensure text is dark on light background */
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-tai-xiu__faq-answer {
  padding-top: 10px;
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
}

/* Specific link in FAQ answer */
.page-tai-xiu__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-tai-xiu__faq-answer a:hover {
  color: #1a8cc4;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-tai-xiu__hero-container {
    padding: 30px 16px;
    flex-direction: column;
    text-align: center;
  }

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

  .page-tai-xiu__main-title {
    font-size: clamp(2em, 5vw, 2.5em);
    max-width: 100%;
  }

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

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

  .page-tai-xiu__content-wrapper {
    flex-direction: column;
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__image-block {
    flex: 1 1 100%;
  }

  .page-tai-xiu__reverse-layout {
    flex-direction: column; /* Revert for 1024px to column */
  }

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

  .page-tai-xiu__dark-section {
    padding: 40px 16px;
  }
}


@media (max-width: 768px) {
  /* HERO Section mobile */
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Specific top padding for mobile */
    padding-bottom: 30px !important;
  }

  .page-tai-xiu__hero-container {
    padding: 20px 15px !important; /* Smaller padding for mobile */
    gap: 20px !important;
  }

  .page-tai-xiu__main-title {
    font-size: 2em !important; /* Fixed font size for mobile H1 */
    margin-bottom: 12px !important;
  }

  .page-tai-xiu__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

  .page-tai-xiu__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important; /* Add padding to button container */
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    padding: 10px 15px !important;
    font-size: 0.95em !important;
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* General content sections mobile */
  .page-tai-xiu__content-area {
    padding: 30px 15px !important; /* Smaller padding for content areas */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tai-xiu__section-title {
    font-size: 1.6em !important;
    margin-bottom: 20px !important;
  }

  .page-tai-xiu__content-wrapper {
    gap: 20px !important;
  }

  .page-tai-xiu__text-block,
  .page-tai-xiu__image-block {
    min-width: unset !important; /* Remove min-width for mobile flexibility */
  }

  .page-tai-xiu__reverse-layout {
    flex-direction: column !important; /* Ensure consistent stacking */
  }

  /* Universal image rules for mobile */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Dark section mobile */
  .page-tai-xiu__dark-section {
    padding: 30px 15px !important;
    margin: 30px 0 !important;
  }

  /* FAQ section mobile */
  .page-tai-xiu__faq-item {
    padding: 10px 0 !important;
  }

  .page-tai-xiu__faq-question {
    font-size: 1em !important;
    padding: 8px 0 !important;
  }

  .page-tai-xiu__faq-toggle {
    font-size: 1.2em !important;
  }

  .page-tai-xiu__faq-answer {
    font-size: 0.9em !important;
    padding-top: 8px !important;
  }
}

/* Contrast Fixes (as per intelligent contrast guidelines) */
.page-tai-xiu__dark-bg {
  color: #ffffff; /* Deep blue background with white text */
  background-color: #26A9E0;
}

.page-tai-xiu__light-bg {
  color: #333333; /* White background with dark text */
  background-color: #ffffff;
}

.page-tai-xiu__medium-bg {
  color: #000000; /* Default dark text on medium background */
  background-color: #FFFFFF; /* Placeholder, actual color would vary */
}