
/* =========================================================
 *  FAQS
 * ======================================================= */

.dt-faq {
  border-radius: var(--dt-radius-md);
  overflow: hidden;
  border: 0;
  background: #ffffff;
  box-shadow: var(--dt-shadow-strong);
  margin-top: 0;
}

.dt-faq .card-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

/* KPI strip */
.dt-faq-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.dt-faq-kpi {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--dt-radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background-color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  font-size: 0.85rem;
}

.dt-faq-kpi::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: var(--dt-radius-pill);
  background: #6366f1;
}

.dt-faq-kpi-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.dt-faq-kpi-value {
  font-weight: 600;
  color: #0f172a;
}

/* Filters */
.dt-faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}

.dt-faq-filter-search {
  flex: 1 1 260px;
  min-width: 230px;
}

.dt-faq-filter-select {
  flex: 0 0 220px;
  min-width: 180px;
}

#dtFaqSearch,
#dtFaqCategoryFilter {
  border-radius: var(--dt-radius-pill);
  font-size: 0.9rem;
}

#dtFaqSearch:focus,
#dtFaqCategoryFilter:focus {
  border-color: rgba(129, 140, 248, 0.8);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.16),
    0 0 0 4px rgba(129, 140, 248, 0.1);
  outline: none;
}

/* FAQ list / item */
.dt-faq-list {
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  padding: 0.5rem 0.8rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.dt-faq-item {
  border-radius: 1rem;
  padding: 0.35rem 0.6rem 0.6rem;
  margin-bottom: 0.35rem;
}

.dt-faq-item:last-child {
  margin-bottom: 0;
}

/* toggle button */
.dt-faq-toggle {
  width: 100%;
  background: none;
  border: 0;
  padding: 0.6rem 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  border-radius: 0.9rem;
  transition:
    background-color 120ms ease-out,
    box-shadow 120ms ease-out,
    transform 120ms ease-out;
}

.dt-faq-toggle:hover {
  background-color: #f3f4ff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.09);
  transform: translateY(-1px);
}

.dt-faq-question {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  padding-right: 0.75rem;
}

/* chevron */
.dt-faq-chevron {
  width: 18px;
  height: 18px;
  border-radius: var(--dt-radius-pill);
  border: 1px solid #c7d2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dt-faq-chevron::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #4f46e5;
  border-bottom: 2px solid #4f46e5;
  transform: rotate(45deg);
  transition: transform 120ms ease-out;
}

/* active state */
.dt-faq-item.is-open .dt-faq-toggle {
  background-color: #eef2ff;
}

.dt-faq-item.is-open .dt-faq-chevron::before {
  transform: rotate(-135deg);
}

/* answer block */
.dt-faq-answer {
  padding: 0 0.45rem 0.35rem;
  color: #4b5563;
}

.dt-faq-meta {
  padding: 0 0.45rem 0.2rem;
  border-top: 1px dashed #e5e7eb;
  margin-top: 0.15rem;
  padding-top: 0.25rem;
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .dt-faq-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .dt-faq-kpis {
    grid-template-columns: minmax(0, 1fr);
  }
  .dt-faq .card-body {
    padding: 1.25rem 1.1rem 1.6rem;
  }
}