/* ====================================
   HEAD OF DEPARTMENTS PAGE - REDESIGNED
   ==================================== */

.hod-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e8f0f7 100%);
  padding-bottom: 60px;
}

/* Hero Section */
.hod-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  padding: 80px 20px 60px;
  position: relative;
  overflow: hidden;
}

.hod-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="70" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
  font-family: "Poppins-Medium", sans-serif;
}

.hero-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* HOD Container */
.hod-container {
  max-width: 1400px;
  margin: -40px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hod-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 24px;
}

/* HOD Card */
.hod-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  animation: fadeInUp 0.5s ease-out backwards;
}

.hod-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.hod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.hod-card:hover::before {
  transform: scaleX(1);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation */
.hod-card:nth-child(1) {
  animation-delay: 0.05s;
}
.hod-card:nth-child(2) {
  animation-delay: 0.1s;
}
.hod-card:nth-child(3) {
  animation-delay: 0.15s;
}
.hod-card:nth-child(4) {
  animation-delay: 0.2s;
}
.hod-card:nth-child(5) {
  animation-delay: 0.25s;
}
.hod-card:nth-child(6) {
  animation-delay: 0.3s;
}
.hod-card:nth-child(7) {
  animation-delay: 0.35s;
}
.hod-card:nth-child(8) {
  animation-delay: 0.4s;
}
.hod-card:nth-child(9) {
  animation-delay: 0.45s;
}

.hod-card-inner {
  display: flex;
  flex-direction: row;
  padding: 24px;
  gap: 20px;
  align-items: center;
  min-height: 180px;
}

/* HOD Image */
.hod-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 4px solid var(--secondary-light);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

.hod-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(46, 80, 119, 0.1));
  border-radius: 50%;
  pointer-events: none;
}

.hod-card:hover .hod-img {
  border-color: var(--secondary-color);
  transform: scale(1.05);
}

.hod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* HOD Content */
.hod-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hod-txt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hod-txt p {
  padding: 0;
  margin: 0;
}

.hod-name {
  font-size: 20px;
  color: var(--primary-color);
  font-weight: 700;
  font-family: "Poppins-Medium", sans-serif;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.hod-role {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--background);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 4px;
}

.hod-dept {
  margin-top: 8px;
}

.hod-dept a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hod-dept a svg {
  transition: var(--transition);
}

.hod-dept a:hover {
  color: var(--primary-color);
}

.hod-dept a:hover svg {
  transform: translateX(3px);
}

.hod-email {
  font-size: 14px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.hod-email svg {
  color: var(--accent-color);
  flex-shrink: 0;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 1200px) {
  .hod-wrap {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
}

@media (max-width: 768px) {
  .hod-hero {
    padding: 60px 20px 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hod-container {
    margin-top: -30px;
    padding: 0 16px;
  }

  .hod-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hod-card-inner {
    padding: 20px;
    min-height: auto;
  }

  .hod-img {
    width: 100px;
    height: 100px;
  }

  .hod-name {
    font-size: 18px;
  }

  .hod-role {
    font-size: 11px;
  }

  .hod-dept a {
    font-size: 14px;
  }

  .hod-email {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 16px;
  }

  .hod-card-inner {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }

  .hod-img {
    width: 100px;
    height: 100px;
  }

  .hod-role {
    margin: 0 auto 4px;
  }

  .hod-dept a,
  .hod-email {
    justify-content: center;
  }
}
