/* ==========================================================================
   SEÇÃO DE DÚVIDAS FREQUENTES (FAQ ACCORDION) - INSTITUTO IGNIS
   ========================================================================== */

.ignis-faq,
.ignis-faq-eja-medio {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
  font-family: var(--font-mulish, 'Mulish', sans-serif);
}

.ignis-faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.ignis-faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.ignis-faq-header h2 {
  font-family: var(--font-poppins, 'Poppins', sans-serif);
  font-size: 2rem; /* 32px */
  font-weight: 800;
  color: #073b77;
  margin-bottom: 12px;
  line-height: 1.25;
}

.ignis-faq-header p {
  color: #666666;
  font-size: 1rem; /* 16px */
  line-height: 1.6;
}

.faq-container,
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* O CARD INTEGRADO (.faq-item) ENCLAVUS PERFEITAMENTE PERGUNTA E RESPOSTA */
.faq-item {
  background: #ffffff;
  border: 1.5px solid #eef0f2;
  border-radius: 16px !important;
  overflow: hidden !important; /* Impede vazar texto para fora do card */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(7, 59, 119, 0.04);
}

.faq-item:hover {
  border-color: #073b77;
  box-shadow: 0 8px 24px rgba(7, 59, 119, 0.09);
}

.faq-item.active {
  border-color: #073b77 !important;
  box-shadow: 0 8px 24px rgba(7, 59, 119, 0.12) !important;
  background-color: #ffffff;
}

.faq-question {
  padding: 22px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  background: #ffffff;
  border: none !important;
  border-radius: 0 !important;
}

.faq-question h3 {
  font-family: var(--font-poppins, 'Poppins', sans-serif);
  font-size: 1.0625rem; /* 17px */
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.45;
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: #f4f7fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #073b77;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  background: #073b77;
  color: #ffffff;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}

.faq-answer-content,
.faq-answer-inner {
  padding: 20px 24px 24px 24px;
  color: #4a5568;
  font-size: 0.95rem; /* 15.2px */
  line-height: 1.7;
  border-top: 1px solid #f0f4f8;
  word-break: break-word;
  background: #ffffff;
}

.faq-answer-content strong,
.faq-answer-inner strong {
  color: #073b77;
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVIDADE PERFEITA PARA DISPOSITIVOS MÓVEIS (CELULARES & TABLETS)
   ========================================================================== */

@media (max-width: 768px) {
  .ignis-faq,
  .ignis-faq-eja-medio {
    margin: 40px auto;
    padding: 0 20px;
  }

  .ignis-faq-header {
    margin-bottom: 28px;
  }

  .ignis-faq-header h2 {
    font-size: 1.65rem;
  }

  .ignis-faq-header p {
    font-size: 0.925rem;
    padding: 0 5px;
  }

  .faq-container,
  .faq-list {
    gap: 14px;
  }

  .faq-item {
    border-radius: 14px !important;
  }

  .faq-question {
    padding: 18px 20px;
    gap: 14px;
  }

  .faq-question h3 {
    font-size: 0.975rem;
    line-height: 1.45;
  }

  .faq-answer-content,
  .faq-answer-inner {
    padding: 18px 20px 22px 20px;
    font-size: 0.925rem;
    line-height: 1.65;
  }
}

@media (max-width: 480px) {
  .ignis-faq,
  .ignis-faq-eja-medio {
    margin: 32px auto;
    padding: 0 16px;
  }

  .ignis-faq-header h2 {
    font-size: 1.45rem;
  }

  .faq-question {
    padding: 16px 18px;
    gap: 12px;
  }

  .faq-question h3 {
    font-size: 0.925rem;
  }

  .faq-answer-content,
  .faq-answer-inner {
    padding: 16px 18px 20px 18px;
    font-size: 0.9rem;
    line-height: 1.6;
  }
}
