/* ==========================================================
   FACULTY PAGE
   ========================================================== */

.fc-wrap {
  --fc-navy: #1d2a5b;
  --fc-navy-2: #253993;
  --fc-rose: #ff1f59;
  --fc-ink: #283034;
  --fc-muted: #7a848d;
  --fc-line: #e6e9ef;
}

/* colour per staff group */
.fc-g-principal  { --fc-accent: #ff1f59; }
.fc-g-tgt        { --fc-accent: #253993; }
.fc-g-prt        { --fc-accent: #109d87; }
.fc-g-ntt        { --fc-accent: #d05a24; }
.fc-g-counsellor { --fc-accent: #8a3fd1; }

/* ---------- Summary tiles ---------- */
.fc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.fc-stat {
  position: relative;
  overflow: hidden;
  padding: 16px 16px 14px;
  text-align: left;
  border: 1px solid var(--fc-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

/* coloured bar along the top of each tile */
.fc-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: var(--fc-accent, var(--fc-navy-2));
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .3s;
}

.fc-stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--fc-accent, var(--fc-navy));
}

.fc-stat span {
  display: block;
  margin-top: 2px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--fc-ink);
}

.fc-stat small {
  display: block;
  font-size: .75rem;
  color: var(--fc-muted);
}

.fc-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -18px rgba(29, 42, 91, .5);
}

.fc-stat:hover::before,
.fc-stat.is-active::before {
  transform: scaleX(1);
}

.fc-stat.is-active {
  border-color: var(--fc-accent, var(--fc-navy-2));
  box-shadow: 0 14px 28px -18px rgba(29, 42, 91, .6);
}

.fc-stat:focus-visible {
  outline: 2px solid var(--fc-navy-2);
  outline-offset: 2px;
}

/* the "total" tile is the gradient hero tile */
.fc-stat-total {
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 31, 89, .45) 0, rgba(255, 31, 89, 0) 60%),
    linear-gradient(135deg, var(--fc-navy) 0%, var(--fc-navy-2) 100%);
}

.fc-stat-total::before { display: none; }
.fc-stat-total strong { font-size: 2.3rem; color: #fff; }
.fc-stat-total span   { color: rgba(255, 255, 255, .85); }

.fc-stat-total.is-active {
  box-shadow: 0 16px 30px -16px rgba(255, 31, 89, .6);
}

/* ---------- Search ---------- */
.fc-search {
  position: relative;
  margin-bottom: 22px;
}

.fc-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fc-muted);
}

.fc-search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  font-size: 1rem;
  color: var(--fc-ink);
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.fc-search input:focus {
  outline: none;
  border-color: var(--fc-navy-2);
  box-shadow: 0 0 0 4px rgba(37, 57, 147, .1);
}

/* ---------- Staff cards ---------- */
.fc-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--fc-line);
  border-radius: 14px;
  background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.fc-card[hidden] {
  display: none;
}

.fc-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 16px 32px -18px rgba(29, 42, 91, .45);
}

.fc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.fc-sl {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: .72rem;
  font-weight: 700;
  color: #c3c9d4;
  font-variant-numeric: tabular-nums;
}

.fc-sl::before {
  content: "#";
}

.fc-avatar {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--fc-accent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--fc-accent) 12%, #fff);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fc-accent) 25%, #fff);
  transition: transform .25s, background .25s, color .25s;
}

.fc-card:hover .fc-avatar {
  color: #fff;
  background: var(--fc-accent);
  transform: scale(1.06);
}

.fc-info {
  min-width: 0;
  padding-right: 18px;
}

.fc-name {
  margin: 2px 0 3px;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fc-ink);
}

.fc-desig {
  margin: 0 0 8px;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fc-accent);
}

.fc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: .8rem;
  color: var(--fc-muted);
}

.fc-meta i {
  margin-right: 3px;
}

.fc-qual {
  padding: 2px 8px;
  color: var(--fc-ink);
  border-radius: 6px;
  background: #f3f5f9;
}

/* ---------- Principal (featured) ---------- */
.fc-lead {
  --fc-accent: #ff1f59;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  padding: 22px 24px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, var(--fc-navy-2), var(--fc-rose)) border-box;
  border: 2px solid transparent;
}

.fc-lead .fc-avatar {
  flex-basis: 72px;
  width: 72px;
  height: 72px;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--fc-navy-2), var(--fc-rose));
  box-shadow: 0 10px 22px -10px rgba(255, 31, 89, .7);
}

.fc-lead:hover .fc-avatar {
  background: linear-gradient(135deg, var(--fc-navy-2), var(--fc-rose));
}

.fc-role-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 20px;
  background: var(--fc-rose);
}

.fc-lead .fc-name {
  margin: 6px 0 8px;
  font-size: 1.25rem;
}

/* ---------- Empty state ---------- */
.fc-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--fc-muted);
  border: 2px dashed var(--fc-line);
  border-radius: 14px;
}

.fc-empty i {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .fc-wrap.pr-30 { padding-right: 0; }
}

@media (max-width: 767px) {
  .fc-stats { grid-template-columns: repeat(2, 1fr); }
  .fc-stat-total { grid-column: 1 / -1; }
  .fc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .fc-lead { flex-direction: column; align-items: flex-start; padding: 20px; }
}
