body {
  font-family: sans-serif;
  text-align: center;
  margin-top: 2rem;
}

header {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 8px;
}

/* Base: 1 column on extra‑small screens */
#profiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}

/* Small: ≥576px → 2 columns */
@media (min-width: 576px) {
  #profiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium: ≥768px → 3 columns */
@media (min-width: 768px) {
  #profiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large: ≥1024px → 4 columns */
@media (min-width: 1024px) {
  #profiles {
    grid-template-columns: repeat(4, 1fr);
  }
}

.profile-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin: 1rem;
  max-width: 280px;
  text-align: center;
  font-family: sans-serif;
  transition: transform 0.2s ease;
}
.profile-card:hover {
  transform: translateY(-4px);
}

.avatar-initials {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
}

.profile-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  color: #333;
}

.profile-card .role {
  margin: 0 0 1rem;
  color: #666;
}

.profile-card p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: #444;
}

.profile-card .bio {
  margin-top: 1rem;
  font-style: italic;
  color: #555;
}
