/* style/tai-xiu.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --gradient-button: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-page: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --header-offset: 120px; /* Default, will be overridden by shared.css if present */
}

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

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

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

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

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

.page-tai-xiu__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-black);
  margin-bottom: 20px;
  max-width: 600px;
}

.page-tai-xiu__description {
  font-size: 1.1em;
  color: var(--text-main);
  margin-bottom: 30px;
}

.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: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  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: var(--gradient-button);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-tai-xiu__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 15px var(--glow-color);
}

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

.page-tai-xiu__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

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

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

/* General Section Styles */
.page-tai-xiu__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--text-black);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

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

.page-tai-xiu__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-tai-xiu__content-text {
  flex: 1;
  min-width: 300px;
}

.page-tai-xiu__content-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--text-main);
}

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

.page-tai-xiu__content-image img {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Features Section (Dark Background) */
.page-tai-xiu__features-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-tai-xiu__features-section .page-tai-xiu__section-title {
  color: #ffffff;
}

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

.page-tai-xiu__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-tai-xiu__feature-item h3 {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-tai-xiu__feature-item p {
  font-size: 1em;
  color: #f0f0f0;
}

/* Guide Section */
.page-tai-xiu__guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: guide-step;
}

.page-tai-xiu__guide-list li {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.page-tai-xiu__guide-list li:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__guide-list li::before {
  counter-increment: guide-step;
  content: "Bước " counter(guide-step);
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9em;
}

.page-tai-xiu__guide-list li h3 {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--text-black);
  margin-top: 10px;
  margin-bottom: 10px;
}

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

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

/* FAQ Section */
.page-tai-xiu__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-black);
  background-color: #f9f9f9;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-tai-xiu__faq-item[open] > .page-tai-xiu__faq-question {
  background-color: var(--primary-color);
  color: #ffffff;
  border-bottom-color: var(--primary-color);
}

.page-tai-xiu__faq-question:hover {
  background-color: #f0f0f0;
}

.page-tai-xiu__faq-item[open] > .page-tai-xiu__faq-question:hover {
  background-color: var(--primary-color);
}

.page-tai-xiu__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to X */
  color: #ffffff;
}

.page-tai-xiu__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--text-main);
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
}

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

/* CTA Section */
.page-tai-xiu__cta-container {
  text-align: center;
  padding: 60px 16px;
  background-color: var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.page-tai-xiu__cta-container .page-tai-xiu__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-tai-xiu__cta-container p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tai-xiu__cta-container .page-tai-xiu__btn-primary {
  padding: 15px 35px;
  font-size: 1.15em;
  border-radius: 10px;
}

/* Footer Content (specific to this page) */
.page-tai-xiu__footer-content {
  padding: 30px 0;
  background-color: var(--text-black);
  color: #ffffff;
  text-align: center;
}

.page-tai-xiu__copyright {
  font-size: 0.9em;
  margin: 0;
}

/* Image responsiveness for all images */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General container responsiveness */
.page-tai-xiu__section,
.page-tai-xiu__card,
.page-tai-xiu__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }

  .page-tai-xiu__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
    gap: 20px;
  }

  .page-tai-xiu__hero-content {
    max-width: 100%;
    order: 2; /* Content below image */
  }

  .page-tai-xiu__hero-image {
    max-width: 100%;
    order: 1; /* Image above content */
  }

  .page-tai-xiu__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
    margin-bottom: 15px;
  }

  .page-tai-xiu__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-tai-xiu__btn-primary,
  .page-tai-xiu__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-tai-xiu__intro-section,
  .page-tai-xiu__features-section,
  .page-tai-xiu__guide-section,
  .page-tai-xiu__faq-section,
  .page-tai-xiu__cta-section {
    padding: 40px 0;
  }

  .page-tai-xiu__container {
    padding: 0 15px;
  }

  .page-tai-xiu__content-grid {
    flex-direction: column;
    gap: 30px;
  }

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

  .page-tai-xiu__feature-item {
    padding: 25px;
  }

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

  .page-tai-xiu__guide-list li::before {
    left: 15px;
  }

  .page-tai-xiu__guide-list li h3 {
    font-size: 1.2em;
    margin-top: 10px;
  }

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

  .page-tai-xiu__faq-answer {
    padding: 12px 20px 15px;
  }

  .page-tai-xiu__cta-container {
    padding: 40px 15px;
  }

  .page-tai-xiu__cta-container p {
    font-size: 1em;
  }

  .page-tai-xiu__cta-container .page-tai-xiu__btn-primary {
    font-size: 1em;
    padding: 12px 25px;
  }

  /* General image responsiveness for mobile */
  .page-tai-xiu img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure containers with images don't overflow */
  .page-tai-xiu__section,
  .page-tai-xiu__card,
  .page-tai-xiu__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Specific override for hero image container if needed */
  .page-tai-xiu__hero-image {
    padding: 0;
  }
}