/* ========================================
   SECM FAQ ACCORDION MODULE
   SEO-rich long-form Q&A
   ======================================== */

.sx-secm-faq {
  background: var(--color-bg-white);
  padding: var(--space-section) 0;
}

.sx-faq-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* ========================================
   FAQ ITEM
   ======================================== */

.sx-faq-item {
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  background: var(--color-white);
  transition: all 0.3s ease;
}

.sx-faq-item:hover {
  border-color: rgba(45, 132, 205, 0.3);
  box-shadow: var(--shadow-sm);
}

/* Question Button */
.sx-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-headings);
  font-size: var(--font-size-h5);
  font-weight: 500;
  color: var(--color-brand-gray);
  transition: all 0.3s ease;
}

.sx-faq-question:hover {
  color: var(--color-brand-blue);
}

.sx-faq-question-text {
  flex-grow: 1;
  padding-right: 14px;
}

/* Plus/Minus Icon */
.sx-faq-icon {
  font-size: 1.5rem;
  color: var(--color-brand-blue);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

/* Active state: rotate + to × */
.sx-faq-item.active .sx-faq-icon {
  transform: rotate(45deg);
}

.sx-faq-item.active .sx-faq-question {
  color: var(--color-brand-blue);
}

/* ========================================
   ANSWER CONTENT
   ======================================== */

.sx-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.sx-faq-item.active .sx-faq-answer {
  max-height: 3000px; /* Large enough for longest answer */
}

.sx-faq-answer-content {
  padding: 0 20px 16px 20px;
}

.sx-faq-answer-content p {
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 12px;
}

.sx-faq-answer-content p:last-child {
  margin-bottom: 0;
}

.sx-faq-answer-content strong {
  color: var(--color-brand-blue);
  font-weight: 600;
}

.sx-faq-answer-content em {
  font-style: italic;
  color: var(--color-brand-gray);
}

/* Subheadings within answers (h5) */
.sx-faq-answer-content h5 {
  font-family: var(--font-headings);
  font-size: var(--font-size-h5);
  color: var(--color-brand-gray);
  margin: 20px 0 10px 0;
  font-weight: 600;
}

/* Bullet lists in answers */
.sx-faq-answer-content ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.sx-faq-answer-content ul li {
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--color-text);
  padding-left: 20px;
  margin-bottom: 8px;
  position: relative;
}

.sx-faq-answer-content ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-brand-blue);
  font-weight: bold;
  font-size: 1.1rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .sx-faq-question {
    padding: 12px 16px;
    font-size: var(--font-size-body);
  }

  .sx-faq-icon {
    font-size: 1.3rem;
  }

  .sx-faq-answer-content {
    padding: 0 16px 14px 16px;
  }

  .sx-faq-answer-content p,
  .sx-faq-answer-content ul li {
    font-size: var(--font-size-body);
  }
}

@media (max-width: 480px) {
  .sx-faq-question {
    padding: 10px 12px;
    font-size: var(--font-size-body);
  }

  .sx-faq-answer-content {
    padding: 0 12px 12px 12px;
  }

  .sx-faq-icon {
    font-size: 1.2rem;
  }
}