/* =========================================================
   BENZINEHUB — faq.css
   Extra styles for faq.html only. Load it AFTER style.css.
   1 Setup   2 Page hero + search   3 Most asked cards
   4 Sidebar 5 Question groups      6 Call to action
   7 Responsive
   ========================================================= */

/* 1. SETUP ------------------------------------------------ */
.brand img,
.site-footer .brand img { width: auto; height: 34px; }   /* wide wordmark logo */
[hidden] { display: none !important; }
mark { padding: 0 2px; border-radius: 3px; background: #ffe9a6; color: inherit; }

/* group colours: set data-color="..." on a topic */
.faq-group { --c: #1d63f0; }
.faq-group[data-color="blue"]   { --c: #1d63f0; }
.faq-group[data-color="green"]  { --c: #10a36f; }
.faq-group[data-color="orange"] { --c: #f59e0b; }
.faq-group[data-color="purple"] { --c: #7c4dff; }
.faq-group[data-color="teal"]   { --c: #0e9f8e; }
.faq-group[data-color="pink"]   { --c: #d9469a; }
.faq-group[data-color="red"]    { --c: #e5484d; }
.faq-group[data-color="indigo"] { --c: #4f46e5; }
.faq-group[data-color="sky"]    { --c: #0284c7; }

/* 2. PAGE HERO + SEARCH ------------------------------------ */
.faq-hero { padding: 26px 0 44px; }
.crumbs { display: flex; gap: 12px; margin-bottom: 14px; font-size: 13px; font-weight: 500; color: var(--muted); }
.crumbs a:hover { color: var(--blue); }

.faq-search { position: relative; max-width: 620px; margin-top: 30px; }
.faq-search input {
  width: 100%; height: 58px; padding: 0 128px 0 62px; border: 1.5px solid var(--line); border-radius: 29px;
  background: #fff; font: 400 15px var(--font); color: var(--ink);
}
.faq-search input::placeholder { color: #8c98b0; }
.faq-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 88, 245, 0.12); }
.faq-search .s-ic { position: absolute; top: 50%; left: 26px; transform: translateY(-50%); font-size: 20px; color: var(--muted); pointer-events: none; }
.faq-search button {
  position: absolute; top: 9px; right: 9px; height: 40px; padding: 0 24px; border: 0; border-radius: 20px;
  background: var(--blue); color: #fff; font: 700 14px var(--font); cursor: pointer;
}
.faq-search button:hover { background: var(--blue-dark); }
.faq-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.faq-pop strong { margin-right: 6px; font-size: 13px; }
.faq-pop button {
  height: 30px; padding: 0 15px; border: 1.3px solid var(--line); border-radius: 15px; background: #fff;
  font: 500 13px var(--font); color: var(--ink); cursor: pointer;
}
.faq-pop button:hover { border-color: var(--blue); color: var(--blue); }
.faq-status { min-height: 1.5em; margin-top: 14px; font-size: 14px; color: var(--muted); }

/* 3. MOST ASKED ------------------------------------------- */
.most { padding: 56px 0; background: var(--bg); }
.most .sec-head { margin-bottom: 30px; }
.most h2 { margin-top: 2px; font-size: clamp(1.6rem, 2.4vw, 2.125rem); }
.ma-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ma-card { display: flex; flex-direction: column; padding: 22px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.ma-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c); color: #fff; font-size: 20px; }
.ma-card h3 { margin-top: 18px; font-size: 15.5px; }
.ma-card p { flex: 1; margin: 8px 0 16px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* 4. LAYOUT + SIDEBAR -------------------------------------- */
.faq-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; padding: 64px 32px 88px; scroll-margin-top: 90px; }
.faq-side {
  position: sticky; top: 96px; display: grid; gap: 24px;
  max-height: calc(100vh - 116px); overflow-y: auto;
}
.topics { padding: 20px 10px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.topics h3 { padding: 0 14px 10px; font-size: 15px; }
.topics a {
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
}
.topics a:hover { background: var(--bg); }
.topics a i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--blue)); flex: none; }
.topics a span { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.topics a.on { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.topics a.on span { color: var(--blue); }

.help { padding: 28px 24px; border-radius: 18px; background: var(--blue-dark); color: #fff; }
.help-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #3066e0; font-size: 20px; }
.help h3 { margin-top: 22px; font-size: 19px; }
.help p { margin: 10px 0 22px; font-size: 13.5px; line-height: 1.6; color: #dbe7ff; }
.btn-white { background: #fff; color: var(--blue-dark); }
.btn-white:hover { background: #eaf1ff; }
.btn-white .arrow-circle { background: var(--blue-dark); color: #fff; }
.help-inline { display: none; margin-top: 40px; }

/* 5. QUESTION GROUPS --------------------------------------- */
.faq-group { margin-bottom: 48px; scroll-margin-top: 100px; }
.faq-group:last-of-type { margin-bottom: 0; }
.faq-gh { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.faq-gic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--c); color: #fff; font-size: 20px; }
.faq-gh h2 { font-size: 22px; }
.faq-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.faq-list { padding: 2px 0; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }

.faq-item { margin: 0 24px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.faq-item:first-child { border-top: 0; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px;
  font-size: 16px; font-weight: 500; line-height: 1.4; list-style: none; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); font-size: 19px; font-weight: 600; line-height: 1;
}
.faq-item summary:hover { color: var(--blue); }
.faq-item[open] { margin: 6px 8px; padding: 0 16px; border-top: 0; border-radius: 12px; background: #f6f9ff; }
.faq-item[open] + .faq-item { border-top: 0; }
.faq-item[open] summary { font-weight: 700; color: var(--blue); }
.faq-item[open] summary::after { content: "\2212"; background: var(--blue); color: #fff; }
.faq-answer { padding: 0 56px 22px 4px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.faq-answer p + p { margin-top: 10px; }

.faq-empty { padding: 44px 24px; border: 2px dashed #96b8f2; border-radius: 16px; text-align: center; color: var(--muted); }
.faq-empty strong { display: block; margin-bottom: 6px; font-size: 17px; color: var(--ink); }
.faq-empty a { color: var(--blue); font-weight: 700; }

/* 6. CALL TO ACTION (same banner as the other pages, with a tidier heading) */
.cta-grid { grid-template-columns: 1.8fr 1fr 0.7fr; }
.cta h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); }

/* 7. RESPONSIVE --------------------------------------------- */
@media (max-width: 1180px) {
  .cta-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .ma-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 20px 64px; }
  .faq-side { position: static; max-height: none; overflow: visible; }
  .help { display: none; }
  .help-inline { display: block; }
  .topics ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .topics a { height: 38px; padding: 0 14px; border: 1.3px solid var(--line); border-radius: 999px; }
  .topics a span { margin-left: 4px; }
}
@media (max-width: 680px) {
  .ma-grid, .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-search input { padding-right: 100px; }
  .faq-search button { padding: 0 18px; }
  .faq-gh h2 { font-size: 19px; }
  .faq-count { display: none; }
  .faq-item summary { font-size: 15px; }
  .faq-answer { padding-right: 8px; }
  .faq-item[open] { margin: 6px 4px; padding: 0 12px; }
}
