/* ─────────────────────────────────────────────
 *  AutoBay24 — FAQ page styles
 *  Palette: Navy #0f1923 / Blue #1a6eff / Gold #c9982e
 * ───────────────────────────────────────────── */

/* Generic safety: HTML hidden attribute must always hide elements */
[hidden] { display: none !important; }

.ab-faq-page {
  padding: 16px 0 60px;
  background: var(--ab-bg);
}
.ab-faq-page > .container > *:last-child { margin-bottom: 0; }

/* Breadcrumb styles moved to ab24.css (unified across all pages) */
/* Page header now uses global .ab-page-header from ab24.css */

/* Search */
.ab-faq-search {
  position: relative;
  max-width: 560px;
  margin: 20px auto 0;
}
.ab-faq-search .fa-search {
  position: absolute;
  top: 50%; left: 18px;
  transform: translateY(-50%);
  color: var(--ab-ink-4);
  font-size: 16px;
  pointer-events: none;
}
.ab-faq-search input {
  width: 100%;
  padding: 16px 48px 16px 46px;
  font-size: 15px;
  border: 1.5px solid var(--ab-line);
  border-radius: 100px;
  background: var(--ab-surface);
  font-family: inherit;
  color: var(--ab-ink);
  transition: border-color .15s ease;
}
.ab-faq-search input:hover:not(:focus) {
  border-color: var(--ab-ink-5, #b8c4d4);
}
.ab-faq-search input:focus {
  outline: none;
  border-color: var(--ab-blue);
}
.ab-faq-search input::placeholder {
  color: var(--ab-ink-4);
}
/* Hide native WebKit/Blink search decorations — we use our custom #faqSearchClear */
.ab-faq-search input::-webkit-search-cancel-button,
.ab-faq-search input::-webkit-search-decoration,
.ab-faq-search input::-webkit-search-results-button,
.ab-faq-search input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.ab-faq-search__clear {
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  padding: 0;
  border: 0;
  background: var(--ab-ink-5);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: background .15s;
}
.ab-faq-search__clear:hover { background: var(--ab-ink-3); }

/* ─────────────────────────────────────────────
 *  Audience Tabs
 * ───────────────────────────────────────────── */
.ab-faq-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 6px;
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
  border-radius: 100px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.ab-faq-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  font-size: 14.5px; font-weight: 600;
  color: var(--ab-ink-3);
  background: transparent;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.ab-faq-tab:hover:not(.is-active) { color: var(--ab-ink); }
.ab-faq-tab.is-active {
  background: var(--ab-blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15,94,255,0.25);
}
.ab-faq-tab .fa { font-size: 13px; }

/* ─────────────────────────────────────────────
 *  Layout: sidebar + content (Bootstrap row/col)
 * ───────────────────────────────────────────── */

/* Sidebar */
.ab-faq-sidebar {
  align-self: start;
  position: sticky;
  top: calc(var(--ab-header-h, 64px) + 20px);
}
.ab-faq-catlist {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
  border-radius: 12px;
}
.ab-faq-catlink {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  font-size: 14px;
  color: var(--ab-ink-2);
  text-decoration: none;
  border-radius: 7px;
  transition: all .15s;
  font-weight: 400;
}
.ab-faq-catlink:hover {
  background: var(--ab-blue-soft);
  color: var(--ab-blue);
}
.ab-faq-catlink.is-active {
  background: var(--ab-blue-soft);
  color: var(--ab-blue);
  font-weight: 500;
}
.ab-faq-catlink .fa {
  flex-shrink: 0;
  width: 18px;
  font-size: 13px;
  text-align: center;
}
.ab-faq-catlink span:not(.ab-faq-catlink__count) {
  flex: 1;
  line-height: 1.3;
}
.ab-faq-catlink__count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  min-width: 24px;
  padding: 2px 7px;
  text-align: center;
  background: var(--ab-bg);
  color: var(--ab-ink-3);
  border-radius: 100px;
}
.ab-faq-catlink.is-active .ab-faq-catlink__count {
  background: rgba(15, 94, 255, 0.15);
  color: var(--ab-blue);
}

/* ─────────────────────────────────────────────
 *  Content area
 * ───────────────────────────────────────────── */
.ab-faq-content { min-width: 0; }

.ab-faq-category {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--ab-header-h, 64px) + 20px);
}
.ab-faq-category:last-child { margin-bottom: 0; }
.ab-faq-category__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ab-ink);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ab-blue-soft);
}
.ab-faq-category__title .fa {
  color: var(--ab-blue);
  font-size: 18px;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ab-blue-soft);
  border-radius: 8px;
}

.ab-faq-list {
  display: flex; flex-direction: column;
  gap: 10px;
}

/* Single question card — unified with .ab-faq__item from ab24.css */
.ab-faq-item {
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
  transition: border-color var(--ab-dur) var(--ab-ease);
}
.ab-faq-item[open] { border-color: var(--ab-blue-line); }
.ab-faq-item__q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ab-ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
  line-height: 1.4;
}
.ab-faq-item__q::-webkit-details-marker { display: none; }
.ab-faq-item__q-text { flex: 1; }
.ab-faq-item__icon {
  flex-shrink: 0;
  color: var(--ab-ink-4);
  font-size: 14px;
  transition: transform var(--ab-dur) var(--ab-ease);
}
.ab-faq-item[open] .ab-faq-item__icon {
  transform: rotate(45deg);
  color: var(--ab-blue);
}
.ab-faq-item__a {
  padding: 0 20px 18px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ab-ink-3);
}

/* Search: hidden items */
.ab-faq-item[data-faq-hidden] { display: none; }
.ab-faq-category[data-faq-hidden] { display: none; }

/* No results */
.ab-faq-noresults {
  text-align: center;
  padding: 60px 20px;
  background: var(--ab-surface);
  border: 1px dashed var(--ab-line);
  border-radius: 12px;
}
.ab-faq-noresults .fa {
  font-size: 36px;
  color: var(--ab-ink-5);
  margin-bottom: 16px;
}
.ab-faq-noresults p {
  margin: 0;
  color: var(--ab-ink-3);
  font-size: 15px;
}

/* Highlighted search match */
.ab-faq-match {
  background: rgba(201,152,46,0.22);
  border-radius: 2px;
  padding: 1px 2px;
  font-weight: 700;
  color: var(--ab-ink);
}

/* ─────────────────────────────────────────────
 *  Footer CTA
 * ───────────────────────────────────────────── */
.ab-faq-cta {
  text-align: center;
  padding: 32px 24px;
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.ab-faq-cta p {
  font-size: 15px;
  color: var(--ab-ink);
  font-weight: 600;
  margin: 0;
}

/* ─────────────────────────────────────────────
 *  Responsive
 * ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .ab-faq-sidebar {
    position: static;
  }
}

@media (max-width: 575px) {
  .ab-faq-tabs {
    width: 100%;
    padding: 4px;
  }
  .ab-faq-tab {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
  }
  .ab-faq-tab .fa { display: none; }
  .ab-faq-item__q {
    padding: 16px 20px;
    font-size: 14.5px;
  }
  .ab-faq-item__a {
    padding: 0 20px 18px;
    font-size: 13.5px;
  }
  .ab-faq-category__title {
    font-size: 19px;
  }
  .ab-faq-cta {
    flex-direction: column;
    padding: 24px 18px;
  }
}
