/* ==========================================================
   FULL STAFF DIRECTORY — PROFILE STYLE MATCHING LIBRARY TEAM
   ========================================================== */

.staff-section{
  padding:54px 0 !important;
}

.section-head{
  align-items:flex-end !important;
  margin-bottom:24px !important;
}

.section-head h2{
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:30px !important;
  color:var(--navy) !important;
}

/* Three compact horizontal profile cards */
.staff-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
}

.staff-card{
  min-width:0 !important;
  height:178px !important;
  display:grid !important;
  grid-template-columns:42% 58% !important;
  background:#fff !important;
  border:1px solid #e2e7ee !important;
  border-radius:16px !important;
  overflow:hidden !important;
  box-shadow:0 8px 24px rgba(15,30,74,.06) !important;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease !important;
}

.staff-card:hover{
  transform:translateY(-3px) !important;
  box-shadow:0 14px 30px rgba(15,30,74,.11) !important;
  border-color:#d8dee8 !important;
}

/* Photo side */
.staff-photo{
  position:relative !important;
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  padding:14px 12px 14px 14px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
  background:#fff !important;
}

.staff-photo::before{
  content:"";
  position:absolute;
  width:68%;
  height:72%;
  left:9px;
  bottom:9px;
  border-radius:14px;
  background:linear-gradient(135deg,rgba(15,30,74,.10),rgba(217,134,0,.10));
  transform:rotate(-3deg);
}

.staff-photo img{
  position:relative !important;
  z-index:2 !important;
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-height:150px !important;
  object-fit:cover !important;
  object-position:top center !important;
  border:0 !important;
  border-radius:10px !important;
  background:#fff !important;
  box-shadow:0 8px 20px rgba(15,30,74,.10) !important;
}

/* Placeholder keeps same profile-card appearance */
.staff-placeholder{
  position:relative !important;
  z-index:2 !important;
  width:100% !important;
  height:100% !important;
  max-height:150px !important;
  border:0 !important;
  border-radius:10px !important;
  display:grid !important;
  place-items:center !important;
  background:linear-gradient(145deg,#eef2f8,#e1e7f0) !important;
  color:var(--navy) !important;
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:30px !important;
  box-shadow:0 8px 20px rgba(15,30,74,.08) !important;
}

/* Details side */
.staff-body{
  position:relative !important;
  min-width:0 !important;
  padding:15px 14px 15px 24px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:flex-start !important;
  text-align:left !important;
}

.staff-body::before{
  content:"";
  position:absolute;
  left:0;
  top:18%;
  bottom:18%;
  width:2px;
  border-radius:4px;
  background:linear-gradient(to bottom,#0f1e4a 0 70%,#D98600 70% 100%);
}

.staff-body h3{
  margin:0 !important;
  padding:0 !important;
  color:#0f1e4a !important;
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:17px !important;
  line-height:1.25 !important;
  font-weight:700 !important;
}

.staff-body h3::after{
  content:"";
  display:block;
  width:45px;
  height:3px;
  margin:8px 0 9px;
  border-radius:5px;
  background:#D98600;
}

.staff-role{
  min-height:0 !important;
  margin:0 !important;
  color:#5f6f89 !important;
  font-size:12px !important;
  line-height:1.4 !important;
  font-weight:600 !important;
}

.staff-meta{
  width:100% !important;
  margin:7px 0 0 !important;
  padding:0 !important;
  border-top:0 !important;
  color:#7a879b !important;
  font-size:10.5px !important;
  line-height:1.45 !important;
  overflow-wrap:anywhere !important;
}

.staff-meta a{
  color:#0f1e4a !important;
  font-weight:500 !important;
}

.staff-meta a:hover{
  color:#D98600 !important;
}

/* Responsive */
@media(max-width:1050px){
  .staff-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:680px){
  .staff-section{
    padding:42px 0 !important;
  }

  .staff-grid{
    grid-template-columns:1fr !important;
  }

  .staff-card{
    height:170px !important;
  }

  .staff-photo{
    height:auto !important;
  }

  .section-head{
    align-items:flex-start !important;
  }
}
