.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 20px;
}

/* Individual staff card styling */
.staff-card {
  background-color: var(--primary-color);
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  max-width: 250px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

/* Hover effect */
.staff-card:hover {
  transform: translateY(-5px);
}

/* Image styling */
.staff-card img {
  width: 50%;
  border-radius: 50%;
  margin-bottom: 15px;
  aspect-ratio: 1 / 1;
  object-fit: fill;
}

/* Name styling */
.staff-card h2 {
  margin: 10px 0 5px;
  font-size: 1.7rem;
}

/* Description styling */
.staff-card p {
  color: #000;
  font-size: 1rem;
}

/* Responsive typography and spacing */
@media (max-width: 600px) {
  .staff-card {
    padding: 1.5rem;
    max-width: 100%;
  }

  .staff-card h3 {
    font-size: 1rem;
  }

  .staff-card p {
    font-size: 0.9rem;
  }
}