/* ─── THEME TOKENS ──────────────────────────────────────── */
:root {
  --red: #c0272d;
  --red-dark: #961e23;
  --red-glow: rgba(192, 39, 45, 0.25);
  --navy: #1a2230;
  --navy-mid: #222d3e;
  --navy-light: #2c3b52;
  --off-white: #f4f1ec;
  --muted: #8fa3bc;
  --gold: #c9a84c;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Barlow", sans-serif;
}

/* ─── PAGE BASE ─────────────────────────────────────────── */

/* subtle grid overlay on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── SECTION HEADER ────────────────────────────────────── */
/* .section-header {
  position: relative;
  z-index: 1;
  padding: 64px 0 48px;
  text-align: center;
}

.section-header .eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--off-white);
  margin: 0;
  line-height: 1.1;
}

.section-header .divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.section-header .divider span {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red));
}
.section-header .divider span:last-child {
  background: linear-gradient(90deg, var(--red), transparent);
}
.section-header .divider i {
  color: var(--red);
  font-size: 14px;
} */

/*  */
.card-div {
  max-width: 1360px;
  margin: 0px auto;
  padding: 80px 16px;
}

/* Tablet */
@media (max-width: 992px) {
  .card-div {
    padding: 60px 16px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .card-div {
    padding: 40px 14px;
  }
}

/* ─── CARD GRID ─────────────────────────────────────────── */
.faculty-grid {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

/* ─── FACULTY CARD ──────────────────────────────────────── */
.faculty-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  /* cursor: pointer; */
  /* width: max-content; */
  max-width: 100%;
  transition:
    transform 0.38s cubic-bezier(0.22, 0.68, 0, 1.2),
    /* box-shadow 0.38s ease, */ border-color 0.38s ease;
}

/* red left stripe — resting */
.faculty-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s ease;
  z-index: 2;
}

/* top red sweep on hover */
.faculty-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--red-glow) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
  pointer-events: none;
}

.faculty-card:hover {
  transform: translateY(-6px);
  /* box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px var(--red); */
  border-color: var(--red);
}
.faculty-card:hover::before {
  transform: scaleY(1);
}
.faculty-card:hover::after {
  opacity: 1;
}

/* ─── IMAGE WRAPPER ─────────────────────────────────────── */
.card-img-wrap {
  position: relative;
  overflow: hidden;
  /* height: auto; */
  height: 375px;
  /* background: var(--navy-light); */
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(20%) contrast(1.05);
  transition:
    transform 0.5s cubic-bezier(0.22, 0.68, 0, 1.2),
    filter 0.5s ease;
}
.faculty-card:hover .card-img-wrap img {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(1.1);
}

/* dark vignette at bottom of photo */
.card-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to bottom, transparent 45%, var(--navy-mid) 100%); */
  z-index: 1;
}

/* specialty badge */
.specialty-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 3;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.3s ease 0.1s,
    transform 0.3s ease 0.1s;
}
.faculty-card:hover .specialty-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ─── CARD BODY ─────────────────────────────────────────── */
.card-body-custom {
  position: relative;
  z-index: 2;
  padding: 20px 22px 22px;
}

.card-name {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--off-white);
  margin: 0 0 2px;
  line-height: 1.2;
  transition: color 0.25s;
  text-align: left;
}
.faculty-card:hover .card-name {
  color: #fff;
}

.card-designation {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.4;
}

/* thin separator */
.card-sep {
  height: 1px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 80%);
  margin-bottom: 14px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease 0.05s;
}
.faculty-card:hover .card-sep {
  transform: scaleX(1);
}

/* country row */
.card-country {
  display: flex;
  align-items: center;
  justify-content: start;
  /* gap: 8px; */
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card-country .flag {
  font-size: 18px;
  line-height: 1;
}
.card-country i {
  color: var(--red);
  font-size: 13px;
}

/* ─── PULSE RING on card (medical heartbeat feel) ────────── */
/* @keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 var(--red-glow);
  }
  70% {
    box-shadow: 0 0 0 12px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
} */
.faculty-card:focus-visible {
  outline: none;
  animation: pulse-ring 0.6s ease;
}

/* ─── STAGGERED ENTRANCE ────────────────────────────────── */
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.faculty-card {
  opacity: 0;
  animation: card-in 0.55s cubic-bezier(0.22, 0.68, 0, 1.2) forwards;
}
.faculty-card:nth-child(1) {
  animation-delay: 0.05s;
}
.faculty-card:nth-child(2) {
  animation-delay: 0.13s;
}
.faculty-card:nth-child(3) {
  animation-delay: 0.21s;
}
.faculty-card:nth-child(4) {
  animation-delay: 0.29s;
}
.faculty-card:nth-child(5) {
  animation-delay: 0.37s;
}
.faculty-card:nth-child(6) {
  animation-delay: 0.45s;
}

/* ─── HEARTBEAT ECG ACCENT ──────────────────────────────── */
.ecg-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  z-index: 3;
}
.ecg-line svg {
  width: 200%;
  height: 100%;
  position: absolute;
  left: -100%;
  transition: none;
}
.faculty-card:hover .ecg-line svg {
  animation: ecg-run 0.9s linear forwards;
}
@keyframes ecg-run {
  from {
    left: -100%;
  }
  to {
    left: 0%;
  }
}

/* ─── DEMO NOTE ─────────────────────────────────────────── */
.demo-note {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 30px;
  letter-spacing: 0.04em;
}
