/* =============================================
   FAQ PAGE
   ============================================= */

/* --- Hero / intro --- */
.faq-hero {
  position: relative;
  padding: 160px 0 60px;
  overflow: hidden;
  text-align: center;
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 82% 15%, rgba(176, 141, 242, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 8% 95%, rgba(122, 164, 246, 0.14) 0%, transparent 45%);
}

.faq-hero .contact-overline {
  margin-bottom: 16px;
}

.faq-hero-title {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 700;
  color: #16161a;
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 720px;
  margin: 0 auto 20px;
}

.faq-hero-title span {
  background: linear-gradient(145deg, #b08df2 10%, #7aa4f6 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-hero-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted, #545971);
}

/* --- Layout: category sidebar + accordion panels --- */
.faq-main {
  padding: 60px 0 100px;
  background: #ffffff;
}

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

/* Sidebar */
.faq-sidebar {
  position: sticky;
  top: 104px;
  min-width: 0;
}

.faq-sidebar-inner {
  background: linear-gradient(160deg, rgba(176, 141, 242, 0.07) 0%, rgba(122, 164, 246, 0.06) 100%);
  border: 1px solid rgba(122, 164, 246, 0.16);
  border-radius: 22px;
  padding: 22px 16px;
}

.faq-sidebar-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a8fa3;
  padding: 4px 12px 14px;
}

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

.faq-category-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #3f3f46;
  padding: 13px 16px;
  border-radius: 12px;
  line-height: 1.35;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.faq-category-btn:hover {
  background: rgba(255, 255, 255, 0.75);
  color: #16161a;
}

.faq-category-btn.active {
  background: linear-gradient(145deg, #b08df2 10%, #7aa4f6 90%);
  color: #ffffff;
  box-shadow: 0 10px 22px -8px rgba(122, 164, 246, 0.55);
}

/* Panels */
.faq-panels {
  min-width: 0;
}

.faq-panel {
  display: none;
}

.faq-panel.active {
  display: block;
  animation: faqPanelIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes faqPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-panel-header {
  margin-bottom: 24px;
}

.faq-panel-header h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  color: #16161a;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.faq-panel-header p {
  font-size: 15px;
  color: var(--ink-muted, #545971);
}

/* Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(122, 164, 246, 0.35);
}

.faq-item.open {
  border-color: rgba(122, 164, 246, 0.4);
  box-shadow: 0 16px 32px -18px rgba(122, 164, 246, 0.35);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-question span {
  font-size: 15.5px;
  font-weight: 600;
  color: #16161a;
  line-height: 1.45;
}

.faq-toggle-icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(176, 141, 242, 0.14) 10%, rgba(122, 164, 246, 0.14) 90%);
  transition: background 0.3s ease;
}

.faq-toggle-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  background: #7a5fc9;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.faq-toggle-bar-h {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-toggle-bar-v {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq-item.open .faq-toggle-icon {
  background: linear-gradient(145deg, #b08df2 10%, #7aa4f6 90%);
}

.faq-item.open .faq-toggle-bar {
  background: #ffffff;
}

.faq-item.open .faq-toggle-bar-v {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-muted, #545971);
}

.faq-answer-inner p a {
  color: #557eea;
  text-decoration: none;
  font-weight: 600;
}

.faq-answer-inner p a:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .faq-hero {
    padding: 130px 0 44px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-sidebar {
    position: static;
  }

  .faq-sidebar-inner {
    padding: 14px;
  }

  .faq-sidebar-label {
    padding: 2px 6px 10px;
  }

  .faq-category-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 2px;
  }

  .faq-category-list::-webkit-scrollbar {
    display: none;
  }

  .faq-category-btn {
    width: auto;
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .faq-hero {
    padding: 110px 0 36px;
  }

  .faq-main {
    padding: 40px 0 70px;
  }

  .faq-question {
    padding: 16px 16px;
    gap: 12px;
  }

  .faq-question span {
    font-size: 14.5px;
  }

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