/* ============================================================
   FAQ PAGE — page-faq.css
   Depends on global: wrap, top-block, hero, hero-h1, hero-sub,
   breadcrumb, eyebrow, accent, section-white, btn-primary,
   footer
   ============================================================ */

:root {
  --navy:     #06061a;
  --cobalt:   #1414c8;
  --lime:     #3dffb0;
  --cream:    #f5f4f0;
  --ink:      #14142b;
  --ink-soft: #5a5a72;
}

/* ─────────────────────────────────────────────────────────
   1. PAGE LAYOUT / GRID
   ───────────────────────────────────────────────────────── */
.faq-main-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .faq-main-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────
   2. SIDEBAR
   ───────────────────────────────────────────────────────── */
.faq-sidebar {
  position: sticky;
  top: 135px;
}
@media (max-width: 900px) {
  .faq-sidebar {
    position: static;
    margin-bottom: 32px;
  }
}

/* Search box */
.faq-search {
  position: relative;
  margin-bottom: 24px;
}
.faq-search input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border: 1px solid var(--line-lt, #e8e6e0);
  border-radius: 50px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  background: #fff;
  transition: border-color 0.15s;
}
.faq-search input:focus,
.faq-search input:focus-visible {
  border: 1px solid var(--cobalt);
}
.faq-search svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}

/* Nav links */
.faq-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}
.faq-sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s;
  border: 1px solid transparent;
  color: var(--ink);
}
.faq-sidebar-link:hover {
  background: var(--cream);
  color: var(--ink);
}
.faq-sidebar-link.active {
  background: var(--navy);
  color: var(--lime);
  border-color: var(--navy);
  font-weight: 700;
}
.faq-sidebar-icon {
  width: 20px;
  display: inline-flex;
  justify-content: center;
  flex-shrink: 0;
}
.faq-sidebar-link .count {
  margin-left: auto;
  font-size: 11px;
  background: rgba(6, 6, 26, 0.08);
  color: var(--ink-soft);
  padding: 2px 7px;
  border-radius: 50px;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-sidebar-link.active .count {
  background: rgba(61, 255, 176, 0.15);
  color: var(--lime);
}

/* Sidebar CTA card */
.faq-sidebar-cta {
  background: var(--navy);
  border-radius: 14px;
  padding: 20px;
  position: relative;
}
.faq-sidebar-cta:before {
  content: "";
  position: absolute;
  top: 0px;
  left: 8px;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1414c8, #3dffb0);
  display: block;
  width: 95%;
}
.faq-sidebar-cta h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 8px;
}

.faq-sidebar-cta p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 16px;
}
.faq-sidebar-cta-btn {
  display: block;
  background: var(--lime);
  color: var(--navy);
  padding: 11px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  text-align: center;
}
.faq-sidebar-cta-phone {
  display: block;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
  text-decoration: none;
}

/* ─────────────────────────────────────────────────────────
   3. SECTIONS
   ───────────────────────────────────────────────────────── */
.faq-section {
  margin-bottom: 56px;
  scroll-margin-top: 84px;
}
.faq-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy);
}
.faq-section-icon {
  width: 38px;
  height: 38px;
  background: var(--navy);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.faq-section-count {
  color: var(--ink-soft);
  margin-left: auto;
  white-space: nowrap;
}

.faq-no-results {
  display: none;
  text-align: center;
  padding: 48px 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ─────────────────────────────────────────────────────────
   4. ACCORDION ITEMS
   (page-specific overrides of the generic faq-item pattern)
   ───────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--line-lt, #e8e6e0);
}
.faq-item:first-of-type {
  border-top: 1px solid var(--line-lt, #e8e6e0);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.faq-q:hover {
  color: var(--cobalt);
}
.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-lt, #e8e6e0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
}
.faq-item.open .faq-icon {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--lime);
  transform: rotate(45deg);
}
.faq-a {
  display: none;
  padding: 0 0 18px;
}
.faq-item.open .faq-a {
  display: block;
}
.faq-a p {
  max-width: 720px;
  margin: 0 0 12px;
}
.faq-a p:last-child {
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────
   5. RESPONSIVE ADJUSTMENTS
   ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .faq-section-title {
    font-size: 16px;
  }
  .faq-section-count {
    display: none;
  }
}
body.page-template-latest-page-faq {
  overflow: unset;
}

a.faq-sidebar-link .faq-sidebar-icon svg path, a.faq-sidebar-link .faq-sidebar-icon svg circle, a.faq-sidebar-link .faq-sidebar-icon svg polyline {
  /* stroke: var(--cobalt) !important; */
}
.faq-icon .faq_i {
  position: relative;
  top: -2px;
}