.directory-container {
  background: #f5f5f5;
}

/* ===== DIRECTORY (block) ===== */
.directory {
  margin: 0 auto;
  box-sizing: border-box;
  min-height: 100vh;
  box-sizing: border-box;
  font: 16px/1.5  'Carlito', system-ui, 'Segoe UI', Roboto, sans-serif;
}

.directory__title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 24px 0;
}

.directory__section {
  margin-bottom: 40px;
}

.directory__section:last-child {
  margin-bottom: 0;
}

.directory__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 24px 0;
  padding-bottom: 8px;
  position: relative;
  font-family: 'Carlito', system-ui, 'Segoe UI', Roboto, sans-serif;
}

.directory__section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: #1e3a5e;
  border-radius: 2px;
}

.directory__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%/3), 1fr));
  gap: 24px;
}

.directory__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: #525252;
  font-size: 15px;
}

.directory__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: #525252;
  font-size: 15px;
}

.directory__loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #1e3a5e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== FILTER-BAR (block) ===== */
.filter-bar {
  margin-bottom: 32px;
}

.filter-bar__top {
  display: flex;
  gap: 16px;
  align-items: center;
}

.filter-bar__btn {
  font: inherit;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  border: 2px solid #1e3a5e;
  background: #fff;
  color: #1e3a5e;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    background 0.2s,
    color 0.2s;
  flex-shrink: 0;
}

.filter-bar__btn:hover {
  background: #1e3a5e;
  color: #fff;
}

.filter-bar__btn:hover .filter-bar__icon {
  color: #fff;
}

.filter-bar__btn--active {
  background: #1e3a5e;
  color: #fff;
}

.filter-bar__btn--active .filter-bar__icon {
  color: #fff;
}

.filter-bar__icon {
  color: #1e3a5e;
  transition: color 0.2s;
}

.filter-bar__search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.filter-bar__input {
  width: 100%;
  font: inherit;
  font-family: var(--sans);
  font-size: 15px;
  padding: 8px 40px 8px 16px;
  border-radius: 30px;
  border: 2px solid #1e3a5e;
  background: #fff;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.filter-bar__input:focus {
  border-color: #1e3a5e;
}

.filter-bar__input::placeholder {
  color: #525252;
}

.filter-bar__search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #1e3a5e;
  pointer-events: none;
}

.filter-bar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-bar__chip {
  font: inherit;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid #1e3a5e;
  background: #fff;
  color: #1e3a5e;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.filter-bar__chip:hover {
  background: #1e3a5e;
  color: #fff;
}

.filter-bar__chip--active {
  background: #1e3a5e;
  color: #fff;
  border-color: #1e3a5e;
}


/* ===== PERSON-CARD (block) ===== */
.person-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s;
}

.person-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.person-card__photo {
  width: 100%;
  aspect-ratio: 7/4;
  overflow: hidden;
  background: #e8e8e8;
}

.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.person-card__body {
  padding: 20px 24px 24px;
}

.person-card__cargo {
  font-size: 13px;
  font-weight: 500;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.person-card__name {
  font-size: 22px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 14px 0;
  line-height: 1.3;
  font-family: 'Carlito', system-ui, 'Segoe UI', Roboto, sans-serif;
}

.person-card__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 16px;
  color: #525252;
}

.person-card__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.person-card__contact-text {
  line-height: 1.4;
}

.person-card__contact-text a {
  color: #555;
  text-decoration: none;
}

.person-card__contact-text a:hover {
  color: #1a1a2e;
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 575.98px) {
  .directory {
    padding: 24px 16px;
  }

  .directory__title {
    font-size: 24px;
  }

  .filter-bar__top {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar__search {
    max-width: 100%;
  }

  .directory__grid {
    grid-template-columns: 1fr;
  }
}
