/**
 * faq.css – FAQ redesign (2026). Mockup: ui-ux-redesign-2026/mockups/faq.html.
 * IMPORTANT: the original top hero keeps its background image via the legacy
 * class .u_1725673377 (defined in newlayout.css); this file only restyles the
 * hero content + adds the search box, sticky side-nav and category layout.
 * Uses --c-* tokens (tokens.css), dark-mode aware.
 */

/* ---- Hero (background image preserved via .u_1725673377) ---- */
.alx-faq-hero__title {
  font-family: var(--font-display);
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 8px;
}
.alx-faq-hero__sub { color: #e7eef6; font-size: 1.05rem; margin: 0 0 var(--sp-lg); }
.alx-faq-search { max-width: 560px; margin: 0 auto; }
.alx-faq-search input {
  width: 100%;
  background: #ffffff;
  color: #15212e;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 14px 20px;
  font-size: 1rem;
  font-family: var(--font-body);
}
.alx-faq-search input:focus { outline: none; box-shadow: var(--focus-ring); }

/* ---- Layout: sticky side-nav + content ---- */
.alx-faq-wrap { padding-top: var(--sp-xl); padding-bottom: var(--sp-xl); }
.alx-faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-xl);
  align-items: start;
}
.alx-faq-nav {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.alx-faq-nav a {
  color: var(--c-muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  border-left: 3px solid transparent;
  font-weight: 600;
  font-family: var(--font-button);
}
.alx-faq-nav a:hover,
.alx-faq-nav a.is-active {
  color: var(--c-text);
  background: var(--c-bg-muted);
  border-color: var(--c-blue);
}

/* ---- Category sections ---- */
.alx-faq-cat { scroll-margin-top: 80px; }
.alx-faq-cat[hidden] { display: none; }
.alx-faq-cat__title {
  font-family: var(--font-display);
  color: var(--c-blue);
  border-bottom: 2px solid var(--c-green);
  display: inline-block;
  padding-bottom: 6px;
  margin: var(--sp-xl) 0 var(--sp-sm);
  font-size: 1.4rem;
}
.alx-faq-cat:first-child .alx-faq-cat__title { margin-top: 0; }

@media (max-width: 860px) {
  .alx-faq-layout { grid-template-columns: 1fr; }
  .alx-faq-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--sp-md);
  }
  .alx-faq-nav a { border-left: none; border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 8px 14px; }
}

/* Force-center hero text (overrides any global left-aligned p rule) */
.alx-faq-hero__title,
.alx-faq-hero__sub { text-align: center; }

/* Hero band is brand-navy in any theme -> fixed light text for contrast */
.alx-faq-hero__title { color: #ffffff !important; }
.alx-faq-hero__sub { color: #cfe0f0 !important; }
