/* ============================================
   staff.css — Staff page specific styles
============================================ */

/* ===== PAGE HERO ===== */
.staff-hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10,28,60,.92) 0%, rgba(26,58,107,.88) 60%, rgba(15,35,71,.95) 100%),
    url('assets/images/hero-bg.jpg') center/cover no-repeat;
  padding: 5rem 0 4rem;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(200,168,75,.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .3s; }
.breadcrumb a:hover { color: var(--gold); }
.bc-sep { color: rgba(255,255,255,.35); }
.breadcrumb span:last-child { color: var(--gold); font-weight: 600; }
.page-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.page-hero-content p {
  color: rgba(255,255,255,.72);
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== FILTER BAR ===== */
.staff-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: .85rem 0;
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.staff-filter-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.filter-tabs { display: flex; gap: .5rem; }
.filter-btn {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  padding: .4rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.staff-count { font-size: .82rem; color: var(--gray-400); }
.staff-count span { font-weight: 700; color: var(--navy); }

/* ===== STAFF LIST SECTION ===== */
.staff-list-section { padding: 3rem 0 5rem; background: var(--gray-50); }

/* ===== 3-COLUMN STAFF GRID ===== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 900px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .staff-grid { grid-template-columns: 1fr; } }

/* ===== STAFF SUMMARY CARD ===== */
.scard {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.scard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.scard-photo-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  overflow: hidden;
}
.scard-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.scard-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
}
.scard-badge {
  position: absolute;
  bottom: .75rem;
  left: .75rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 50px;
}

.scard-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.scard-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy-dark);
  margin-bottom: .15rem;
  line-height: 1.25;
}
.scard-creds {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: .04em;
  margin-bottom: .25rem;
  min-height: 1em;
}
.scard-role {
  font-size: .82rem;
  color: var(--gray-500);
  margin-bottom: .85rem;
}
.scard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1.1rem;
  flex: 1;
  align-content: flex-start;
}

.scard-btn {
  display: block;
  width: 100%;
  padding: .6rem 1rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .2s ease;
  text-align: center;
}
.scard-btn:hover { background: var(--navy-dark); }

.scard-soon {
  display: block;
  text-align: center;
  font-size: .78rem;
  color: var(--gray-400);
  font-style: italic;
  padding: .6rem 0;
  border-top: 1px solid var(--gray-100);
}
.scard-placeholder { opacity: .85; }

/* ===== PROFILE DIALOG PANEL ===== */
dialog.profile-panel {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(560px, 100vw);
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border: none;
  border-left: 1px solid var(--gray-200);
  border-radius: 0;
  padding: 0;
  overflow-y: auto;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
  translate: 100% 0;
  opacity: 0;
  transition: translate .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
dialog.profile-panel.is-open {
  translate: 0 0;
  opacity: 1;
}

dialog.profile-panel::backdrop {
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}

.panel-close {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--gray-600);
  cursor: pointer;
  z-index: 10;
  float: right;
  margin: 1rem 1rem 0 0;
  transition: background .2s, color .2s;
}
.panel-close:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.panel-inner { padding: 1rem 1.75rem 2.5rem; clear: both; }

.panel-head {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}
.panel-photo {
  width: 90px;
  height: 110px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  border: 2px solid rgba(200,168,75,.4);
  flex-shrink: 0;
}

.panel-contact {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: .85rem 1rem;
  background: var(--gray-50);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.pc-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .8rem;
  color: var(--gray-600);
}
.pc-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .1rem; }
.pc-item a { color: var(--navy); text-decoration: none; }
.pc-item a:hover { color: var(--gold-dark); }

.panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

/* ===== SHARED PROFILE CONTENT STYLES ===== */
.profile-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .75rem;
  border-radius: 50px;
  margin-bottom: .5rem;
}
.hod-badge { background: var(--gold); color: var(--navy-dark); }

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy-dark);
  margin-bottom: .15rem;
  line-height: 1.25;
}
.profile-credentials {
  font-size: .8rem;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .2rem;
}
.profile-title { font-size: .85rem; color: var(--gray-600); }

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.ptag {
  background: rgba(26,58,107,.08);
  color: var(--navy);
  border: 1px solid rgba(26,58,107,.15);
  font-size: .7rem;
  font-weight: 600;
  padding: .22rem .65rem;
  border-radius: 50px;
}

.profile-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--gray-100);
}
.profile-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.profile-section h3 {
  font-family: var(--font-heading);
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.profile-section h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}
.profile-section p {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: .75rem;
}
.profile-section p:last-child { margin-bottom: 0; }
.profile-section strong { color: var(--navy-dark); }

/* Qualifications */
.qual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem;
  margin-bottom: .75rem;
}
.qual-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  background: var(--gray-50);
  border-left: 3px solid var(--gold);
  padding: .75rem .9rem;
  border-radius: 0 8px 8px 0;
}
.qual-deg {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.qual-field { font-size: .8rem; font-weight: 600; color: var(--gray-800); }
.qual-inst { font-size: .74rem; color: var(--gray-400); }

.memberships { display: flex; flex-wrap: wrap; gap: .45rem; }
.mem-tag {
  background: rgba(26,58,107,.07);
  border: 1px solid rgba(26,58,107,.15);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 50px;
}

/* Publications */
.pub-list {
  list-style: none;
  counter-reset: pub-counter;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.pub-list li {
  counter-increment: pub-counter;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: .5rem;
  font-size: .82rem;
  color: var(--gray-600);
  line-height: 1.7;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--gray-100);
}
.pub-list li:last-child { border-bottom: none; padding-bottom: 0; }
.pub-list li::before {
  content: counter(pub-counter);
  font-size: .72rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .25rem;
}
.pub-list em { font-style: italic; color: var(--navy-mid); }
.pub-list strong { color: var(--gray-800); }
.pub-authors { font-weight: 600; color: var(--navy-dark); }

/* Leadership */
.leadership-list { display: flex; flex-direction: column; gap: .5rem; }
.leader-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: .65rem;
  align-items: baseline;
  padding: .55rem .8rem;
  background: var(--gray-50);
  border-left: 3px solid var(--navy);
  border-radius: 0 8px 8px 0;
  font-size: .84rem;
}
@media (max-width: 500px) { .leader-item { grid-template-columns: 1fr; gap: .15rem; } }
.leader-period { font-size: .72rem; font-weight: 700; color: var(--gold-dark); white-space: nowrap; }
.leader-role { color: var(--gray-700); }

/* Research output stats */
.output-stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.ostat {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-align: center;
  min-width: 100px;
}
.ostat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .25rem;
}
.ostat-label { font-size: .7rem; color: rgba(255,255,255,.7); line-height: 1.3; }

/* Academic profile links inside panel */
.alink {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  padding: .38rem .8rem;
  border-radius: 6px;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  color: var(--navy);
  background: var(--gray-50);
}
.alink:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Hidden by filter */
.scard.hidden { display: none; }
