/* style/resources-tai-xiu-faq.css */

:root {
  --primary-color: #1A73E8;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark-section: #1A73E8;
  --border-color: #e0e0e0;
}

.page-resources-tai-xiu-faq {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.page-resources-tai-xiu-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section for FAQ Page */
.page-resources-tai-xiu-faq__hero-faq-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, var(--primary-color), #0f58b8);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-tai-xiu-faq__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-resources-tai-xiu-faq__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.6;
}

.page-resources-tai-xiu-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-tai-xiu-faq__cta-button:hover {
  background: #e6c100; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* FAQ List Section */
.page-resources-tai-xiu-faq__faq-list-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page-resources-tai-xiu-faq__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
}

.page-resources-tai-xiu-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources-tai-xiu-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

.page-resources-tai-xiu-faq__faq-item.active .page-resources-tai-xiu-faq__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid var(--border-color);
}

.page-resources-tai-xiu-faq__faq-answer p {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text-dark);
}

.page-resources-tai-xiu-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.page-resources-tai-xiu-faq__faq-question:hover {
  background: #f0f0f0;
  border-color: #c0c0c0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-resources-tai-xiu-faq__faq-question:active {
  background: #e0e0e0;
}

.page-resources-tai-xiu-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none;
}

.page-resources-tai-xiu-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.page-resources-tai-xiu-faq__faq-item.active .page-resources-tai-xiu-faq__faq-toggle {
  color: var(--text-light);
  background-color: var(--primary-color);
  transform: rotate(45deg); /* Change + to X */
}

.page-resources-tai-xiu-faq__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-tai-xiu-faq__text-link:hover {
  color: #0d47a1;
  text-decoration: underline;
}

/* CTA Section at the bottom */
.page-resources-tai-xiu-faq__cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0d47a1, var(--primary-color));
  color: var(--text-light);
  text-align: center;
}

.page-resources-tai-xiu-faq__cta-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-resources-tai-xiu-faq__cta-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-tai-xiu-faq__cta-section .page-resources-tai-xiu-faq__btn-primary {
  background: var(--secondary-color);
  color: var(--text-dark);
  margin-right: 20px;
  border: none;
}

.page-resources-tai-xiu-faq__cta-section .page-resources-tai-xiu-faq__btn-primary:hover {
  background: #e6c100;
}

.page-resources-tai-xiu-faq__cta-section .page-resources-tai-xiu-faq__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid #ffffff;
}

.page-resources-tai-xiu-faq__cta-section .page-resources-tai-xiu-faq__btn-secondary:hover {
  background: #f0f0f0;
  color: #0d47a1;
}

/* General button styling for CTA sections */
.page-resources-tai-xiu-faq__btn-primary,
.page-resources-tai-xiu-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-tai-xiu-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-tai-xiu-faq__container {
    padding: 0 15px;
  }

  .page-resources-tai-xiu-faq__main-title {
    font-size: 36px;
  }

  .page-resources-tai-xiu-faq__intro-text {
    font-size: 16px;
  }

  .page-resources-tai-xiu-faq__section-title {
    font-size: 28px;
  }

  .page-resources-tai-xiu-faq__faq-question h3 {
    font-size: 17px;
  }

  .page-resources-tai-xiu-faq__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }

  .page-resources-tai-xiu-faq__cta-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-resources-tai-xiu-faq__hero-faq-section {
    padding-top: 140px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }

  .page-resources-tai-xiu-faq__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .page-resources-tai-xiu-faq__intro-text {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-resources-tai-xiu-faq__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-resources-tai-xiu-faq__faq-list-section {
    padding: 40px 0;
  }

  .page-resources-tai-xiu-faq__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-resources-tai-xiu-faq__faq-question {
    padding: 15px 20px;
  }

  .page-resources-tai-xiu-faq__faq-question h3 {
    font-size: 16px;
  }

  .page-resources-tai-xiu-faq__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-resources-tai-xiu-faq__faq-answer {
    padding: 0 20px;
  }

  .page-resources-tai-xiu-faq__faq-item.active .page-resources-tai-xiu-faq__faq-answer {
    padding: 15px 20px !important;
  }

  .page-resources-tai-xiu-faq__cta-section {
    padding: 50px 15px;
  }

  .page-resources-tai-xiu-faq__cta-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-resources-tai-xiu-faq__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-resources-tai-xiu-faq__cta-section .page-resources-tai-xiu-faq__btn-primary,
  .page-resources-tai-xiu-faq__cta-section .page-resources-tai-xiu-faq__btn-secondary {
    display: block;
    width: calc(100% - 30px); /* Adjust for container padding */
    margin: 15px auto;
    font-size: 16px;
    padding: 12px 20px;
  }

  .page-resources-tai-xiu-faq__cta-section .page-resources-tai-xiu-faq__btn-primary {
    margin-right: auto; /* Reset margin for block display */
  }

  .page-resources-tai-xiu-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources-tai-xiu-faq__section,
  .page-resources-tai-xiu-faq__card,
  .page-resources-tai-xiu-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-tai-xiu-faq__main-title {
    font-size: 26px;
  }

  .page-resources-tai-xiu-faq__section-title {
    font-size: 22px;
  }

  .page-resources-tai-xiu-faq__faq-question h3 {
    font-size: 15px;
  }

  .page-resources-tai-xiu-faq__faq-toggle {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }

  .page-resources-tai-xiu-faq__cta-title {
    font-size: 22px;
  }
  .page-resources-tai-xiu-faq__cta-section .page-resources-tai-xiu-faq__btn-primary,
  .page-resources-tai-xiu-faq__cta-section .page-resources-tai-xiu-faq__btn-secondary {
    font-size: 15px;
    padding: 10px 15px;
  }
}