/* ═══════════════════════════════════════════════════════════
   JISCOVAS — Department Page Stylesheet  (dept-page.css)
   Palette:  #393d72 (navy) | #ff4880 (pink) | #2e7d32 (green)
   Framework: Bootstrap v4.2.1
   Usage: <link rel="stylesheet" href="assets/css/dept-page.css">
          Place AFTER bootstrap.min.css on every dept-*.php page
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,300&display=swap');
/* ── CSS Variables ── */
:root {
  --navy:        #393d72;
  --navy-d:      #2a2d56;
  --navy-l:      #eef0f9;
  --pink:        #ff4880;
  --pink-d:      #d93060;
  --pink-l:      #fff0f4;
  --green:       #2e7d32;
  --green-l:     #e8f5e9;
  --amber:       #e65100;
  --amber-l:     #fff3e0;
  --indigo:      #3949ab;
  --indigo-l:    #e8eaf6;
  --text:        #2e2e3a;
  --muted:       #64748b;
  --border:      #e2e5f0;
  --white:       #ffffff;
  --bg:          #f5f6fb;
  --card-shadow: 0 4px 24px rgba(57,61,114,0.10);
  --card-hover:  0 12px 40px rgba(57,61,114,0.18);
}
body { font-family: 'Source Sans 3', sans-serif; color: var(--text); }
/* ══════════════════════════════════════════
   1. HERO BANNER
   Background image set inline on the element:
   style="background-image: url('...')"
══════════════════════════════════════════ */
.dept-hero {
  position: relative;
  width: 100%;
  min-height: 680px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  /* Fallback colour while image loads */
  background-color: var(--navy-d);
}
/* Gradient overlay — light at top, stronger at bottom so text is readable
   without completely hiding the background image                          */
.dept-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(42, 45, 86, 0.65) 10%,
    rgb(0 0 0 / 15%) 55%,
    rgba(42, 45, 86, 0.68) 100%
  );
  pointer-events: none;
}
.dept-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 52px 0 4px;
}
/* ── Breadcrumb ── */
.dept-breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.dept-breadcrumb li {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.dept-breadcrumb li a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.dept-breadcrumb li a:hover { color: var(--pink); }
.dept-breadcrumb li + li::before {
  content: '›';
  margin: 0 8px;
  opacity: 0.45;
}
.dept-breadcrumb li.active { color: var(--pink); font-weight: 600; }
/* ── Hero tag pill ── */
.dept-hero-tag {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}
/* ── Hero title ── */
.dept-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  margin: 0 0 10px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.dept-hero-subtitle {
  font-size: 14.5px;
  color: rgba(255,255,255,0.72);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 0;
}
/* ══════════════════════════════════════════
   2. QUICK-INFO STRIP
══════════════════════════════════════════ */
.dept-info-strip {
  background: var(--navy-d);
}
.dept-info-strip .strip-inner {
  display: flex;
  flex-wrap: wrap;
}
.dept-info-item {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.dept-info-item:last-child { border-right: none; }
/* Icon box uses SVG stroke — no emoji */
.dept-info-item .info-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: rgba(255,72,128,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--pink);
}
.dept-info-item .info-text strong {
  display: block;
  color: var(--white);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
}
.dept-info-item .info-text span {
  font-size: 10.5px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
/* ══════════════════════════════════════════
   3. PAGE LAYOUT
══════════════════════════════════════════ */
.dept-page-area {
  background: var(--bg);
  padding: 40px 0 80px;
}
.dept-page-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 30px;
  align-items: start;
}
/* ══════════════════════════════════════════
   4. SECTION CARDS
══════════════════════════════════════════ */
.dept-section-card {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
}
.dept-section-card:hover {
  box-shadow: var(--card-hover);
  transform: translateY(-2px);
}
/* Card header */
.dept-section-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
/* Icon box — SVG-sized, no emoji */
.dept-section-card-header .sh-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dept-section-card-header h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Colour themes */
.sh-navy   .sh-icon { background: var(--navy-l);   color: var(--navy);   }
.sh-navy   h3       { color: var(--navy); }
.sh-navy             { border-left: 4px solid var(--navy); }
.sh-green  .sh-icon { background: var(--green-l);  color: var(--green);  }
.sh-green  h3       { color: var(--green); }
.sh-green            { border-left: 4px solid var(--green); }
.sh-amber  .sh-icon { background: var(--amber-l);  color: var(--amber);  }
.sh-amber  h3       { color: var(--amber); }
.sh-amber            { border-left: 4px solid var(--amber); }
.sh-pink   .sh-icon { background: var(--pink-l);   color: var(--pink);   }
.sh-pink   h3       { color: var(--pink); }
.sh-pink             { border-left: 4px solid var(--pink); }
.sh-indigo .sh-icon { background: var(--indigo-l); color: var(--indigo); }
.sh-indigo h3       { color: var(--indigo); }
.sh-indigo           { border-left: 4px solid var(--indigo); }
/* Card body */
.dept-section-card-body {
  padding: 24px;
}
.dept-section-card-body p {
  font-size: 14.5px;
  line-height: 1.88;
  color: var(--text);
  margin-bottom: 12px;
}
.dept-section-card-body p:last-child { margin-bottom: 0; }
/* Bullet list */
.dept-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px 20px;
}
.dept-list li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
}
.dept-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
}
/* ══════════════════════════════════════════
   5. FACULTY CARDS
══════════════════════════════════════════ */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.faculty-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 16px 18px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.faculty-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--pink));
}
.faculty-card:hover {
  box-shadow: 0 6px 22px rgba(57,61,114,0.12);
  transform: translateY(-3px);
}
/* Initials avatar — no emoji, just text initials */
.faculty-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--pink) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto 12px;
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.5px;
}
.faculty-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.3;
}
.faculty-designation {
  font-size: 11.5px;
  color: var(--pink);
  font-weight: 600;
  margin: 0 0 3px;
  letter-spacing: 0.02em;
}
.faculty-role {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
}
/* ══════════════════════════════════════════
   6. SIDEBAR WIDGETS
══════════════════════════════════════════ */
.dept-sidebar-col {
  position: sticky;
  top: 20px;
}
.dept-widget {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}
.dept-widget-header {
  background: var(--navy);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dept-widget-header h5 {
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: 0;
}
.dept-widget-header .wh-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
}
.dept-widget-body {
  padding: 18px 20px;
}
.dept-widget-body--flush {
  padding: 8px 0;
}
/* Quick facts list */
.dept-facts-list {
  list-style: none;
  padding: 0; margin: 0;
}
.dept-facts-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.dept-facts-list li:last-child { border-bottom: none; padding-bottom: 0; }
.dept-facts-list li:first-child { padding-top: 0; }
/* Icon box using SVG */
.dept-facts-list .fact-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--navy-l);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dept-facts-list .fact-label {
  font-size: 10px;
  color: var(--muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 2px;
}
.dept-facts-list .fact-val {
  font-weight: 700;
  color: var(--navy);
  display: block;
  line-height: 1.3;
  font-size: 13.5px;
}
/* Other departments list */
.dept-other-list {
  list-style: none;
  padding: 0; margin: 0;
}
.dept-other-list li {
  border-bottom: 1px solid var(--border);
}
.dept-other-list li:last-child { border-bottom: none; }
.dept-other-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  font-size: 12.5px;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  line-height: 1.35;
}
.dept-other-list li a:hover {
  background: var(--navy-l);
  border-left-color: var(--pink);
  color: var(--navy);
  font-weight: 600;
}
.dept-other-arrow {
  color: var(--pink);
  flex-shrink: 0;
  transition: transform 0.18s;
}
.dept-other-list li a:hover .dept-other-arrow {
  transform: translateX(2px);
}
/* ── Back button ── */
.dept-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  margin-bottom: 26px;
  letter-spacing: 0.02em;
}
.dept-back-btn:hover {
  background: var(--pink);
  color: var(--white);
  text-decoration: none;
  transform: translateX(-2px);
}
/* Research tag badges */
.dept-research-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-l);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(46,125,50,0.22);
  margin: 4px 4px 0 0;
}
/* ══════════════════════════════════════════
   7. RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 991px) {
  .dept-page-layout {
    grid-template-columns: 1fr;
  }
  .dept-sidebar-col {
    position: static;
    order: -1;
  }
  .dept-hero { min-height: 320px; }
  .dept-info-item { min-width: 130px; padding: 14px 18px; }
}
@media (max-width: 576px) {
  .dept-hero { min-height: 280px; }
  .dept-hero-content { padding: 126px 0 1px; }
  .dept-list { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-info-strip .strip-inner { flex-direction: column; }
  .dept-info-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .dept-section-card-body { padding: 18px; }
}