/* ===== Tokens ===== */
:root {
  --maxw: 1200px;
  --side: 240px;
  --radius: 10px;
  --border: #e5e7eb;
  --text: #374151;
  --muted: #6b7280;
  --brand: #4f46e5; 
  --bg: #ffffff;
  --row: #f9fafb; 
}

/* Layout */
.faqs .container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}
.faqs-layout {
  display: grid;
  grid-template-columns: var(--side) 1fr;
  gap: 28px;
  padding: 24px 0 48px;
}

/* Sidebar */
.faqs-sidebar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  align-self: start;
  position: sticky;
  top: 24px;
}
.faqs-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.faqs-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 600;
}
.faqs-link:hover {
  background: #f3f4f6;
}
.faqs-link.is-active {
  background: #eef2ff; /* بنفس الستايل بالصورة */
  color: #1e1b4b;
  box-shadow: inset 0 0 0 1px #c7d2fe;
}

/* Content */
.faqs-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #543FCB;
  font-size: 20px;
  margin-bottom: 14px;
}
.faq-group {
  margin-top: 6px;
  border: 1px solid #D4D4D8;
}

/* Accordion */
.faq-item {
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  padding: 16px;
  font-weight: 500;
  color: #71717A;
  font-size: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  cursor: pointer;
}
.faq-item.is-open .faq-q {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.faq-a {
  display: none;
  padding: 12px 14px 14px;
  color: var(--text);
  line-height: 1.7;
}
.faq-item.is-open .faq-a {
  display: block;
}

.faq-a p {
  margin: 0 0 8px;
  color: var(--text);
}
.faq-a ul {
  margin: 6px 0 0 18px;
  color: var(--text);
}
.faq-a li {
  margin: 4px 0;
}

.chev {
  transition: transform 0.2s ease;
  opacity: 0.8;
}
.faq-item.is-open .chev {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 980px) {
  :root {
    --side: 220px;
  }
}
@media (max-width: 820px) {
  .faqs-layout {
    grid-template-columns: 1fr;
  }
  .faqs-sidebar {
    position: static;
  }
}
