.faq-hero {
  position: relative;
  padding: 52px 0 22px;
}

.faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(0, 162, 255, 0.14), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(28, 191, 255, 0.16), transparent 28%);
  pointer-events: none;
}

.faq-hero-wrap {
  position: relative;
  max-width: 920px;
  padding: 36px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,248,255,0.92));
  border: 1px solid rgba(24, 119, 242, 0.12);
  box-shadow:
    0 24px 60px rgba(17, 62, 125, 0.12),
    0 8px 20px rgba(17, 62, 125, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.85);
  overflow: hidden;
}

.faq-hero-wrap::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 162, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e9f5ff, #dff0ff);
  color: #1266d6;
  border: 1px solid rgba(18, 102, 214, 0.14);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(18, 102, 214, 0.08);
}

.faq-title {
  max-width: 760px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
  color: #10233f;
}

.faq-title span {
  color: #0f7bff;
}

.faq-subtitle {
  max-width: 700px;
  color: #52627a;
  font-size: 1.05rem;
  line-height: 1.75;
}

.faq-content {
  padding: 20px 0 10px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 110px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  border: 1px solid rgba(17, 123, 255, 0.10);
  box-shadow:
    0 18px 40px rgba(18, 72, 140, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.faq-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #132743;
}

.faq-side-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  color: #59708a;
  font-weight: 700;
  transition: 0.2s ease;
  background: #f7fbff;
  border: 1px solid transparent;
}

.faq-side-link:hover,
.faq-side-link.active {
  color: #0f7bff;
  background: #eaf4ff;
  border-color: rgba(17, 123, 255, 0.10);
}

.faq-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-group {
  padding: 26px;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  border: 1px solid rgba(17, 123, 255, 0.10);
  box-shadow:
    0 18px 40px rgba(18, 72, 140, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.faq-group-head {
  margin-bottom: 18px;
}

.faq-group-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #eaf5ff;
  color: #1877f2;
  border: 1px solid rgba(24, 119, 242, 0.12);
  font-size: 0.8rem;
  font-weight: 800;
}

.faq-group h2 {
  font-size: 1.8rem;
  line-height: 1.08;
  color: #10233f;
  letter-spacing: -0.03em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: 22px;
  background: #fbfdff;
  border: 1px solid rgba(17, 123, 255, 0.08);
  overflow: hidden;
  transition: 0.25s ease;
}

.faq-item.active {
  background: #ffffff;
  border-color: rgba(17, 123, 255, 0.14);
  box-shadow: 0 14px 28px rgba(18, 72, 140, 0.08);
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  color: #152843;
  font-size: 1rem;
  font-weight: 800;
}

.faq-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf6ff;
  color: #0f7bff;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: linear-gradient(180deg, #1ea4ff, #0f7bff);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 220px;
  padding: 0 20px 18px;
}

.faq-answer p {
  color: #58677f;
  line-height: 1.75;
  font-size: 0.97rem;
}

/* fade-in */

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .faq-hero {
    padding: 28px 0 14px;
  }

  .faq-hero-wrap {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .faq-title {
    font-size: 2.7rem;
  }

  .faq-subtitle {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .faq-sidebar {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .faq-group {
    padding: 20px 18px;
    border-radius: 24px;
  }

  .faq-group h2 {
    font-size: 1.45rem;
  }

  .faq-question {
    padding: 16px 16px;
    font-size: 0.96rem;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-item.active .faq-answer {
    padding: 0 16px 16px;
  }
}

@media (max-width: 420px) {
  .faq-title {
    font-size: 2.2rem;
  }

  .faq-sidebar,
  .faq-group {
    padding: 18px 16px;
  }

  .faq-side-link {
    font-size: 0.94rem;
  }

  .faq-question {
    font-size: 0.93rem;
    gap: 12px;
  }

  .faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .faq-answer p {
    font-size: 0.93rem;
  }
}