/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green: #0d7a3f;
  --green-dark: #065c2e;
  --green-light: #e8f5ee;
  --gold: #c9a227;
  --navy: #0f2744;
  --text: #1a1a1a;
  --muted: #5a6570;
  --bg: #f8faf9;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(15, 39, 68, 0.08);
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Playfair Display', Georgia, serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1140px, 92%); margin-inline: auto; }

/* ===== Top Bar ===== */
.top-bar {
  background: var(--navy);
  color: #cfd8e3;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-links { display: flex; gap: 1.25rem; }
.top-links a { color: #e8eef5; }
.top-links a:hover { color: var(--gold); text-decoration: none; }

/* ===== Header ===== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.logo-mark {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.logo-text strong { display: block; font-size: 1rem; color: var(--navy); }
.logo-text span { font-size: 0.78rem; color: var(--muted); }
.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.nav a:hover { color: var(--green); }
.btn-nav {
  background: var(--green);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
.btn-nav:hover { background: var(--green-dark); text-decoration: none; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  background: linear-gradient(160deg, #0a3d24 0%, #0d7a3f 45%, #1a5c3a 100%);
  color: white;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/students-discussion.jpg') center/cover;
  opacity: 0.18;
  mix-blend-mode: overlay;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1.1rem;
  font-weight: 700;
}
.hero-lead {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 1.75rem;
  max-width: 640px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: 0.2s;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: #e0b52e; text-decoration: none; }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: white;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
}
.hero-stats span { font-size: 0.85rem; opacity: 0.85; }

/* ===== Sections ===== */
.section { padding: 4.5rem 0; }
.section-header { margin-bottom: 2.5rem; max-width: 720px; }
.section-header h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.section-header p { color: var(--muted); }

/* About */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.about-text p { margin-bottom: 1rem; color: #333; }
.about-text blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--green);
  background: var(--green-light);
  font-style: italic;
  color: var(--navy);
}
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.mission-vision h4 {
  color: var(--green);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.mission-vision p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.6rem;
  text-align: center;
}

/* Programmes */
.programmes { background: var(--bg); }
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.card p { font-size: 0.95rem; color: #444; margin-bottom: 0.9rem; flex-grow: 1; }
.card ul {
  list-style: none;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.card ul li {
  padding: 0.25rem 0 0.25rem 1.1rem;
  position: relative;
}
.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.card-meta {
  font-size: 0.8rem;
  color: var(--green-dark);
  font-weight: 600;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

/* Facilities */
.facilities { background: var(--white); }
.facilities-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.facility-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
}
.facility-item.large {
  grid-row: span 2;
  min-height: 460px;
}
.facility-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,39,68,0.88) 0%, rgba(15,39,68,0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  color: white;
}
.facility-overlay h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.facility-overlay p { font-size: 0.9rem; opacity: 0.92; }
.facilities-note {
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--green-light);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 0.95rem;
}

/* Research */
.research { background: var(--bg); }
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}
.research-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
}
.research-card.highlight {
  grid-column: span 2;
  border-left-color: var(--gold);
  background: linear-gradient(135deg, #fffef8, #fff);
}
.research-card h3 {
  color: var(--navy);
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}
.research-card p { color: #444; font-size: 0.95rem; margin-bottom: 0.75rem; }
.research-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}
.research-card ul li {
  padding: 0.2rem 0 0.2rem 1.1rem;
  position: relative;
}
.research-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Staff */
.staff { background: var(--white); }
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.staff-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border-radius: var(--radius);
}
.staff-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.9rem;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.staff-card h4 { color: var(--navy); margin-bottom: 0.4rem; font-size: 1rem; }
.staff-card p { font-size: 0.88rem; color: var(--muted); }
.staff-note {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Admissions */
.admissions { background: var(--bg); }
.admissions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.admit-card {
  background: var(--white);
  padding: 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.admit-card h3 {
  color: var(--green-dark);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}
.admit-card ul {
  list-style: none;
  font-size: 0.92rem;
  color: #444;
}
.admit-card ul li {
  padding: 0.35rem 0 0.35rem 1.15rem;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}
.admit-card ul li:last-child { border-bottom: none; }
.admit-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--green);
}
.cta-box {
  background: var(--navy);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}
.cta-box h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.cta-box p { opacity: 0.9; margin-bottom: 1.25rem; max-width: 560px; margin-inline: auto; }
.cta-box .btn-primary { background: var(--gold); color: var(--navy); }

/* Contact */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-info p { margin-bottom: 0.85rem; }
.contact-info .note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.85rem;
  background: var(--bg);
  border-radius: 8px;
}
.map-placeholder {
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, var(--green-light), #d4e8dc);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--navy);
}
.map-placeholder p { font-weight: 700; font-size: 1.1rem; }
.map-placeholder span { font-size: 0.9rem; color: var(--muted); margin-top: 0.35rem; }

/* Footer */
.footer {
  background: var(--navy);
  color: #c5d0dc;
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer strong {
  display: block;
  color: white;
  margin-bottom: 0.6rem;
}
.footer a {
  display: block;
  color: #a8b8c9;
  margin-bottom: 0.35rem;
}
.footer a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.8;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-grid,
  .facilities-grid,
  .research-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .facility-item.large { grid-row: auto; min-height: 280px; }
  .research-card.highlight { grid-column: auto; }
  .cards-3,
  .admissions-grid,
  .staff-grid {
    grid-template-columns: 1fr;
  }
  .mission-vision { grid-template-columns: 1fr; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 0.75rem;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .header { position: relative; }
  .hero-stats { gap: 1.25rem; }
}

@media (max-width: 600px) {
  .top-bar .container { flex-direction: column; text-align: center; }
  .hero { padding: 3rem 0 3.5rem; }
  .section { padding: 3rem 0; }
}
