/* ============================================================
   FAQ Page
   ============================================================ */

/* ── Hero ── */
.faq-hero {
  padding: 52px 0 44px;
  background: linear-gradient(155deg, #eff6ff 0%, #f8fafc 55%, #f0fdf4 100%);
  border-bottom: 1.5px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.faq-hero::before {
  content: ''; position: absolute; top: -100px; left: -100px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,136,229,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.faq-hero::after {
  content: ''; position: absolute; bottom: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,166,62,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.faq-hero-badge-wrap { margin-bottom: 18px; }
.faq-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 20px;
  background: rgba(30,136,229,0.08); border: 1px solid rgba(30,136,229,0.2);
  border-radius: 50px; font-size: 13px; font-weight: 700; color: var(--primary);
}

.faq-hero-title {
  font-size: 40px; font-weight: 800; color: var(--text);
  line-height: 1.25; margin-bottom: 14px;
}
.faq-hero-accent { color: var(--primary); }
.faq-hero-subtitle {
  font-size: 16px; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 32px; line-height: 1.8;
}

/* Search */
.faq-search-wrap {
  position: relative;
  max-width: 560px; margin: 0 auto 32px;
}
.faq-search-icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  inset-inline-start: 18px;
  width: 20px; height: 20px; color: var(--primary); pointer-events: none;
}
.faq-search-input {
  width: 100%; padding: 16px 18px 16px 52px;
  border: 1.5px solid #dbeafe; border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(30,136,229,0.1);
  font-size: 15px; color: var(--text);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
[dir="rtl"] .faq-search-input { padding: 16px 52px 16px 18px; }
[dir="ltr"] .faq-search-input { padding: 16px 18px 16px 52px; }
[dir="rtl"] .faq-search-icon { right: 18px; left: auto; }
[dir="ltr"] .faq-search-icon { left: 18px; right: auto; }

.faq-search-input:focus { border-color: var(--primary); box-shadow: 0 8px 32px rgba(30,136,229,0.18); }
.faq-search-input::placeholder { color: #b0bec5; }

/* Stats */
.faq-hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap;
}
.faq-stat { text-align: center; }
.faq-stat-num { display: block; font-size: 22px; font-weight: 800; color: var(--primary); }
.faq-stat-lbl { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.faq-stat-sep { width: 1px; height: 36px; background: #dbeafe; }

/* ── Tabs Bar ── */
.faq-tabs-bar {
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.faq-tabs {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
  padding: 0 4px;
}
.faq-tabs::-webkit-scrollbar { display: none; }
.faq-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 18px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); white-space: nowrap;
  border: none; background: none; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1.5px;
  transition: color .18s;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}
.faq-tab svg { width: 16px; height: 16px; flex-shrink: 0; }
.faq-tab:hover { color: var(--primary); }
.faq-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Content Layout ── */
.faq-content-section { padding: 48px 0 64px; }
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-sidebar { order: -1; }
}

/* ── FAQ Group ── */
.faq-group { margin-bottom: 32px; }
.faq-group-header {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--text);
  padding: 12px 0 14px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 4px;
}
.faq-group-header svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

/* ── FAQ List Container ── */
.faq-list {
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 28px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* ── FAQ Item / Accordion ── */
.faq-item {
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
  transition: background .2s;
}
.faq-item:last-of-type { border-bottom: none; }
.faq-item.open { background: linear-gradient(135deg, #fafcff 0%, #f8fffe 100%); }

.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px;
  background: none; border: none; cursor: pointer;
  text-align: start;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  transition: background .15s;
}
.faq-q:hover { background: #f8fafc; }

.faq-q-inner {
  display: flex; align-items: center; gap: 14px; flex: 1;
}

.faq-q-num {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: #eff6ff; color: var(--primary);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.faq-item.open .faq-q-num {
  background: var(--primary); color: #fff;
}

.faq-q-text {
  font-size: 15px; font-weight: 600; color: var(--text);
  line-height: 1.5; flex: 1;
  transition: color .2s;
}
.faq-item.open .faq-q-text { color: var(--primary); }

.faq-arrow-wrap {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.faq-item.open .faq-arrow-wrap { background: rgba(30,136,229,0.1); }

.faq-arrow {
  width: 18px; height: 18px;
  color: var(--text-muted);
  transition: transform .28s ease, color .2s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--primary); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-a { max-height: 800px; }

.faq-a-body {
  margin: 0 24px 22px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #dbeafe;
  border-inline-start: 4px solid var(--primary);
  font-size: 14px; color: var(--text-muted); line-height: 1.9;
  box-shadow: 0 2px 10px rgba(30,136,229,0.06);
}
.faq-a-body p { margin: 0 0 8px; }
.faq-a-body p:last-child { margin-bottom: 0; }
.faq-a-body ol,
.faq-a-body ul {
  padding-inline-start: 20px; margin: 8px 0 0;
}
.faq-a-body li { margin-bottom: 6px; }
.faq-a-body strong { color: var(--text); font-weight: 600; }

/* No results */
.faq-no-results {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 56px 0; color: var(--text-muted);
}
.faq-no-results svg { width: 48px; height: 48px; opacity: .4; }
.faq-no-results p { font-size: 15px; }

/* ── Sidebar ── */
.faq-sidebar { display: flex; flex-direction: column; gap: 20px; }

.faq-sidebar-card {
  background: #fff; border-radius: 16px;
  border: 1.5px solid var(--border);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* Help card */
.faq-help-card { background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%); }
.faq-help-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.faq-help-icon svg { width: 26px; height: 26px; color: #fff; }
.faq-help-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.faq-help-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

.faq-contact-btn, .faq-whatsapp-btn {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .2s; margin-bottom: 8px;
}
.faq-contact-btn {
  background: var(--primary); color: #fff;
}
.faq-contact-btn:hover { background: var(--primary-dark, #1565c0); }
.faq-contact-btn svg { width: 16px; height: 16px; }

.faq-whatsapp-btn {
  background: #dcfce7; color: #16a34a;
  margin-bottom: 0;
}
.faq-whatsapp-btn:hover { background: #bbf7d0; }
.faq-whatsapp-btn svg { width: 16px; height: 16px; }

/* Popular list */
.faq-sidebar-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 14px;
}
.faq-popular-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.faq-popular-list li a {
  font-size: 13px; color: var(--text-muted); text-decoration: none;
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.5;
  transition: color .15s;
}
.faq-popular-list li a::before {
  content: '•'; color: var(--primary); font-size: 18px; line-height: 1; flex-shrink: 0;
}
.faq-popular-list li a:hover { color: var(--primary); }

/* Quick links */
.faq-quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.faq-ql-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 8px; border-radius: 10px;
  background: #f8fafc; border: 1px solid var(--border);
  text-decoration: none; font-size: 12px; color: var(--text-muted);
  font-weight: 600; transition: all .18s; text-align: center;
}
.faq-ql-item svg { width: 20px; height: 20px; color: var(--primary); }
.faq-ql-item:hover { background: #eff6ff; border-color: #bfdbfe; color: var(--primary); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .faq-hero-title { font-size: 28px; }
  .faq-hero { padding: 36px 0 32px; }
  .faq-content-section { padding: 28px 0 48px; }
  .faq-q-text { font-size: 14px; }
  .faq-q { padding: 16px 16px; }
  .faq-a-body { margin: 0 16px 16px; padding: 14px 16px; }
  .faq-hero-stats { gap: 16px; }
  .faq-stat-num { font-size: 18px; }
}
