/* ================= ROOT SCALE ================= */
:root {
  --text-sm: clamp(13px, 1vw, 14px);
  --text-md: clamp(14px, 1.2vw, 16px);
  --text-lg: clamp(18px, 1.5vw, 22px);
  --text-xl: clamp(26px, 2.5vw, 36px);
}

/* ================= SECTION ================= */
.faculty-section {
  background: linear-gradient(to bottom, #fde68a 0%, #e5e7eb 120%);
  padding-bottom: 120px;
}

/* ================= HERO ================= */
.faculty-hero {
  height: clamp(140px, 18vh, 220px);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 7vw, 100px) 0% 10%;
}

.faculty-hero h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #1e3a8a;
}

/* ================= WRAPPER ================= */
.faculty-wrapper {
  max-width: 1100px;
  margin: -60px auto 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 40px);
  padding: 63px clamp(16px, 5vw, 40px);
}

/* ================= CARD ================= */
.faculty-card {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(18px, 2vw, 26px);
  border-radius: 20px;

  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);

  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 15px 50px rgba(0,0,0,0.08);

  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* glow */
.faculty-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, #facc15, #1e40af);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: 0.4s;
}

.faculty-card:hover::before {
  opacity: 1;
}

.faculty-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 25px 80px rgba(0,0,0,0.12);
}

/* ================= IMAGE ================= */
.faculty-image img {
  width: clamp(80px, 8vw, 110px);
  height: clamp(80px, 8vw, 110px);
  border-radius: 16px;
  object-fit: cover;
}

/* ================= INFO ================= */
.faculty-info {
  flex: 1;
}

.faculty-info h3 {
  font-size: var(--text-lg);
  color: #1e40af;
  margin-bottom: 4px;
}

.designation {
  font-size: var(--text-md);
  font-weight: 600;
}

.affiliation {
  font-size: var(--text-sm);
  color: #555;
  margin-bottom: 10px;
}

/* ================= DESCRIPTION ================= */
.desc-wrapper {
  max-height: 90px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}

.desc-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 50px;
  width: 100%;
  background: linear-gradient(transparent, rgba(255,255,255,0.95));
}

.description {
  font-size: var(--text-md);
  line-height: 1.7;
  color: #444;
}

/* hover expand */
.faculty-card:hover .desc-wrapper {
  max-height: 500px;
}

.faculty-card:hover .desc-wrapper::after {
  opacity: 0;
}

/* ================= LINKEDIN ================= */
.faculty-linkedin {
  position: absolute;
  right: clamp(12px, 2vw, 20px);
  top: clamp(12px, 2vw, 20px);
  width: 42px;
  height: 42px;
  background: #1e40af;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.faculty-linkedin:hover {
  transform: scale(1.1);
}

.faculty-linkedin svg {
  width: 18px;
}

/* ================= REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .faculty-card {
    flex-direction: column;
  }

  .faculty-card.active .desc-wrapper {
    max-height: 800px;
  }

  .faculty-card.active .desc-wrapper::after {
    display: none;
  }

  .faculty-linkedin {
    position: static;
    margin-top: 12px;
  }
}

/* ================= ULTRA LARGE ================= */
@media (min-width: 1600px) {
  .faculty-wrapper {
    max-width: 1400px;
  }
}