/* FAQ Plugin — Accordion */

.faq-wrap {
  max-width: 860px;
  margin: 0 auto;
  font-family: inherit;
}

.faq-category {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #888;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
}
.faq-category:first-child { margin-top: 0; }

.faq-item {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow .15s;
}
.faq-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.faq-item.faq-open { border-color: #6366f1; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  font-family: inherit;
  transition: background .12s;
}
.faq-q:hover { background: #f9f9ff; }
.faq-item.faq-open .faq-q { background: #f5f3ff; color: #4f46e5; }

.faq-q-text { flex: 1; line-height: 1.45; }

.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f0f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  color: #6366f1;
  transition: transform .22s ease, background .12s;
}
.faq-item.faq-open .faq-icon {
  transform: rotate(45deg);
  background: #ede9fe;
}

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .28s ease;
}
.faq-a:not([hidden]) { max-height: 1000px; }

.faq-a-inner {
  padding: 0 20px 18px;
  font-size: .94rem;
  line-height: 1.7;
  color: #444;
}

/* Dark-mode courtesy */
@media (prefers-color-scheme: dark) {
  .faq-item          { border-color: #333; background: #1a1a1a; }
  .faq-q             { background: #1a1a1a; color: #eee; }
  .faq-q:hover       { background: #222; }
  .faq-item.faq-open .faq-q { background: #1e1b4b; color: #a5b4fc; }
  .faq-icon          { background: #2a2a2a; }
  .faq-item.faq-open .faq-icon { background: #312e81; }
  .faq-a-inner       { color: #bbb; }
  .faq-category      { color: #666; border-color: #333; }
}
