
/* ── HERO ── */
.faculty-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 8s ease;
}
.faculty-hero:hover .faculty-hero-bg { transform: scale(1.04); }
.faculty-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.45) 45%,
    rgba(0,0,0,0.20) 100%
  );
}
.faculty-hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.20) 0%, transparent 55%);
}
.faculty-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1f14 0%, #1a3c2e 100%);
}
.faculty-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 68px 0 50px;
}
.fh-bc { margin-bottom: 16px; }
.fh-bc a, .fh-bc span { font-size: 0.78rem; color: rgba(255,255,255,0.42); text-decoration: none; }
.fh-bc a:hover { color: #74c69d; }
.fh-bc .sep { margin: 0 7px; }
.fh-bc .cur { color: #74c69d; font-weight: 600; }
.fh-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(94,234,141,0.12);
  border: 1px solid rgba(94,234,141,0.28);
  color: #74c69d;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.faculty-hero-inner h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 10px;
}
.faculty-hero-inner p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0;
}
.fh-stats {
  display: flex;
  gap: 28px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.fh-stat .num {
  font-family: 'Raleway', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #74c69d;
  line-height: 1;
}
.fh-stat .lbl {
  font-size: 0.63rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

/* ── BODY ── */
.faculty-body { padding: 48px 0 80px; background: #f4f9f6; }

/* Search bar */
.faculty-search-bar {
  background: #fff;
  border: 1px solid #e0ede7;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  box-shadow: 0 2px 12px rgba(45,106,79,0.06);
}
.fsr-icon { color: #52b788; font-size: 1.1rem; flex-shrink: 0; }
.faculty-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: #1a3c2e;
  background: transparent;
  font-family: 'Poppins', sans-serif;
}
.faculty-search-input::placeholder { color: #b7ddc8; }
.fsr-clear {
  background: none;
  border: none;
  color: #9bb8a7;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.18s;
  display: none;
}
.fsr-clear:hover { background: #f0fdf4; color: #2d6a4f; }
.fsr-clear.show { display: block; }
.fsr-results {
  font-size: 0.75rem;
  color: #9bb8a7;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.fsr-results strong { color: #1a3c2e; }

/* ── LAYOUT ── */
.faculty-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── DEPARTMENT SIDEBAR ── */
.dept-sidebar {
  position: sticky;
  top: 90px;
}
.dept-sidebar-card {
  background: #fff;
  border: 1px solid #e0ede7;
  border-radius: 16px;
  overflow: hidden;
}
.dept-sidebar-header {
  background: linear-gradient(135deg, #1a3c2e, #2d6a4f);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dept-sidebar-header i { color: #74c69d; font-size: 1rem; }
.dept-sidebar-header h5 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dept-nav { padding: 8px; }
.dept-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2px;
  gap: 8px;
}
.dept-btn:hover { background: #f0fdf4; }
.dept-btn.active {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}
.dept-btn .dept-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1a3c2e;
  flex: 1;
  text-align: left;
}
.dept-btn.active .dept-name { color: #065f46; }
.dept-btn .dept-count {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  background: #f0fdf4;
  color: #2d6a4f;
  border: 1px solid #d1fae5;
  flex-shrink: 0;
}
.dept-btn.active .dept-count {
  background: rgba(45,106,79,0.12);
  border-color: rgba(45,106,79,0.2);
  color: #065f46;
}

/* All staff button */
.dept-btn-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 6px;
  border-bottom: 1px solid #f0f7f3;
  gap: 8px;
}
.dept-btn-all:hover { background: #f0fdf4; }
.dept-btn-all.active { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.dept-btn-all .dept-name { font-size: 0.84rem; font-weight: 700; color: #1a3c2e; flex: 1; text-align: left; }
.dept-btn-all.active .dept-name { color: #065f46; }
.dept-btn-all .dept-count { font-size: 0.65rem; font-weight: 800; padding: 2px 8px; border-radius: 50px; background: #f0fdf4; color: #2d6a4f; border: 1px solid #d1fae5; flex-shrink: 0; }
.dept-btn-all.active .dept-count { background: rgba(45,106,79,0.12); border-color: rgba(45,106,79,0.2); color: #065f46; }

/* ── CONTENT AREA ── */
.faculty-content-area { min-height: 400px; }

/* Department header */
.dept-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.dept-content-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #1a3c2e;
  margin: 0;
}
.dept-content-subtitle {
  font-size: 0.82rem;
  color: #6b9e81;
  margin: 4px 0 0;
}
.dept-view-count {
  font-size: 0.75rem;
  color: #9bb8a7;
  font-weight: 600;
  background: #fff;
  border: 1px solid #e0ede7;
  padding: 5px 12px;
  border-radius: 8px;
}

/* ── FACULTY CARD ── */
.fc-card {
  background: #fff;
  border: 1px solid #e0ede7;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.26s, box-shadow 0.26s, border-color 0.26s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.fc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 38px rgba(45,106,79,0.11);
  border-color: #b7ddc8;
}

/* Image */
.fc-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f0fdf4, #d1fae5);
}
.fc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.45s;
  display: block;
}
.fc-card:hover .fc-img-wrap img { transform: scale(1.05); }

/* No image fallback */
.fc-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f5ee, #d1fae5);
}
.fc-img-fallback .fc-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d6a4f, #52b788);
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category badge on image */
.fc-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}
.fc-cat-badge.teaching    { background: rgba(209,250,229,0.92); color: #065f46; }
.fc-cat-badge.admin       { background: rgba(219,234,254,0.92); color: #1e40af; }
.fc-cat-badge.support     { background: rgba(254,243,199,0.92); color: #92400e; }

/* Card body */
.fc-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.fc-name {
  font-family: 'Raleway', sans-serif;
  font-size: 0.97rem;
  font-weight: 800;
  color: #1a3c2e;
  margin-bottom: 3px;
  transition: color 0.2s;
}
.fc-card:hover .fc-name { color: #2d6a4f; }
.fc-title {
  font-size: 0.78rem;
  color: #52b788;
  font-weight: 600;
  margin-bottom: 10px;
}
.fc-divider { height: 1px; background: #f0f7f3; margin: 10px 0; }

/* Specialties */
.fc-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
  flex: 1;
}
.fc-spec-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  background: #f0fdf4;
  color: #2d6a4f;
  border: 1px solid #d1fae5;
}

/* Email link */
.fc-email {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  font-weight: 700;
  color: #2d6a4f;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid #d6e9df;
  background: #fff;
  transition: all 0.2s;
  margin-top: auto;
}
.fc-email:hover {
  background: #2d6a4f;
  border-color: #2d6a4f;
  color: #fff;
}

/* Empty state */
.fc-empty {
  text-align: center;
  padding: 60px 20px;
  color: #9bb8a7;
  grid-column: 1/-1;
}
.fc-empty i { font-size: 3rem; opacity: 0.2; display: block; margin-bottom: 14px; }
.fc-empty h5 { color: #1a3c2e; font-weight: 700; }

/* No-search-results */
.fc-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #9bb8a7;
}
.fc-no-results i { font-size: 3rem; opacity: 0.2; display: block; margin-bottom: 14px; }
.fc-no-results h5 { color: #1a3c2e; font-weight: 700; }

/* Card fade-in animation */
@keyframes fcFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fc-card-wrap { animation: fcFadeUp 0.35s ease both; }

@media (max-width: 991px) {
  .faculty-layout { grid-template-columns: 1fr; }
  .dept-sidebar { position: static; }
  .dept-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
  .dept-btn, .dept-btn-all { width: auto; flex: none; }
}
@media (max-width: 576px) {
  .faculty-body { padding: 32px 0 60px; }
}

