/* ===== FAQ SECTION ===== */

body {
  background: #fff;
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
}

/* -- Enhanced FAQ Section Background -- */
.faq-section {
  background: linear-gradient(108deg, #f5fafd 70%, #e8f1ff 100%);
  position: relative;
  overflow: hidden;
  padding: 48px 24px 36px 24px;
  z-index: 1;
}

/* -- Layered Glows -- */
.faq-bg-glows {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  inset: 0;
}
.faq-bg-glows::before,
.faq-bg-glows::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.36;
}
.faq-bg-glows::before {
  width: 540px;
  height: 360px;
  left: -180px;
  top: 120px;
  background: radial-gradient(ellipse 60% 70% at 60% 55%, #80bfff 0%, #e8f4ff 100%);
}
.faq-bg-glows::after {
  width: 420px;
  height: 280px;
  right: -150px;
  bottom: -120px;
  background: radial-gradient(ellipse 50% 70% at 40% 75%, #256fe6 0%, #e8f4ff 100%);
  opacity: 0.18;
}

/* -- FAQ Title (Big H2 system) -- */
.faq-title {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  font-weight: 700;
  color: #202b38;
  letter-spacing: -0.01em;
  line-height: 1.07;
  margin-bottom: clamp(28px, 5vw, 50px);
  z-index: 1;
  position: relative;
}

/* -- Card Grid -- */
.faq-cards-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.faq-column {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
  max-width: 420px;
}

/* ---- CARD BASE ---- */
.faq-card {
  background: #f8fcff;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(49,139,255,0.04), 0 1px 4px rgba(40, 60, 110, 0.03);
  padding: 0;
  overflow: hidden;
  transition:
    box-shadow 0.18s,
    border-color 0.16s,
    transform 0.25s cubic-bezier(.28,.52,.57,1.45),
    background 0.25s;
  border: 1.4px solid transparent;
  position: relative;
  cursor: pointer;
  min-height: 0;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
}

/* ---- CARD ENTRANCE ---- */
.faq-card.entered {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.57s cubic-bezier(.28,.52,.57,1.45),
    transform 0.57s cubic-bezier(.28,.52,.57,1.45),
    box-shadow 0.18s,
    border-color 0.16s,
    background 0.25s;
}

/* ---- HOVER ANIMATION ---- */
.faq-card:not(.active):hover {
  box-shadow: 0 6px 20px rgba(49,139,255,0.15), 0 3px 10px rgba(40, 60, 110, 0.10);
  border-color: #b1d8fe;
  background: linear-gradient(102deg, #f4faff 75%, #e7f3ff 100%);
  transform: translateY(-5px) scale(1.022);
  z-index: 2;
}

.faq-card:not(.active):hover .faq-card-question {
  color: #256fe6;
}

.faq-card.active {
  background: #162238;
  box-shadow: 0 5px 16px rgba(49,139,255,0.08);
  border-color: #c2e1ff;
  cursor: default;
  z-index: 3;
}

/* ---- FAQ Question (Card Title system) ---- */
.faq-card-question {
  display: flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.14rem;
  font-weight: 600;
  color: #232e47;
  line-height: 1.24;
  padding: 16px 18px;
  transition: color 0.15s;
}
.faq-card.active .faq-card-question {
  color: #fff;
}

/* ---- Icon ---- */
.faq-card-icon {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.faq-card-icon svg {
  width: 19px;
  height: 19px;
  transition: transform 0.23s, background 0.16s;
  border-radius: 50%;
  background: #edf5ff;
  color: #256fe6;
  padding: 2px;
}
.faq-card.active .faq-card-icon svg {
  background: #256fe6;
  color: #fff;
  transform: rotate(180deg);
}

/* ---- FAQ Answer (Body Copy system) ---- */
.faq-card-answer {
  font-family: 'Inter', sans-serif;
  font-size: 0.97rem;
  font-weight: 400;
  line-height: 1.54;
  color: #444;
  background: transparent;
  padding: 0 18px 16px 18px;
  margin-top: -3px;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.25s, max-height 0.6s cubic-bezier(0.7,0.1,0.4,1);
}
.faq-card.active .faq-card-answer {
  color: #e9f2ff;
  max-height: 2000px; /* allows long answers */
  opacity: 1;
  pointer-events: auto;
}

/* ---- FAQ Answer Ordered List Styling ---- */
.faq-card-answer ol {
  margin: 12px 0;
  padding-left: 22px;
}
.faq-card-answer li {
  margin-bottom: 10px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .faq-cards-grid {
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
  }
  .faq-column {
    min-width: 0;
    max-width: none;
    gap: 8px;
  }
}

@media (max-width: 540px) {
  .faq-title {
    font-size: clamp(1.3rem, 4vw, 1.55rem);
  }
  .faq-section {
    padding: 22px 2vw 14px 2vw;
  }
  .faq-card-question {
    font-size: 1rem;
    padding: 14px 12px;
  }
  .faq-card-answer {
    font-size: 0.91rem;
    padding: 0 12px 12px 12px;
  }
}
