.staff-section {
    background: #eaf2fd;
    padding: 50px 20px;
    text-align: center;
  }
  
  .staff-section h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
    position: relative;
  }
  
  .staff-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centers incomplete last rows */
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .staff-card {
    background: #fff;
    border-radius: 15px;
    width: calc(50% - 8px); /* 2 per row on mobile */
    max-width: 190px;
    padding: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  }
  
  .staff-card img {
    width: 100%;
    height: 180px;
    border-radius: 12px; 
    object-fit: cover;
    margin-bottom: 12px;
  }
  
  .staff-name {
    background: #0d6efd;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    margin: 10px 0 5px;
    font-size: 14px;
  }
  
  .staff-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
  }
  
  /*Staff banner section*/

  .staff-hero-banner {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-top: 70px; /* gap below navbar */
  }
  
  .staff-bg-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: blur(8px); /* adds blur effect */
  }
  
  .staff-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 86, 164, 0.5), rgba(0, 86, 164, 0.3));
    z-index: 1;
  }
  
  .staff-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
  }
  
  .staff-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease 0.3s both;
  }

/* Responsive Staff Grid */
@media screen and (min-width: 576px) {
  .staff-card {
    width: calc(33.333% - 12px);
    max-width: 190px;
  }
}
@media screen and (min-width: 768px) {
  .staff-grid { gap: 20px; }
  .staff-card { width: 190px; }
}
