:root {
  --primary: #0d6b42;
  --primary-dark: #074c2e;
  --accent: #d7a31f;
  --text: #132126;
  --muted: #5f6b73;
  --bg: #f5f8f6;
  --white: #ffffff;
  --line: rgba(19, 33, 38, 0.08);
  --shadow: 0 20px 50px rgba(10, 29, 21, 0.12);
  --shadow-soft: 0 15px 40px rgba(13, 32, 24, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; }
.container { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }

.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #063c25 0%, #0d6b42 60%, #d7a31f 100%);
  transition: opacity .45s ease, visibility .45s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-box { text-align: center; color: white; }
.loader-ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.28);
  border-top-color: white; margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.topbar {
  background: #083120;
  color: rgba(255,255,255,.86);
  font-size: .88rem;
}
.topbar-wrap {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.topbar-wrap span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.topbar-wrap span:not(:last-child)::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
}

.site-header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(19,33,38,.06);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 800; color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow);
}
.brand-text strong { display: block; font-size: 1rem; }
.brand-text small { color: var(--muted); }

.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  flex-wrap: wrap;
}
.main-nav > a,
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.main-nav > a:hover,
.nav-link:hover,
.has-dropdown:hover > .nav-link {
  color: var(--primary);
  background: rgba(13, 107, 66, .07);
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.has-dropdown > .nav-link::after {
  content: '▾';
  margin-left: 8px;
  font-size: .78rem;
  color: currentColor;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 290px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(8, 28, 19, 0.12);
  display: grid;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.dropdown-menu a {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}
.dropdown-menu a:hover {
  background: rgba(13, 107, 66, .08);
  color: var(--primary);
}
.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu,
.has-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.apply-pill {
  background: linear-gradient(135deg, var(--accent), #efc14c);
  color: #12211f !important;
  box-shadow: 0 10px 24px rgba(215,163,31,.22);
}
.apply-pill:hover {
  background: linear-gradient(135deg, #e0ae31, #f2cb67);
}
.menu-toggle { display: none; background: none; border: 0; padding: 0; }
.menu-toggle span {
  display: block; width: 26px; height: 3px; background: var(--text);
  margin: 5px 0; border-radius: 10px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(215,163,31,.22), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(13,107,66,.18), transparent 28%),
    linear-gradient(135deg, #072f1e 0%, #0d6b42 52%, #0b5132 100%);
  color: white;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(4, 18, 11, 0.34), rgba(4, 18, 11, 0.1));
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 40px; align-items: center;
  min-height: calc(100vh - 126px);
  padding: 70px 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: inherit;
  font-size: .84rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02; margin: 20px 0 18px; max-width: 10ch;
}
.hero-copy p {
  font-size: 1.05rem; line-height: 1.85; max-width: 64ch;
  color: rgba(255,255,255,.9);
}
.hero-actions { display: flex; gap: 14px; margin: 28px 0 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 190px; padding: 14px 20px; border-radius: 14px;
  font-weight: 700; transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #142125; box-shadow: var(--shadow); }
.btn-light { background: rgba(255,255,255,.13); color: white; border: 1px solid rgba(255,255,255,.16); }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.hero-stats div {
  padding: 18px; border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.11);
}
.hero-stats strong { display: block; font-size: 1.6rem; margin-bottom: 4px; }
.hero-stats span { color: rgba(255,255,255,.84); font-size: .93rem; }

.hero-panel { display: flex; justify-content: flex-end; }
.panel-card {
  position: relative;
  width: min(430px, 100%);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.panel-image-wrap {
  aspect-ratio: 4 / 4.8;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
}
.panel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  filter: none;
  transform: none;
}
.panel-label {
  position: absolute; margin: 18px;
  background: rgba(7, 76, 46, .88); color: white; z-index: 2;
  padding: 8px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700;
}
.panel-content { padding: 24px; }
.panel-content h3 { margin: 0; color: #ddeee6; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.panel-content h2 { margin: 8px 0 10px; font-size: 1.6rem; }
.panel-content p { margin: 0; color: rgba(255,255,255,.88); line-height: 1.8; }

.section { padding: 88px 0; }
.section-soft { background: var(--bg); }
.section-heading { margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(1.9rem, 3vw, 3rem); margin: 14px 0 10px; }
.section-heading p { color: var(--muted); max-width: 72ch; line-height: 1.8; }

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.leader-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.leadership-grid .leader-card:nth-child(4) {
  grid-column: 2 / span 1;
}
.leader-card:hover {
  transform: translateY(-6px); box-shadow: 0 22px 54px rgba(13, 32, 24, 0.12);
}
.leader-image-wrap {
  position: relative;
  aspect-ratio: 4 / 4.75;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #eef5f1, #e4efe8);
}
.leader-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: none;
  image-rendering: auto;
}
.principal-img { object-position: center 12%; }
.deputy-img { object-position: center 10%; }
.registrar-img { object-position: center 12%; }
.dean-img { object-position: center 10%; }
.finance-img { object-position: center 8%; }

.leader-content {
  display: flex;
  flex-direction: column;
  padding: 24px;
  height: 100%;
  gap: 0;
}
.leader-role {
  color: var(--primary); font-size: .86rem; text-transform: uppercase;
  letter-spacing: .08em; font-weight: 800;
}
.leader-content h3 {
  margin: 10px 0 14px;
  font-size: 1.35rem;
  line-height: 1.25;
  min-height: 3.3rem;
}
.leader-message {
  background: linear-gradient(180deg, #f8fbf9, #eff6f1);
  border: 1px solid rgba(13, 107, 66, 0.09);
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin-bottom: 16px;
  min-height: 210px;
}
.leader-message h4 {
  margin: 0 0 10px;
  font-size: .95rem;
  color: var(--primary-dark);
}
.leader-message p {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}
.leader-quote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: rgba(215, 163, 31, 0.08);
  border-radius: 0 14px 14px 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.7;
}
.leader-content ul {
  margin: auto 0 0;
  padding-left: 18px;
  color: var(--text);
  min-height: 110px;
}
.leader-content li { margin-bottom: 10px; line-height: 1.62; }

.service-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.service-card {
  padding: 28px; background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.service-card h3 { margin-top: 0; margin-bottom: 12px; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.8; }

.contact-section { background: linear-gradient(180deg, #0e1d17, #142821); color: white; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}
.contact-card {
  padding: 28px; border-radius: var(--radius-xl);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08);
}
.contact-item + .contact-item { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.contact-item span { display: block; color: rgba(255,255,255,.68); margin-bottom: 5px; }
.contact-item strong { font-size: 1.02rem; }
.site-footer { background: #0d1512; color: rgba(255,255,255,.78); }
.footer-wrap {
  min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.footer-wrap a { color: white; font-weight: 700; }

@media (max-width: 1180px) {
  .nav-wrap {
    align-items: flex-start;
    padding: 14px 0;
  }
  .main-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .contact-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel { justify-content: flex-start; }
  .leadership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .leadership-grid .leader-card:nth-child(4) {
    grid-column: auto;
  }
  .service-grid { gap: 18px; }
}

@media (max-width: 860px) {
  .topbar-wrap {
    justify-content: flex-start;
    gap: 10px 18px;
    padding: 10px 0;
  }
  .topbar-wrap span:not(:last-child)::after { display: none; }
  .nav-wrap {
    align-items: center;
    min-height: 78px;
    padding: 0;
  }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav {
    position: absolute; top: 100%; left: 16px; right: 16px;
    padding: 16px; border-radius: 18px; background: white;
    box-shadow: var(--shadow); border: 1px solid var(--line);
    display: none; flex-direction: column; align-items: stretch; gap: 8px;
    max-height: calc(100vh - 120px); overflow: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav > a,
  .nav-link,
  .apply-pill {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
  }
  .nav-item {
    width: 100%;
    display: block;
  }
  .dropdown-menu {
    position: static;
    min-width: 100%;
    margin-top: 6px;
    padding: 8px;
    border-radius: 14px;
    background: #f6faf7;
    box-shadow: none;
    border-color: rgba(13, 107, 66, .08);
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-dropdown.open > .dropdown-menu { display: grid; }
  .has-dropdown:hover > .dropdown-menu,
  .has-dropdown:focus-within > .dropdown-menu { display: none; }
  .hero-grid { min-height: auto; padding: 48px 0 60px; }
  .hero-stats { grid-template-columns: 1fr; }
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  .leader-message,
  .leader-content ul,
  .leader-content h3 {
    min-height: 0;
  }
  .leader-image-wrap,
  .panel-image-wrap { min-height: 320px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero-copy h1 { max-width: 100%; }
  .btn { width: 100%; }
  .leader-content,
  .panel-content,
  .service-card,
  .contact-card { padding: 22px; }
  .leader-image-wrap,
  .panel-image-wrap { min-height: 280px; }
  .footer-wrap { flex-direction: column; justify-content: center; padding: 18px 0; text-align: center; }
}
