/* ========================================
   SEÇÃO PERGUNTAS FREQUENTES (FAQ) - UFR 2026
   ======================================== */

/* Container Principal */
.faq-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Cabeçalho da Seção */
.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.faq-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Grid de Colunas */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .faq-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Coluna */
.faq-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Item Individual */
.faq-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Pergunta (Botão) */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  transition: color 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.faq-question:hover {
  color: #0066cc;
}

.faq-question span {
  flex: 1;
}

/* Ícone da Seta */
.faq-icon {
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item-open .faq-icon {
  transform: rotate(180deg);
  color: #0066cc;
}

/* Resposta */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 24px 20px 24px;
  color: #64748b;
  line-height: 1.7;
  font-size: 0.9375rem;
  margin: 0;
}

/* Estado Aberto */
.faq-item-open {
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.faq-item-open .faq-question {
  color: #0066cc;
}

/* Animação de Entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.faq-column:nth-child(1) .faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-column:nth-child(1) .faq-item:nth-child(2) { animation-delay: 0.15s; }
.faq-column:nth-child(1) .faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-column:nth-child(1) .faq-item:nth-child(4) { animation-delay: 0.25s; }
.faq-column:nth-child(2) .faq-item:nth-child(1) { animation-delay: 0.3s; }
.faq-column:nth-child(2) .faq-item:nth-child(2) { animation-delay: 0.35s; }
.faq-column:nth-child(2) .faq-item:nth-child(3) { animation-delay: 0.4s; }
.faq-column:nth-child(2) .faq-item:nth-child(4) { animation-delay: 0.45s; }

/* Responsividade para Tablets */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 20px;
  }

  .faq-title {
    font-size: 2rem;
  }

  .faq-subtitle {
    font-size: 1rem;
  }

  .faq-question {
    padding: 16px 20px;
    font-size: 0.9375rem;
  }

  .faq-answer p {
    padding: 0 20px 16px 20px;
    font-size: 0.875rem;
  }
}

/* Responsividade para Mobile */
@media (max-width: 480px) {
  .faq-section {
    padding: 40px 16px;
  }

  .faq-title {
    font-size: 1.75rem;
  }

  .faq-header {
    margin-bottom: 40px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.875rem;
    gap: 12px;
  }

  .faq-icon {
    width: 18px;
    height: 18px;
  }

  .faq-answer p {
    padding: 0 16px 14px 16px;
    font-size: 0.8125rem;
  }
}