/* ============================================================
   FAQ hub — two-column category nav + Q&A panel

   Reference: callback.com's /v2/css/faq-page.css (same faq-layout /
   faq-sidebar / faq-cat / faq-entry structure). Recreated here using
   nsoftware.com's own brand variables (vars.css) and the visual
   conventions already used across the site (Open Sans Condensed
   headings, Segoe UI body copy, 2-4px radii, var(--link-color) for
   interactive accents) rather than Callback's blue/pill-shaped v2
   design language.
   ============================================================ */

/* ── Hub header band ─────────────────────────────────────── */

.faq-hub-header {
  background: var(--grey-light);
  border-bottom: 1px solid var(--grey);
  padding: 44px 0 36px;
  text-align: center;
}

.faq-hub-header h1 {
  margin-bottom: 10px;
}

.faq-hub-header h3 {
  font-family: var(--main-font-family);
  font-size: 17px;
  font-weight: 400;
  line-height: 26px;
  color: #666;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Page layout ─────────────────────────────────────────── */

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

/* ── Left sidebar: category accordion ───────────────────────── */

.faq-sidebar {
  position: sticky;
  top: 85px;
}

.faq-cat {
  border-top: 1px solid var(--grey);
}

.faq-cat:last-child {
  border-bottom: 1px solid var(--grey);
}

.faq-cat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 10px;
  font-family: var(--main-font-family);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: var(--text-color);
  transition: color 0.15s ease;
}

.faq-cat__header:hover {
  color: var(--link-color);
}

.faq-cat__chevron {
  flex-shrink: 0;
  font-size: 13px;
  transition: transform 0.15s ease;
}

.faq-cat--open .faq-cat__chevron {
  transform: rotate(180deg);
}

/* Question list inside each category */
.faq-cat__questions {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
}

.faq-cat--open .faq-cat__questions {
  display: flex;
}

/* Individual question button */
.faq-cat__question {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--main-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  color: #555;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.faq-cat__question:hover {
  color: var(--link-color);
  background: #eaf4fb;
  border-left-color: var(--link-color);
}

/* Replace the browser's default focus rectangle (jarring against this
   design) with an on-brand ring, and only for keyboard focus so a mouse
   click doesn't show it. */
.faq-cat__header:focus:not(:focus-visible),
.faq-cat__question:focus:not(:focus-visible) {
  outline: none;
}

.faq-cat__header:focus-visible,
.faq-cat__question:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

.faq-cat__question--active {
  color: var(--link-color);
  background: #eaf4fb;
  border-left-color: var(--link-color);
  font-weight: 600;
}

/* ── Right content panel ─────────────────────────────────────── */

.faq-content {
  min-height: 400px;
}

/* Individual FAQ entries */
.faq-entry {
  display: none;
}

.faq-entry--active {
  display: block;
}

.faq-entry__overline {
  display: block;
  font-family: var(--main-font-family);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--link-color);
  margin-bottom: 12px;
}

.faq-entry__question {
  font-family: var(--header-font-family);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  color: var(--text-color);
  margin: 0 0 18px;
}

.faq-entry__divider {
  border: none;
  border-top: 1px solid var(--grey);
  margin: 22px 0;
}

.faq-entry__answer {
  font-family: var(--main-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: #4a4a4a;
}

.faq-entry__answer p {
  margin: 0 0 16px;
}

.faq-entry__answer p:last-child {
  margin-bottom: 0;
}

.faq-entry__answer ul {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-entry__answer li {
  font-size: 16px;
  line-height: 24px;
  color: #4a4a4a;
}

.faq-entry__answer strong {
  color: var(--text-color);
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 860px) {
  .faq-hub-header {
    padding: 32px 0 28px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 48px;
  }

  .faq-sidebar {
    position: static;
  }
}
