/* ─── Directory Page ──────────────────────────────────── */

/* Floating filter dropdown */
.filter-dropdown {
  position: absolute;
  z-index: 200;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.12);
  padding: 6px;
  max-height: 220px;
  overflow-y: auto;
}
.filter-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 0.8125rem;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  color: #334155;
  transition: background 0.1s;
}
.filter-dropdown-item:hover { background: #f1f0fe; color: #6d28d9; }
.filter-dropdown-item.active { background: #ede9fe; color: #6d28d9; font-weight: 600; }

/* Active filter button highlight */
[data-filter].filter-active {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #6d28d9;
}

/* Institution hero campus image overlay */
.hero-overlay {
  background: linear-gradient(to right, #fff, rgba(255,255,255,0.90), rgba(255,255,255,0.10));
}

/* Filter chip */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
}
.filter-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
  display: flex;
}

/* Pagination active page */
.page-btn { font-size: 0.875rem; font-weight: 600; }
.page-btn.active {
  background: #6d28d9;
  color: #fff;
  box-shadow: 0 4px 12px rgba(109,40,217,0.30);
}
.page-btn:not(.active) { background: #fff; color: #334155; }
.page-btn:not(.active):hover { background: #f8fafc; }
