:root {
  --primary: #0D47A1;
  --primary-900: #002171;
  --primary-800: #0D47A1;
  --primary-700: #1565C0;
  --primary-600: #1976D2;
  --primary-500: #1E88E5;
  --primary-400: #42A5F5;
  --primary-100: #BBDEFB;
  --primary-50: #E3F2FD;
  --accent: #FF8F00;
  --accent-light: #FFC107;
  --text: #1a1a2e;
  --text-700: #2d2d44;
  --text-500: #5a5a7a;
  --text-400: #8888a0;
  --text-300: #b0b0c4;
  --bg: #ffffff;
  --bg-50: #f8f9fe;
  --bg-100: #f0f2f8;
  --border: #e0e4ec;
  --border-light: #eef0f5;
  --shadow-sm: 0 2px 8px rgba(13, 71, 161, 0.06);
  --shadow: 0 4px 24px rgba(13, 71, 161, 0.08);
  --shadow-md: 0 8px 32px rgba(13, 71, 161, 0.10);
  --shadow-lg: 0 12px 48px rgba(13, 71, 161, 0.14);
  --shadow-xl: 0 24px 64px rgba(13, 71, 161, 0.18);
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-700); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-900); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  color: var(--text);
}
.section-header p {
  font-size: 17px;
  color: var(--text-500);
  max-width: 560px;
  line-height: 1.6;
}
.section-header.center p { margin: 0 auto; }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary-700);
  background: var(--primary-50);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.text-accent { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary-800);
  color: #fff;
  border-color: var(--primary-800);
}
.btn-primary:hover {
  background: var(--primary-900);
  border-color: var(--primary-900);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 71, 161, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.btn-lg { padding: 14px 34px; font-size: 15px; }

/* ---- Top Bar ---- */
.top-bar {
  background: var(--primary-900);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  padding: 8px 0;
  position: relative;
  z-index: 1001;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar a { color: rgba(255,255,255,0.7); }
.top-bar a:hover { color: #fff; }
.top-sep { color: rgba(255,255,255,0.2); margin: 0 12px; }
.top-admin-link { display: inline-flex; align-items: center; gap: 4px; line-height: 1; }
.top-admin-link svg { display: block; }
.top-bar-links { display: flex; align-items: center; gap: 0; }
@media (max-width: 640px) {
  .top-bar-links { display: none; }
  .top-bar { text-align: center; font-size: 12px; }
}

/* ---- Navigation ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.site-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--text); opacity: 0.85; }

.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-800);
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.nav-logo-sub {
  font-size: 12px;
  color: var(--text-400);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: var(--text-500) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--primary-700) !important;
  background: var(--bg-50);
}

.nav-admin-link {
  display: flex !important;
  align-items: center;
  gap: 6px;
  color: var(--text-400) !important;
  font-size: 13px;
}
.nav-admin-link:hover {
  color: var(--primary-700) !important;
}
.nav-admin-link svg { flex-shrink: 0; }

.nav-dropdown {
  position: relative;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
  border: 1px solid var(--border-light);
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-500) !important;
  font-size: 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.dropdown-menu a:hover {
  background: var(--primary-50);
  color: var(--primary-800) !important;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-700)) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 14px;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(13, 71, 161, 0.25) !important;
  transition: all 0.3s ease !important;
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-800)) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.4) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-500);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-toggle:hover { background: var(--bg-50); }

/* ---- Hero Carousel ---- */
.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 92vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0;
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  padding: 7px 20px;
  border-radius: 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-content h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255,255,255,0.2); }
.hero-arrow-left { left: 24px; }
.hero-arrow-right { right: 24px; }

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* ---- Dean Section ---- */
.dean-section {
  background: var(--bg);
}
.dean-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}
.dean-image {
  text-align: center;
  position: sticky;
  top: 100px;
}
.dean-portrait {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-700);
  margin: 0 auto 20px;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow);
}
.dean-portrait svg { width: 72px; height: 72px; }
.dean-image-text strong { display: block; font-size: 18px; color: var(--text); }
.dean-image-text span { font-size: 14px; color: var(--text-500); }

.dean-text h2 { font-size: 34px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.5px; }
.dean-text p { color: var(--text-500); font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
.dean-text .btn { margin-top: 8px; }

/* ---- Departments ---- */
.depts-section {
  background: var(--bg-50);
}

.depts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dept-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.dept-card:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-lg);
}

.dept-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-700);
  margin-bottom: 20px;
}
.dept-icon svg { width: 24px; height: 24px; }

.dept-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.dept-card p {
  font-size: 14px;
  color: var(--text-500);
  line-height: 1.7;
  margin-bottom: 16px;
}

.dept-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-700);
  transition: var(--transition);
}
.dept-link:hover { color: var(--primary-900); gap: 4px; }

/* ---- About ---- */
.about-section {
  background: var(--bg);
}

.about-card {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
  border-radius: var(--radius-xl);
  padding: 56px 64px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.about-card-content { position: relative; z-index: 1; max-width: 700px; }
.about-card-content .section-tag { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.about-card-content h2 { font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.2; }
.about-card-content p { font-size: 16px; color: rgba(255,255,255,0.8); line-height: 1.8; }

.about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-feat {
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.about-feat:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow);
}

.about-feat-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-700);
  margin-bottom: 16px;
}
.about-feat-icon svg { width: 22px; height: 22px; }

.about-feat h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.about-feat p { font-size: 13px; color: var(--text-500); line-height: 1.7; }

/* ---- News ---- */
.news-section {
  background: var(--bg-50);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-100);
}

.news-date {
  background: var(--primary-800);
  color: #fff;
  text-align: center;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.news-day { font-size: 28px; font-weight: 800; }
.news-month { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }

.news-content {
  padding: 24px;
}

.news-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-700);
  background: var(--primary-50);
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.news-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.news-content p {
  font-size: 13px;
  color: var(--text-500);
  line-height: 1.7;
  margin-bottom: 12px;
}
.news-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-700);
}

/* ---- Gallery ---- */
.gallery-section { background: var(--bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item-wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item-wide { grid-column: 1; }
}

/* ---- CTA ---- */
.cta-section {
  padding: 80px 0;
  background: var(--bg);
}

.cta-card {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-card h2 {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-card p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-cta-primary {
  background: #fff;
  color: var(--primary-800) !important;
  border-color: #fff;
}
.btn-cta-primary:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  color: var(--primary-900) !important;
  transform: translateY(-2px);
}

.btn-cta-secondary {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.35);
}
.btn-cta-secondary:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  color: #fff !important;
}

/* ---- Footer ---- */
.site-footer {
  background: #0d0d1a;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.footer-logo svg { color: var(--primary-400); }

.footer-brand p { font-size: 13px; line-height: 1.7; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--primary-700);
  color: #fff;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  padding: 5px 0;
  transition: var(--transition);
}
.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-contact p { font-size: 13px; margin-bottom: 6px; line-height: 1.6; }
.footer-contact strong { color: rgba(255,255,255,0.7); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
}
.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--primary-400);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ---- Lab Cards (Department Pages) ---- */
.labs-container {
  margin: 20px 0 32px;
}
.lab-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s;
}
.lab-card:hover {
  box-shadow: 0 4px 16px rgba(13,71,161,0.08);
}
.lab-image { width: 100%; height: 200px; object-fit: cover; border-radius: 10px 10px 0 0; }
.lab-card-body { padding: 0; }
.lab-card-body h4 { margin-top: 12px; }
.eq-img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.lab-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.lab-card > p {
  font-size: 14px;
  color: var(--text-400);
  line-height: 1.6;
  margin-bottom: 18px;
}
.equipment-section {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}
.equipment-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-50);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-400);
  border-bottom: 1px solid var(--border-light);
}
.equip-header-icon {
  color: var(--primary-400);
  flex-shrink: 0;
}
.equipment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.equipment-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}
.equipment-list li:last-child { border-bottom: none; }
.eq-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-300);
  flex-shrink: 0;
}
.eq-name {
  font-weight: 500;
  color: var(--text);
  flex: 1;
}
.eq-desc {
  color: var(--text-400);
  flex: 1;
  font-size: 13px;
}
.eq-qty {
  font-size: 12px;
  color: var(--text-400);
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--bg-50);
  padding: 2px 10px;
  border-radius: 6px;
}
.lab-card.loading {
  text-align: center;
  padding: 48px;
  color: var(--text-400);
}
.lab-card.error {
  text-align: center;
  padding: 48px;
  color: #c62828;
  background: #ffebee;
}

/* ---- Department Pages ---- */
.dept-hero {
  padding: 80px 0 60px;
  color: #fff;
  position: relative;
  background-size: cover;
  background-position: center;
}
.dept-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,33,113,0.88), rgba(13,71,161,0.78));
  pointer-events: none;
}
.dept-hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.dept-hero-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}
.dept-hero-icon svg { width: 40px; height: 40px; stroke: #fff; }
.dept-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.dept-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  line-height: 1.6;
}

.dept-body { padding: 60px 0; }

.dept-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* Content */
.dept-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--text);
}
.dept-content h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary-700);
  border-radius: 2px;
  margin-top: 8px;
}
.dept-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text-700);
}
.dept-content p {
  font-size: 16px;
  color: var(--text-500);
  line-height: 1.85;
  margin-bottom: 16px;
}
.dept-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.dept-content ul li {
  padding: 11px 14px 11px 36px;
  position: relative;
  font-size: 14px;
  color: var(--text-500);
  background: var(--bg-50);
  border-radius: 8px;
  transition: background 0.2s;
}
.dept-content ul li:hover { background: var(--primary-50); }
.dept-content ul li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 17px;
  width: 8px;
  height: 8px;
  background: var(--primary-100);
  border-radius: 50%;
  border: 2px solid var(--primary-600);
}

/* Course Table */
.course-level-group {
  margin-bottom: 28px;
}
.course-level-group h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-100);
}
.course-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.course-table thead th {
  background: var(--bg-100);
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--text-700);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
}
.course-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-500);
}
.course-table tbody tr:hover td {
  background: var(--primary-50);
}

/* Lecturer Cards */
.lecturers-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.lecturer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.lecturer-card:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-sm);
}
.lecturer-avatar svg {
  width: 36px;
  height: 36px;
  color: var(--primary-400);
}
.lecturer-info {
  font-size: 14px;
  line-height: 1.5;
}
.lecturer-info strong {
  color: var(--text-700);
  font-weight: 600;
}
.lecturer-email {
  color: var(--text-400);
  font-size: 12px;
}

/* Loading indicator */
.loading {
  color: var(--text-400);
  font-style: italic;
  font-size: 14px;
}

/* Stats */
.dept-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0;
}
.dept-stat {
  background: linear-gradient(135deg, var(--bg-50), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}
.dept-stat:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.dept-stat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-700);
  line-height: 1;
  margin-bottom: 6px;
}
.dept-stat span {
  font-size: 13px;
  color: var(--text-500);
  font-weight: 500;
}

/* HOD Card */
.hod-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.hod-card:hover { box-shadow: var(--shadow-md); }
.hod-card-header {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-700));
  padding: 32px 24px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hod-card-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hod-card-header::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hod-avatar {
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: rgba(255,255,255,0.9);
  border: 3px solid rgba(255,255,255,0.3);
  position: relative;
  z-index: 1;
}
.hod-avatar svg { width: 44px; height: 44px; }
.hod-card-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}
.hod-card-header p {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.hod-card-body { padding: 20px 24px; }
.hod-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.hod-info-item:last-child { border-bottom: none; }
.hod-info-item-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  flex-shrink: 0;
}
.hod-info-item-icon svg { width: 16px; height: 16px; }
.hod-info-item-content { flex: 1; min-width: 0; }
.hod-info-item-content strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-400);
  margin-bottom: 2px;
}
.hod-info-item-content span {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* Responsive for dept pages */
@media (max-width: 768px) {
  .dept-hero-inner { flex-direction: column; text-align: center; }
  .dept-hero h1 { font-size: 28px; }
  .dept-hero p { font-size: 15px; }
  .dept-grid { grid-template-columns: 1fr; }
  .hod-card { position: static; }
  .dept-stats { grid-template-columns: 1fr; }
  .lab-card { padding: 20px; }
  .equipment-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .eq-desc { display: none; }
  .dept-content ul li { font-size: 13px; padding: 10px 12px 10px 32px; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .dean-grid { grid-template-columns: 1fr; gap: 40px; }
  .dean-image { position: static; display: flex; align-items: center; gap: 24px; text-align: left; }
  .dean-portrait { width: 140px; height: 140px; margin: 0; flex-shrink: 0; }
  .dean-portrait svg { width: 52px; height: 52px; }
  .depts-grid { grid-template-columns: repeat(2, 1fr); }
  .about-features { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 28px; }
  .section-header p { font-size: 15px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-light);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 12px 16px; color: var(--text-500) !important; }
  .nav-link:hover { background: var(--bg-50); }
  .nav-cta { margin-left: 0 !important; text-align: center; width: 100%; }
  .nav-toggle { display: flex; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; display: none; }
  .nav-dropdown:hover .dropdown-menu { display: block; }

  .hero { min-height: 70vh; }
  .hero-slides { height: 70vh; }
  .hero-content { padding: 80px 0 60px; }
  .hero-content h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 20px; }

  .depts-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .about-card { padding: 32px 24px; }
  .about-card-content h2 { font-size: 26px; }

  .cta-card { padding: 40px 24px; }
  .cta-card h2 { font-size: 26px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
