/* ================================================================
   eCampus Market — faq.css
   Frequently Asked Questions page
   ================================================================ */

:root {
  --blue:   #1B4FFF;
  --blue-d: #0A34D4;
  --blue-l: #EEF3FF;
  --teal:   #00C4AA;
  --orange: #FF5C2B;
  --yellow: #FFB800;
  --dark:   #080D1A;
  --dark2:  #101625;
  --text:   #111827;
  --text2:  #374151;
  --muted:  #6B7280;
  --light:  #9CA3AF;
  --bdr:    #E2E8F8;
  --surf:   #fff;
  --surf2:  #F7F9FF;
  --fh:     'Clash Display', sans-serif;
  --fb:     'Inter', sans-serif;
  --r:      14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --sh:     0 2px 14px rgba(27,79,255,.09), 0 1px 4px rgba(0,0,0,.05);
  --sh-md:  0 6px 28px rgba(27,79,255,.13), 0 2px 8px rgba(0,0,0,.07);
  --t:      .22s;
  --ease:   cubic-bezier(.4,0,.2,1);
}

.faq-container { max-width: 960px; margin: 0 auto; padding: 0 2rem; width: 100%; }
@media (max-width: 767px) { .faq-container { padding: 0 1rem; } }

.faq-section    { padding: 4rem 0; background: var(--surf); }
.faq-section-sm { padding: 2.5rem 0; }
.faq-bg2        { background: var(--surf2); }

/* ================================================================
   HERO
   ================================================================ */
.faq-hero {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #1a1035 100%);
  overflow: hidden;
  padding: 5rem 0 6rem;
}
.faq-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .18;
  pointer-events: none;
}
.faq-hero-orb-1 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, #1B4FFF, transparent 65%);
  top: -140px; left: -80px;
  animation: faqOrbFloat 9s ease-in-out infinite;
}
.faq-hero-orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #00C4AA, transparent 65%);
  bottom: -100px; right: -60px;
  animation: faqOrbFloat 11s ease-in-out infinite 4s;
}
@keyframes faqOrbFloat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }

.faq-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  text-align: center;
}
@media (max-width: 767px) { .faq-hero-inner { padding: 0 1rem; } }

.faq-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #cfd8ff;
  padding: .4rem .9rem;
  border-radius: 99px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 1.25rem;
}
.faq-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0,196,170,.2);
}

.faq-hero-title {
  font-family: var(--fh);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 1rem;
}
.faq-grad {
  background: linear-gradient(135deg, #4B7BFF, #00C4AA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.faq-hero-sub {
  font-family: var(--fb);
  font-size: 1.02rem;
  line-height: 1.7;
  color: #aab2c8;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* Search box */
.faq-search {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.faq-search input {
  width: 100%;
  font-family: var(--fb);
  font-size: .95rem;
  padding: .95rem 1.25rem .95rem 3rem;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  color: #fff;
  outline: none;
  transition: var(--t) var(--ease);
}
.faq-search input::placeholder { color: #8791ac; }
.faq-search input:focus {
  background: rgba(255,255,255,.12);
  border-color: rgba(75,123,255,.6);
  box-shadow: 0 0 0 4px rgba(27,79,255,.18);
}
.faq-search-icon {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  color: #8791ac; font-size: 1rem; pointer-events: none;
}
.faq-search-clear {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; border: none;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; font-size: .9rem;
}
.faq-search-clear.is-visible { display: flex; }

.faq-no-results {
  display: none;
  text-align: center;
  color: var(--muted);
  font-family: var(--fb);
  padding: 3rem 1rem;
}
.faq-no-results.is-visible { display: block; }
.faq-no-results i { font-size: 2rem; color: var(--light); display: block; margin-bottom: .75rem; }

/* ================================================================
   CATEGORY NAV (sticky pills)
   ================================================================ */
.faq-catnav-wrap {
  position: sticky;
  top: var(--nav-h, 64px);
  z-index: 20;
  background: var(--surf);
  border-bottom: 1px solid var(--bdr);
}
.faq-catnav {
  max-width: 960px;
  margin: 0 auto;
  padding: .9rem 2rem;
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.faq-catnav::-webkit-scrollbar { display: none; }
@media (max-width: 767px) { .faq-catnav { padding: .9rem 1rem; } }

.faq-pill {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--fb);
  font-size: .84rem; font-weight: 600;
  color: var(--text2);
  background: var(--surf2);
  border: 1px solid var(--bdr);
  padding: .5rem 1rem;
  border-radius: 99px;
  text-decoration: none;
  transition: var(--t) var(--ease);
  cursor: pointer;
}
.faq-pill:hover { border-color: var(--blue); color: var(--blue); }
.faq-pill.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: var(--sh);
}

/* ================================================================
   FAQ GROUPS / ACCORDION
   ================================================================ */
.faq-group { margin-bottom: 3rem; scroll-margin-top: 130px; }
.faq-group:last-child { margin-bottom: 0; }

.faq-group-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.faq-group-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.faq-group-title {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin: 0;
}
.faq-group-count {
  font-family: var(--fb);
  font-size: .78rem;
  color: var(--light);
  margin-left: auto;
  white-space: nowrap;
}

.faq-list {
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surf);
}

.faq-item + .faq-item { border-top: 1px solid var(--bdr); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  font-family: var(--fb);
  font-size: .96rem;
  font-weight: 600;
  color: var(--text);
  transition: background var(--t);
}
.faq-q:hover { background: var(--surf2); }
.faq-q-icon {
  margin-left: auto;
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue-l);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t) var(--ease), background var(--t);
  font-size: .8rem;
}
.faq-item.is-open .faq-q-icon { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-item.is-open .faq-q { background: var(--surf2); }

.faq-a-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.faq-a {
  padding: 0 1.35rem 1.25rem 1.35rem;
  font-family: var(--fb);
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text2);
}
.faq-a p { margin: 0 0 .75rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul { margin: 0 0 .75rem; padding-left: 1.2rem; }
.faq-a a { color: var(--blue); font-weight: 600; text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

.faq-item[hidden] { display: none !important; }

/* Highlight for search matches */
mark.faq-mark {
  background: rgba(255,184,0,.35);
  color: inherit;
  border-radius: 3px;
  padding: 0 .1em;
}

/* ================================================================
   STILL NEED HELP CTA
   ================================================================ */
.faq-cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, #14184a 100%);
  border-radius: var(--r-xl);
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
}
.faq-cta-orb {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,79,255,.35), transparent 65%);
  top: -120px; right: -80px;
  filter: blur(10px);
  pointer-events: none;
}
.faq-cta-inner { position: relative; z-index: 2; }
.faq-cta-title {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 0 .6rem;
}
.faq-cta-sub {
  font-family: var(--fb);
  font-size: .95rem;
  color: #aab2c8;
  max-width: 460px;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}
.faq-cta-btns { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }
.faq-btn-primary,
.faq-btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--fb);
  font-size: .88rem; font-weight: 700;
  padding: .8rem 1.5rem;
  border-radius: 99px;
  text-decoration: none;
  transition: var(--t) var(--ease);
  border: 1px solid transparent;
}
.faq-btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-d));
  color: #fff;
  box-shadow: 0 8px 24px rgba(27,79,255,.35);
}
.faq-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(27,79,255,.45); color: #fff; }
.faq-btn-ghost {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.faq-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 767px) {
  .faq-hero { padding: 3.5rem 0 4rem; }
  .faq-group-title { font-size: 1.1rem; }
  .faq-q { font-size: .9rem; padding: 1rem 1.1rem; }
  .faq-a { padding: 0 1.1rem 1.1rem; font-size: .87rem; }
  .faq-cta-banner { padding: 2.25rem 1.25rem; }
  .faq-cta-title { font-size: 1.3rem; }
}
