/* ============================================
   OAU MSE Department Website — styles.css
   Colors: Navy #1A3A6B | Gold #C8A84B | White #FFF
============================================ */

/* ===== SELF-HOSTED FONTS ===== */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Merriweather';
  src: url('assets/fonts/merriweather-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Merriweather';
  src: url('assets/fonts/merriweather-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --navy: #1A3A6B;
  --navy-dark: #0F2347;
  --navy-mid: #2E5FA3;
  --gold: #C8A84B;
  --gold-light: #DFC06A;
  --gold-dark: #A88530;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-800: #1F2937;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Merriweather', Georgia, serif;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.15);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header.light h2 { color: var(--white); }
.section-header.light .section-intro { color: rgba(255,255,255,.75); }

.section-tag {
  display: inline-block;
  background: rgba(200,168,75,.15);
  color: var(--gold-dark);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}

.section-header.light .section-tag {
  background: rgba(255,255,255,.15);
  color: var(--gold-light);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--navy-dark);
  margin-bottom: .75rem;
}

.section-intro {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: .03em;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--navy-dark); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

.full-width { width: 100%; text-align: center; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  padding: .5rem 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.top-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: var(--transition);
}
.top-links a:hover { color: var(--gold); }
.btn-portal {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  padding: .25rem .75rem !important;
  border-radius: 4px;
  font-weight: 600;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1.5rem;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon svg { width: 48px; height: 48px; }

.oau-logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}
.footer-logo-img {
  width: 48px;
  height: 48px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}
.dept-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}
.uni-name {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 400;
}

/* ===== NAVIGATION ===== */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: .25rem;
  align-items: center;
}

.main-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  padding: .5rem .75rem;
  border-radius: 5px;
  transition: var(--transition);
  display: block;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--gold);
  background: rgba(255,255,255,.08);
}

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: .5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown li a {
  color: var(--gray-800) !important;
  background: transparent !important;
  font-size: .85rem;
}
.dropdown li a:hover { background: var(--gray-100) !important; color: var(--navy) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10,28,60,.9) 0%, rgba(26,58,107,.85) 50%, rgba(15,35,71,.95) 100%),
    url('assets/images/hero-bg.jpg') center/cover no-repeat;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,168,75,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  padding: 6rem 1.5rem 3rem;
  position: relative;
  z-index: 1;
}

.hero-sub {
  color: var(--gold);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 800px;
}

.hero-tagline {
  color: rgba(255,255,255,.7);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  color: rgba(255,255,255,.65);
  font-size: .8rem;
  margin-top: .25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
}

/* ===== ABOUT ===== */
.about-section { background: var(--gray-50); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.about-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-icon { margin-bottom: 1.25rem; }
.card-icon svg { width: 52px; height: 52px; }

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: .75rem;
}
.about-card p { color: var(--gray-600); line-height: 1.7; }

.mission-list {
  list-style: none;
  padding: 0;
}
.mission-list li {
  color: var(--gray-600);
  padding: .5rem 0;
  border-bottom: 1px solid var(--gray-100);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}
.mission-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.mission-list li:last-child { border-bottom: none; }

.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}
.value-tag {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 50px;
}

/* ===== ACADEMICS ===== */
.academics-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.programme-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.prog-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 2rem;
  color: var(--white);
  position: relative;
  transition: var(--transition);
}
.prog-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }

.prog-card.featured {
  background: var(--white);
  color: var(--gray-800);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), var(--shadow-lg);
}
.prog-card.featured h3 { color: var(--navy); }
.prog-card.featured li { color: var(--gray-600); }

.prog-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-dark);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .9rem;
  border-radius: 50px;
}

.prog-icon {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .75rem;
}
.prog-card.featured .prog-icon { color: var(--navy); }

.prog-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
  line-height: 1.4;
}

.prog-card p { font-size: .9rem; opacity: .8; margin-bottom: 1rem; }

.prog-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}
.prog-card ul li {
  font-size: .85rem;
  padding: .3rem 0;
  padding-left: 1.2rem;
  position: relative;
  opacity: .85;
}
.prog-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.prog-card.featured ul li::before { color: var(--navy); }

/* ===== HOD MESSAGE ===== */
.hod-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}
.hod-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(200,168,75,.06);
  pointer-events: none;
}
.hod-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.hod-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 960px) {
  .hod-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Photo column */
.hod-photo-col { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }

.hod-photo-wrap {
  position: relative;
  width: 280px;
}

.hod-photo {
  width: 280px;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
  border: 4px solid rgba(200,168,75,.4);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.hod-photo-badge {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  border-radius: 0 0 12px 12px;
  padding: .75rem 1rem;
  text-align: center;
}
.badge-title {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-dark);
  opacity: .8;
  margin-bottom: .15rem;
}
.badge-name {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy-dark);
  font-family: var(--font-heading);
}

.hod-credentials { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.credential-tag {
  background: rgba(200,168,75,.15);
  border: 1px solid rgba(200,168,75,.4);
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .3rem .8rem;
  border-radius: 50px;
}

/* Message column */
.hod-message-col { padding-top: .5rem; }

.hod-tag-row { margin-bottom: .75rem; }

.hod-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--white);
  line-height: 1.3;
  margin-bottom: .5rem;
}

.hod-quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: .6;
  color: var(--gold);
  opacity: .4;
  margin-bottom: .5rem;
  display: block;
}

.hod-message-body p {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.hod-message-body p:last-child { margin-bottom: 0; }

.hod-closing {
  color: rgba(255,255,255,.9) !important;
  font-weight: 500;
  font-style: italic;
}

.hod-signature {
  margin-top: 2rem;
  padding-top: 1.5rem;
}
.sig-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 1rem;
}
.sig-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-heading);
  margin-bottom: .25rem;
}
.sig-role {
  font-size: .85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .25rem;
}
.sig-dept {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}

/* ===== HISTORY TEASER (index.html) ===== */
.history-teaser-section { background: var(--gray-50); }

.history-teaser-card {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}
@media (max-width: 760px) {
  .history-teaser-card { grid-template-columns: 1fr; }
  .teaser-visual { display: none; }
}

.teaser-text .section-tag { margin-bottom: .65rem; display: inline-block; }
.teaser-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--navy-dark);
  margin-bottom: 1rem;
}
.teaser-text p {
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-size: .95rem;
  max-width: 600px;
}

.teaser-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.tmile {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: .5rem .85rem;
  min-width: 70px;
}
.tmile-year {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}
.tmile-label {
  font-size: .68rem;
  color: var(--gray-400);
  margin-top: .2rem;
  text-align: center;
  line-height: 1.3;
}

/* Mini visual timeline */
.teaser-visual { display: flex; justify-content: center; }
.teaser-timeline-mini {
  position: relative;
  height: 260px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ttm-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--navy));
  transform: translateX(-50%);
}
.ttm-dot {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ttm-dot::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
  flex-shrink: 0;
}
.ttm-dot span {
  font-size: .72rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* ===== STAFF TEASER (index.html) ===== */
.staff-teaser-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.staff-teaser-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .staff-teaser-card { grid-template-columns: 1fr; gap: 2rem; }
}

/* Left col */
.staff-teaser-left .section-tag {
  background: rgba(200,168,75,.15);
  color: var(--gold-light);
  margin-bottom: .75rem;
  display: inline-block;
}
.staff-teaser-left h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.staff-teaser-left p {
  color: rgba(255,255,255,.72);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.staff-teaser-avatars {
  display: flex;
  align-items: center;
  gap: -.5rem;
  margin-bottom: 1.75rem;
}
.sta-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-right: -10px;
  flex-shrink: 0;
}
.sta-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.sta-avatar span { font-size: .7rem; font-weight: 700; color: var(--white); }
.sta-more {
  margin-left: 18px;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
}

/* Right col — HOD preview card */
.hod-preview-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  gap: 0;
  box-shadow: var(--shadow-lg);
}
.hod-preview-photo {
  width: 130px;
  min-height: 180px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}
.hod-preview-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.hod-preview-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 50px;
  align-self: flex-start;
}
.hod-preview-info h4 {
  font-family: var(--font-heading);
  font-size: .95rem;
  color: var(--navy-dark);
  line-height: 1.3;
  margin-top: .1rem;
}
.hod-preview-creds { font-size: .78rem; font-weight: 600; color: var(--gold-dark); }
.hod-preview-focus { font-size: .75rem; color: var(--gray-400); line-height: 1.5; }

/* Staff carousel fade */
.sc-fade { transition: opacity .35s ease; }
.sc-fade.fading { opacity: 0; }
.sc-dots { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .5rem; }
.sc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gray-300); cursor: pointer;
  border: none; padding: 0; flex-shrink: 0;
  transition: background .25s, transform .25s;
}
.sc-dot.active { background: var(--navy); transform: scale(1.3); }

/* ===== PROGRAM EDUCATIONAL OBJECTIVES ===== */
.peo-section { background: var(--gray-50); }

.peo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 1024px) { .peo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .peo-grid { grid-template-columns: 1fr; } }

.peo-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .25s ease, box-shadow .25s ease;
  border-top: 4px solid var(--gold);
}
.peo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.peo-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .35rem .9rem;
  border-radius: 50px;
  align-self: flex-start;
}
.peo-body h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--navy-dark);
  margin-bottom: .5rem;
}
.peo-body p {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin: 0;
}

/* ===== PROGRAMME OUTCOMES ===== */
.po-section { background: var(--white); }

.po-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .po-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .po-grid { grid-template-columns: 1fr; } }

.po-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow .25s ease;
  border-left: 4px solid var(--navy);
}
.po-card:hover { box-shadow: var(--shadow-md); }

.po-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold-dark);
  text-transform: uppercase;
}
.po-card h4 {
  font-family: var(--font-heading);
  font-size: .92rem;
  color: var(--navy-dark);
  margin: 0;
}
.po-card p {
  font-size: .82rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* ===== RESEARCH ===== */
.research-section { background: var(--gray-50); }

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.research-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.research-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.research-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.research-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,28,60,.6) 100%);
}

.metallurgy { background-color: #7B4F2E; background-image: linear-gradient(135deg, #8B5E3C 0%, #5C3A1E 100%); }
.nanomaterials { background-color: #2E5FA3; background-image: linear-gradient(135deg, #3B6EC0 0%, #1A3A6B 100%); }
.biomaterials { background-color: #3A6B47; background-image: linear-gradient(135deg, #4A8057 0%, #2A5035 100%); }
.corrosion { background-color: #8B4513; background-image: linear-gradient(135deg, #A0522D 0%, #6B3410 100%); }
.energy { background-color: #C8A84B; background-image: linear-gradient(135deg, #DFC06A 0%, #A88530 100%); }
.composites { background-color: #4A4A6A; background-image: linear-gradient(135deg, #5A5A80 0%, #3A3A55 100%); }

.research-img::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .15;
  z-index: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.1) 0, rgba(255,255,255,.1) 1px, transparent 0, transparent 50%) 0 / 10px 10px;
}

.research-body { padding: 1.25rem; }
.research-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}
.research-body p { font-size: .875rem; color: var(--gray-600); line-height: 1.6; }

/* ===== FACULTY ===== */
.faculty-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.faculty-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faculty-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.13); }

.faculty-avatar {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faculty-avatar span {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  font-family: var(--font-heading);
}

.faculty-info { padding: 1.25rem; }
.faculty-info h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.faculty-role {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.faculty-info p { color: rgba(255,255,255,.65); font-size: .85rem; line-height: 1.6; margin-bottom: .75rem; }

.faculty-links { display: flex; gap: .75rem; }
.flink {
  font-size: .8rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.flink:hover { color: var(--gold-light); text-decoration: underline; }

.faculty-cta { text-align: center; }

/* ===== NEWS ===== */
.news-section { background: var(--white); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.featured-news {
  grid-column: span 12;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-color: transparent;
}
@media (min-width: 768px) {
  .featured-news { grid-column: span 6; }
  .news-card:not(.featured-news) { grid-column: span 6; }
  .news-card:nth-child(3), .news-card:nth-child(4) { grid-column: span 6; }
}
@media (min-width: 1024px) {
  .featured-news { grid-column: span 7; }
  .news-card:nth-child(2) { grid-column: span 5; }
  .news-card:nth-child(3) { grid-column: span 5; }
  .news-card:nth-child(4) { grid-column: span 7; }
}

.news-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 50px;
  letter-spacing: .05em;
}

.news-meta { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.news-cat {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  background: rgba(200,168,75,.12);
  padding: .2rem .6rem;
  border-radius: 50px;
}
.featured-news .news-cat { background: rgba(200,168,75,.2); }
.news-date { font-size: .8rem; color: var(--gray-400); }
.featured-news .news-date { color: rgba(255,255,255,.55); }

.news-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: .75rem;
  color: var(--navy);
}
.featured-news h3 { font-size: 1.25rem; color: var(--white); }

.news-card p { font-size: .875rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 1rem; }
.featured-news p { color: rgba(255,255,255,.75); }

.news-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: var(--transition);
}
.news-link:hover { color: var(--gold-dark); }
.featured-news .news-link { color: var(--gold); }
.featured-news .news-link:hover { color: var(--gold-light); }

/* ===== ADMISSIONS BANNER ===== */
.admissions-banner {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  padding: 4rem 0;
}
.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.banner-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--navy-dark);
  margin-bottom: .5rem;
}
.banner-text p { color: var(--navy-dark); opacity: .8; max-width: 500px; }
.banner-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.contact-section { background: var(--gray-50); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-icon svg { width: 36px; height: 36px; flex-shrink: 0; margin-top: .25rem; }
.contact-item h4 { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.contact-item p { font-size: .875rem; color: var(--gray-600); line-height: 1.6; }

.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 7px;
  font-size: .9rem;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,58,107,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  text-align: center;
  color: #166534;
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  border-radius: 7px;
  padding: .75rem;
  font-size: .9rem;
  font-weight: 600;
  margin-top: .75rem;
}
.form-success.visible { display: block; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 4rem 1.5rem 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand p {
  font-size: .85rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.social-links { display: flex; gap: .75rem; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--navy-dark); }

.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: .03em;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .85rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); padding-left: .25rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--navy);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 500;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--gold); color: var(--navy-dark); }

/* ===== MOBILE NAV ===== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--navy-dark);
    padding: 5rem 1.5rem 2rem;
    transition: right var(--transition);
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0,0,0,.4);
    z-index: 999;
  }
  .main-nav.open { right: 0; }

  .main-nav ul { flex-direction: column; gap: .25rem; }
  .main-nav a { font-size: 1rem; padding: .75rem 1rem; }

  .dropdown {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,.05);
    border-radius: 6px;
    padding: .25rem .5rem;
    margin-top: .25rem;
  }
  .dropdown li a { color: rgba(255,255,255,.7) !important; }
  .dropdown li a:hover { color: var(--gold) !important; background: rgba(255,255,255,.05) !important; }

  .top-bar .top-links a:not(.btn-portal) { display: none; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
  animation: fadeInUp .7s ease both;
}
.hero-content .hero-sub   { animation-delay: .1s; }
.hero-content h1          { animation-delay: .25s; }
.hero-content .hero-tagline { animation-delay: .4s; }
.hero-content .hero-cta   { animation-delay: .55s; }

/* ===== SCROLL REVEAL (JS-applied) ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
