.fmg-faq-wrapper {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  font-family: "Nunito", sans-serif;
  --navy: #141633;
  --purple: #7334f0;
  --border: #e5e7eb;
  padding: 0 1rem;
}

.fmg-faq-head {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 1.2rem + 0.95vw, 1.78rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 1.65rem;
  text-align: center;
  line-height: 1.2;
  text-wrap: balance;
}

.fmg-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

.fmg-faq-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #ffffff, #fbfcff);
  border: 1px solid var(--border);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 1.2rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  transform: translateZ(0);
  transition:
    transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.22s ease;
  box-shadow: 0 2px 6px rgba(20, 22, 51, 0.06), 0 14px 30px rgba(20, 22, 51, 0.09);
  height: 100%;
}

.fmg-faq-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(115, 52, 240, 0.35), rgba(20, 22, 51, 0.9));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fmg-faq-card:hover {
  transform: translateY(-2px);
  border-color: rgba(115, 52, 240, 0.38);
  box-shadow: 0 4px 10px rgba(20, 22, 51, 0.08), 0 20px 36px rgba(20, 22, 51, 0.13);
}

.fmg-faq-card:hover::before {
  opacity: 1;
}

.fmg-faq-q {
  font-family: "Montserrat", sans-serif;
  font-size: 1.07rem;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--navy);
  line-height: 1.3;
  text-wrap: balance;
}

.fmg-faq-a {
  font-size: 0.99rem;
  color: #4b5563;
  line-height: 1.63;
  max-width: 62ch;
}

@media (prefers-reduced-motion: reduce) {
  .fmg-faq-card {
    transition: none;
  }

  .fmg-faq-card:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .fmg-faq-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .fmg-faq-card {
    border-radius: 16px;
    padding: 1rem 0.95rem 0.95rem;
  }

  .fmg-faq-q {
    font-size: 1.02rem;
  }

  .fmg-faq-a {
    font-size: 0.96rem;
    line-height: 1.6;
  }
}
