/* ============================================
   COMMON QUESTIONS (/faq) — the design kept these rules inline in faq.html.
   ============================================ */
<style>
/* ══ Hero ══ */
.faq-hero {
  background: linear-gradient(135deg, #01060b 0%, #0a3d2b 45%, #1f7a63 80%, #2a7a55 100%);
  padding: 4rem 0 3rem; position: relative; overflow: hidden;
}
.faq-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 60%, rgba(230,184,92,.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(46,184,114,.1) 0%, transparent 40%);
}

/* ══ Search box ══ */
.faq-search-wrap {
  max-width: 680px; margin: 0 auto;
  position: relative;
}
.faq-search-wrap .faq-search-input {
  border-radius: 50px;
  padding: 14px 56px 14px 20px;
  font-size: 1rem;
  border: 2px solid rgba(46,184,114,.35);
  background: rgba(255,255,255,.05);
  color: #fff;
  width: 100%;
  transition: border-color .2s, background .2s;
}
.faq-search-wrap .faq-search-input::placeholder { color: rgba(255,255,255,.5); }
.faq-search-wrap .faq-search-input:focus {
  outline: none;
  border-color: #2eb872;
  background: rgba(255,255,255,.1);
}
.faq-search-icon {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.5); font-size: 1.1rem; pointer-events: none;
}
.faq-result-count {
  text-align: center; margin-top: 10px;
  font-size: .85rem; color: rgba(255,255,255,.6);
  min-height: 20px;
}

/* ══ Category filter pills ══ */
.faq-filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.faq-filter-btn {
  padding: 6px 16px; border-radius: 30px;
  border: 1px solid rgba(46,184,114,.3);
  background: transparent; color: var(--bs-body-color);
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.faq-filter-btn:hover { border-color: #2eb872; color: #1f7a63; background: rgba(46,184,114,.06); }
.faq-filter-btn.active { background: #1f7a63; border-color: #1f7a63; color: #fff; }

/* ══ Category section ══ */
.faq-cat-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 1rem;
}
.faq-cat-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

/* ══ Accordion cards ══ */
.faq-item {
  border: 1px solid var(--bs-border-color, #e2e8f0);
  border-radius: .875rem;
  overflow: hidden;
  margin-bottom: .6rem;
  transition: box-shadow .15s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.faq-item.faq-hide { display: none; }

.faq-item .accordion-button {
  background: transparent;
  font-weight: 600; font-size: .95rem;
  padding: 1rem 1.25rem;
  color: var(--bs-body-color);
  border-radius: .875rem;
}
.faq-item .accordion-button:not(.collapsed) {
  color: #1f7a63;
  background: rgba(46,184,114,.04);
  box-shadow: none;
}
.faq-item .accordion-button::after {
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231f7a63'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq-item .accordion-body {
  padding: .25rem 1.25rem 1.25rem;
  font-size: .94rem; line-height: 1.7;
}

/* ══ Tag badge on question ══ */
.faq-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 20px;
  vertical-align: middle; margin-left: 6px; flex-shrink: 0;
}

/* ══ Misconception highlight ══ */
.faq-misconception-bar {
  background: rgba(239,68,68,.07);
  border-left: 3px solid #ef4444;
  border-radius: 0 .5rem .5rem 0;
  padding: .6rem 1rem; margin-bottom: .75rem;
  font-size: .88rem;
}
.faq-truth-bar {
  background: rgba(46,184,114,.07);
  border-left: 3px solid #2eb872;
  border-radius: 0 .5rem .5rem 0;
  padding: .6rem 1rem; margin-bottom: .75rem;
  font-size: .88rem;
}

/* ══ Quran verse in answer ══ */
.faq-verse {
  background: linear-gradient(135deg, rgba(31,122,99,.06), rgba(46,184,114,.04));
  border-left: 4px solid #1f7a63;
  border-radius: 0 .6rem .6rem 0;
  padding: .75rem 1rem; margin: .75rem 0;
  font-size: .88rem;
}
.faq-verse-arabic {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.15rem; direction: rtl; text-align: right;
  color: #1f7a63; margin-bottom: 4px;
}

/* ══ No results ══ */
#faqNoResults {
  display: none; text-align: center; padding: 3rem 0;
  color: var(--bs-body-color);
}

/* ══ Stats bar ══ */
.faq-stats-bar {
  background: linear-gradient(90deg, #0a3d2b, #1f7a63);
}

/* ══ Additions for the server-rendered page ══ */
/* The search box is a real form and the category pills are links, so both work without script. */
.faq-search-wrap form { margin: 0; }
a.faq-filter-btn { text-decoration: none; display: inline-block; }
.faq-category.faq-hide { display: none; }
#faqNoResults.faq-show { display: block; }
.faq-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
.faq-hero-highlight { color: #e6b85c; }
.faq-stat { border-right: 1px solid rgba(255,255,255,.15); }
.faq-stat:last-child { border-right: 0; }
.faq-stat-label { font-size: .75rem; color: rgba(255,255,255,.7); }
.faq-cta { background: linear-gradient(135deg, #0a3d2b, #1f7a63); }
.faq-cta-text { color: rgba(255,255,255,.82); max-width: 520px; margin: 0 auto 1.5rem; }
@media (max-width: 767.98px) {
  .faq-stat:nth-child(2n) { border-right: 0; }
}
