/* ==========================================================================
   Zomba Theological University — Design System
   Brand: Teal-green + Gold on white. Modern, clean, fully responsive.
   Author: Hive Designs
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (sampled from the university seal) */
  --green:        #0e7d6b;   /* primary teal-green */
  --green-600:    #0b6b5b;
  --green-700:    #0a5849;
  --green-900:    #0c3329;   /* deep green — footer / dark sections */
  --green-050:    #eaf5f2;   /* tint background */
  --gold:         #c6a24c;   /* accent gold */
  --gold-600:     #b08a32;
  --gold-100:     #f6edd7;

  --ink:          #16241f;   /* near-black green text */
  --body:         #384843;   /* body copy */
  --muted:        #6b7b76;   /* muted text */
  --line:         #e4ebe8;   /* hairlines / borders */
  --bg:           #ffffff;
  --bg-soft:      #f7faf9;

  /* Type */
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Metrics */
  --container: 1200px;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16,40,34,.06), 0 2px 8px rgba(16,40,34,.05);
  --shadow-md: 0 8px 24px rgba(12,51,41,.10);
  --shadow-lg: 0 20px 50px rgba(12,51,41,.16);
  --header-h:  76px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-600); }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p  { margin-bottom: 1rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--green-050); }
.section--dark { background: var(--green-900); color: #d6e5e0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* Team / Faculty grid — packs 4–5 people per row on desktop (large bodies like
   the Board of Trustees), stepping down to 2 on tablet and 2 on small phones. */
.team-grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.team-grid .person__body { padding: 1rem .9rem 1.2rem; }
.team-grid .person__body h3 { font-size: 1rem; line-height: 1.25; }
.team-grid .person__role { font-size: .8rem; }
@media (max-width: 520px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; } }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.section--dark .eyebrow { color: var(--gold); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--dark .section-head p { color: #b9cfc9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .95rem; padding: .85rem 1.6rem; border-radius: 100px;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(14,125,107,.28); }
.btn--primary:hover { background: var(--green-600); color: #fff; }
.btn--gold { background: var(--gold); color: #2a2410; box-shadow: 0 6px 18px rgba(198,162,76,.3); }
.btn--gold:hover { background: var(--gold-600); color: #fff; }
.btn--ghost { background: transparent; color: var(--green); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--green); background: var(--green-050); color: var(--green); }
.btn--light { background: #fff; color: var(--green-900); }
.btn--light:hover { background: var(--gold-100); color: var(--green-900); }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn .arw { transition: transform var(--transition); }
.btn:hover .arw { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.topbar { background: var(--green-900); color: #cfe0db; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #cfe0db; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.topbar a:hover { color: var(--gold); }
.topbar__meta { display: flex; gap: 1.4rem; align-items: center; }
.topbar__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar svg { width: 15px; height: 15px; flex: 0 0 auto; }
.topbar__social { display: flex; gap: .8rem; align-items: center; }
.topbar__social a { display: inline-flex; }
.topbar__social svg { width: 17px; height: 17px; }
.topbar__login {
  font-weight: 700; color: var(--gold) !important; letter-spacing: .02em;
  padding-right: .9rem; margin-right: .2rem; border-right: 1px solid rgba(255,255,255,.18);
}
.topbar__login:hover { color: #fff !important; }
.topbar__login svg { width: 14px; height: 14px; }
@media (max-width: 720px) { .topbar { display: none; } }

.navbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: .7rem; flex: 0 0 auto; }
.brand img { width: 48px; height: 48px; }
.brand__text { line-height: 1.15; display: flex; flex-direction: column; }
.brand__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--ink); letter-spacing: .01em; white-space: nowrap; }
.brand__sub { display: block; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; margin-top: 1px; }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav__links { display: flex; align-items: center; gap: .1rem; }
.nav__links > li > a {
  position: relative; display: block; padding: .55rem .5rem; font-size: .88rem; font-weight: 500; color: var(--ink); border-radius: 8px; white-space: nowrap;
}
.nav__links > li > a:hover { color: var(--green); background: var(--green-050); }
.nav__links > li > a.active { color: var(--green); }
.nav__links > li > a.active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .1rem; height: 2px; background: var(--gold); border-radius: 2px;
}
.nav__cta { margin-left: .6rem; display: flex; gap: .6rem; }
.nav__login { display: none; }
.nav__login svg { width: 17px; height: 17px; }
@media (max-width: 1280px) {
  .nav__cta { flex-direction: column; }
  .nav__login { display: inline-flex; width: 100%; }
}
.nav-search { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); margin-left: .3rem; }
.nav-search:hover { background: var(--green-050); color: var(--green); }
.nav-search svg { width: 19px; height: 19px; }
@media (max-width: 1280px) {
  .nav-search { width: 100%; height: auto; border-radius: 10px; justify-content: flex-start; gap: .6rem; padding: .85rem .6rem; margin: .2rem 0 0; font-weight: 500; font-size: 1rem; }
  .nav-search::after { content: "Search"; }
}

/* Dropdown */
.has-drop { position: relative; }
.has-drop > a::after { content: "⌄"; font-size: .85rem; margin-left: .3rem; opacity: .6; position: relative; top: -2px; }
.drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--transition);
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { display: block; padding: .6rem .8rem; border-radius: 7px; font-size: .9rem; color: var(--body); font-weight: 500; }
.drop a:hover { background: var(--green-050); color: var(--green); }

.nav-toggle { display: none; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 10px; align-items: center; justify-content: center; color: var(--ink); }
.nav-close { display: none; } /* only shown inside the mobile drawer */
.nav-toggle:hover { background: var(--green-050); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Desktop nav sizing: keep everything on one aligned row */
@media (min-width: 1281px) {
  .nav__cta .btn { padding: .72rem 1.3rem; font-size: .88rem; }
  .nav-search { width: 36px; height: 36px; margin-left: .1rem; }
  .nav-search svg { width: 18px; height: 18px; }
}

/* Mobile / tablet nav */
@media (max-width: 1280px) {
  .nav-toggle { display: inline-flex; }
  /* The header's blur (backdrop-filter) creates a containing block that would
     trap the fixed off-canvas menu & backdrop inside the header strip — which
     broke the full-screen dim and pushed the drawer sideways. Turn it off on
     mobile so the drawer and backdrop are positioned against the whole screen. */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  /* Let the brand give way so the menu button always keeps its full size. */
  .navbar { gap: .6rem; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand__text { min-width: 0; }
  .brand__name { white-space: normal; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; height: 100vh; height: 100dvh;
    width: min(360px, 86vw); max-width: 100%;
    background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + 1.5rem) 1.3rem 2rem; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform var(--transition); overflow-y: auto; z-index: 120;
  }
  .nav.open { transform: translateX(0); }
  .nav-close { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 10px; color: var(--ink); background: var(--green-050); z-index: 2; }
  .nav-close:hover { background: var(--green); color: #fff; }
  .nav-close svg { width: 24px; height: 24px; }
  .nav__links { flex-direction: column; align-items: stretch; gap: .1rem; width: 100%; }
  .nav__links > li > a { padding: .85rem .6rem; font-size: 1rem; border-radius: 10px; }
  .nav__links > li > a.active::after { display: none; }
  .nav__links > li > a.active { background: var(--green-050); }
  .has-drop > a::after { float: right; }
  .drop {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-left: 2px solid var(--line); border-radius: 0; margin: .1rem 0 .3rem .8rem;
    padding: 0 0 0 .4rem; display: none;
  }
  .has-drop.open-sub .drop { display: block; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(12,51,41,.4); opacity: 0; visibility: hidden; transition: opacity var(--transition); z-index: 110; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}

/* Very small phones: shrink the brand a touch so it sits neatly beside the menu button */
@media (max-width: 420px) {
  .brand img { width: 42px; height: 42px; }
  .brand__name { font-size: .98rem; }
  .brand__sub { font-size: .62rem; letter-spacing: .1em; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(9,45,36,.94) 0%, rgba(11,60,50,.86) 42%, rgba(14,125,107,.62) 100%);
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg .ph { background: linear-gradient(135deg, #0c4a3e, #0e7d6b); }
.hero__bg .ph::before { opacity: .25; }
.hero__bg .ph span { display: none; }
.hero__inner { position: relative; z-index: 1; padding-block: clamp(4rem, 12vw, 8rem); max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 1.3rem; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #dcebe6; margin-bottom: 2rem; max-width: 620px; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22); padding: .45rem 1rem; border-radius: 100px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1.5rem; backdrop-filter: blur(4px);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Hero stat strip */
.hero-stats { position: relative; z-index: 2; background: var(--gold); color: #2a2410; }
.hero-stats .container { display: grid; grid-template-columns: repeat(4,1fr); }
.hero-stat { padding: 1.4rem 1rem; text-align: center; border-right: 1px solid rgba(0,0,0,.1); }
.hero-stat:last-child { border-right: none; }
.hero-stat b { font-family: var(--font-display); font-size: 1.9rem; display: block; line-height: 1; color: var(--green-900); }
.hero-stat span { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 640px) { .hero-stats .container { grid-template-columns: repeat(2,1fr); } .hero-stat:nth-child(2){border-right:none;} }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--green-050); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__tag { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .5rem; }
.card__body h3 { margin-bottom: .55rem; }
.card__body p { color: var(--muted); font-size: .95rem; }
.card__link { margin-top: auto; padding-top: .9rem; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }

/* Program card */
.prog { padding: 1.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: var(--transition); height: 100%; }
.prog:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.prog__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--green-050); color: var(--green); display: grid; place-items: center; margin-bottom: 1.1rem; }
.prog__icon svg { width: 28px; height: 28px; }
.prog h3 { margin-bottom: .5rem; }
.prog__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0; }
.chip { font-size: .76rem; font-weight: 600; padding: .3rem .7rem; border-radius: 100px; background: var(--green-050); color: var(--green-700); }
.chip--gold { background: var(--gold-100); color: var(--gold-600); }

/* Feature / icon list */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--green-050); color: var(--green); display: grid; place-items: center; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Value pill grid */
.values { display: grid; grid-template-columns: repeat(4,1fr); gap: .9rem; }
@media (max-width:820px){ .values{ grid-template-columns: repeat(2,1fr);} }
.value { text-align: center; padding: 1.4rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.value__ic { width: 44px; height:44px; margin: 0 auto .7rem; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; }
.value h4 { font-family: var(--font-body); font-weight: 700; color: var(--ink); font-size: 1rem; }
.value p { font-size: .84rem; color: var(--muted); margin: .2rem 0 0; }

/* ---------- Split / media sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--wide { grid-template-columns: 1.05fr .95fr; }
@media (max-width: 880px) { .split, .split--wide { grid-template-columns: 1fr; } }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-frame--seal { background: var(--green-900); display: grid; place-items: center; padding: 2.5rem; aspect-ratio: 4/3; }
.media-frame--seal img { width: min(70%, 300px); aspect-ratio: 1; object-fit: contain; }
.badge-float {
  position: absolute; bottom: 1.2rem; left: 1.2rem; background: #fff; border-radius: 12px;
  padding: .9rem 1.2rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .8rem;
}
.badge-float b { font-family: var(--font-display); font-size: 1.6rem; color: var(--green); line-height: 1; }
.badge-float span { font-size: .78rem; color: var(--muted); }

.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; color: var(--body); }
.checklist li::before {
  content: "✓"; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-050); color: var(--green); font-size: .8rem; font-weight: 700;
  display: grid; place-items: center; margin-top: .15rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--green-900); color: #fff; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% -10%, rgba(198,162,76,.25), transparent 55%),
              radial-gradient(circle at 0% 120%, rgba(14,125,107,.5), transparent 50%);
}
.page-hero .container { position: relative; padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero h1 { color: #fff; margin-bottom: .8rem; }
.page-hero p { color: #cfe0db; max-width: 640px; font-size: 1.08rem; margin: 0; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #9fbdb5; margin-bottom: 1.1rem; }
.breadcrumb a { color: #cfe0db; }
.breadcrumb span { opacity: .5; }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; position: relative; height: 100%; }
.quote__mark { font-family: var(--font-display); font-size: 3.5rem; color: var(--gold); line-height: 0; position: absolute; top: 1.7rem; right: 1.5rem; opacity: .4; }
.quote p { font-size: 1.02rem; color: var(--body); font-style: italic; }
.quote__by { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); flex: 0 0 auto; }
.quote__by b { display: block; color: var(--ink); font-family: var(--font-body); font-size: .95rem; }
.quote__by span { font-size: .82rem; color: var(--muted); }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.partner {
  display: flex; align-items: center; gap: .7rem; padding: 1rem 1.5rem; border: 1px solid var(--line);
  border-radius: 100px; background: #fff; font-weight: 600; color: var(--ink); font-size: .92rem;
}
.partner__ic { width: 34px; height: 34px; border-radius: 50%; background: var(--green-050); color: var(--green); display: grid; place-items: center; flex: 0 0 auto; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--green-700), var(--green)); color: #fff; border-radius: clamp(16px, 3vw, 26px); padding: clamp(2.4rem, 5vw, 3.6rem); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: rgba(198,162,76,.16); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #d7ece6; max-width: 560px; position: relative; }
.cta-band .hero__actions { position: relative; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-q { width: 100%; text-align: left; padding: 1.15rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.acc-q:hover { background: var(--bg-soft); }
.acc-q .ico { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--green-050); color: var(--green); display: grid; place-items: center; transition: transform var(--transition); font-size: 1.1rem; }
.acc-item.open .acc-q .ico { transform: rotate(45deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-a__inner { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; min-width: 520px; }
table.data th, table.data td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
table.data thead th { background: var(--green-900); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .85rem; letter-spacing: .03em; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--bg-soft); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; margin: 0; aspect-ratio: 4/3; background: var(--green-050); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.3rem .9rem .8rem; color: #fff; font-weight: 600; font-size: .9rem;
  background: linear-gradient(transparent, rgba(9,45,36,.85)); transform: translateY(6px); opacity: .95;
}

/* Placeholder image (used until real photos are added) */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, var(--green-050), #dcefe9);
  color: var(--green-700); font-weight: 600; font-size: .85rem; padding: 1rem; position: relative;
}
.ph::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(14,125,107,.12) 1px, transparent 1px); background-size: 14px 14px; }
.ph span { position: relative; z-index: 1; opacity: .85; }

/* ---------- Faculty ---------- */
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; transition: var(--transition); }
.person:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.person__photo { aspect-ratio: 1; background: var(--green-050); }
.person__photo .ph { border-radius: 0; }
.person__body { padding: 1.4rem; }
.person__body h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.person__role { color: var(--gold-600); font-weight: 600; font-size: .85rem; }
.person__body p { color: var(--muted); font-size: .88rem; margin: .6rem 0 0; }

/* ---------- Team sections (public staff page) ---------- */
.team-sec-title { position: relative; padding-bottom: .8rem; margin-bottom: 1rem; }
.team-sec-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 3px; background: var(--gold); border-radius: 2px; }
.team-sec-desc { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin-bottom: 2.2rem; }
.person__initials {
  aspect-ratio: 1; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.4rem);
  color: var(--green-700); background: linear-gradient(135deg, var(--green-050), #d8ece5);
}
.person__link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem; font-weight: 600; font-size: .88rem; }
.person__link .arw { transition: transform var(--transition); }
.person__link:hover .arw { transform: translateX(3px); }

/* ---------- Single news article ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 940px) { .article-layout { grid-template-columns: 1fr; } }
.post-figure { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.6rem; background: var(--green-050); }
.post-figure img { width: 100%; display: block; }
.post-figure .ph { aspect-ratio: 16/8; }
.post-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.post-head-meta .cat { background: var(--green); color: #fff; font-weight: 700; padding: .3rem .8rem; border-radius: 100px; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }
.post-head-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.article-main h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 1.2rem; }
.post-body { font-size: 1.06rem; color: var(--body); }
.post-body p { margin-bottom: 1.15rem; }
.post-body h2, .post-body h3 { margin: 1.8rem 0 .8rem; }
.post-tags { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 2rem 0; padding: 1.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-tags .lbl { font-weight: 700; color: var(--ink); font-size: .9rem; }
.post-tags a { background: var(--green-050); color: var(--green-700); font-weight: 600; font-size: .82rem; padding: .35rem .85rem; border-radius: 100px; }
.post-tags a:hover { background: var(--green); color: #fff; }
.share-row { display: flex; align-items: center; gap: .7rem; margin: 1.6rem 0; }
.share-row .lbl { font-weight: 700; color: var(--ink); font-size: .9rem; margin-right: .3rem; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: var(--transition); }
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-btn svg { width: 18px; height: 18px; }
.share-fb { background: #1877f2; } .share-x { background: #111; } .share-wa { background: #25d366; } .share-cp { background: var(--green); }
.published-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-top: 1.6rem; }
.published-box .ava { width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.published-box .ava svg { width: 26px; height: 26px; }
.published-box .lbl { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.published-box b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.15rem; }
.published-box p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }

/* Sidebar panels */
.side-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.4rem; }
.side-panel h4 { font-family: var(--font-body); font-weight: 700; color: var(--ink); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding-bottom: .8rem; margin-bottom: .8rem; border-bottom: 2px solid var(--gold); }
.side-cat a { display: flex; justify-content: space-between; align-items: center; padding: .7rem .9rem; border-radius: 9px; color: var(--body); font-weight: 500; font-size: .92rem; transition: var(--transition); }
.side-cat a:hover, .side-cat a.active { background: var(--green); color: #fff; }
.side-recent a { display: flex; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.side-recent a:first-child { border-top: none; padding-top: 0; }
.side-recent .thumb { width: 62px; height: 52px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: var(--green-050); display: grid; place-items: center; color: var(--green-700); font-size: .6rem; font-weight: 700; }
.side-recent b { display: block; color: var(--ink); font-size: .88rem; line-height: 1.3; font-family: var(--font-body); font-weight: 600; }
.side-recent span { font-size: .76rem; color: var(--muted); }
.side-recent a:hover b { color: var(--green); }
.side-dl a { display: flex; gap: .7rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.side-dl a:first-child { border-top: none; padding-top: 0; }
.side-dl .fi { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: .62rem; font-weight: 800; flex: 0 0 auto; }
.side-dl b { display: block; color: var(--ink); font-size: .84rem; font-weight: 600; line-height: 1.3; }
.side-dl span { font-size: .74rem; color: var(--muted); }
.side-cta { background: var(--green-900); color: #d6e5e0; border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.side-cta .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto .8rem; }
.side-cta h4 { font-family: var(--font-display); color: #fff; font-size: 1.25rem; border: none; padding: 0; margin-bottom: .5rem; letter-spacing: 0; text-transform: none; }
.side-cta p { font-size: .88rem; margin-bottom: 1.1rem; }
@media (min-width: 941px) { .article-side { position: sticky; top: 90px; } }

/* News card thumbnail (list page) */
.card__media img.real { object-fit: cover; }

/* ---------- Download Centre (public) ---------- */
.dlc-card {
  display: flex; gap: 1.1rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); align-items: flex-start; transition: var(--transition);
}
.dlc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.dlc-ic {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .68rem; letter-spacing: .06em; flex: 0 0 auto;
}
.dlc-ic--pdf { background: #c0392b; } .dlc-ic--doc { background: #2b5fad; }
.dlc-ic--mp3 { background: #7d3fb2; } .dlc-ic--img { background: #c67a1e; }
.dlc-ic--xls { background: #177a4c; } .dlc-ic--any { background: var(--green); }
.dlc-card .grow { flex: 1; min-width: 0; }
.dlc-meta { font-size: .76rem; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: .25rem; }
.dlc-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.dlc-dl {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--muted); flex: 0 0 auto; transition: var(--transition);
}
.dlc-dl:hover { background: var(--green); color: #fff; }
.dlc-dl svg { width: 20px; height: 20px; }
.dlc-search { display: flex; gap: .6rem; max-width: 900px; }
.dlc-search input { flex: 1; padding: .95rem 1.3rem; border: 1.5px solid var(--line); border-radius: 100px; font-family: inherit; font-size: 1rem; background: #fff; }
.dlc-search input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(14,125,107,.12); }
.pillbar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1rem; }
.pillbar button { padding: .55rem 1.15rem; border-radius: 100px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .87rem; color: var(--body); transition: var(--transition); }
.pillbar button:hover { border-color: var(--green); color: var(--green); }
.pillbar button.active { background: var(--green); color: #fff; border-color: var(--green); }
.dlc-count { font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; }
.dlc-count b { color: var(--ink); }
.dlc-row {
  display: flex; gap: 1.1rem; padding: 1.4rem 1.5rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); align-items: center; margin-bottom: 1rem; flex-wrap: wrap; transition: var(--transition);
}
.dlc-row:hover { box-shadow: var(--shadow-sm); }
.dlc-row .grow { flex: 1; min-width: 240px; }
.dlc-row h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.dlc-row .desc { color: var(--muted); font-size: .93rem; margin: 0 0 .5rem; }
.dlc-row .meta { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); font-weight: 500; }
.dlc-row .meta span { display: inline-flex; align-items: center; gap: .35rem; }
.dlc-row .meta svg { width: 14px; height: 14px; }
.dlc-actions { display: flex; gap: .55rem; align-items: center; }
.dlc-share { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); background: #fff; transition: var(--transition); cursor: pointer; }
.dlc-share:hover { border-color: var(--green); color: var(--green); }
.dlc-share svg { width: 18px; height: 18px; }
.dlc-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

/* ---------- ABE logo badge ---------- */
.abe-logo-badge {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: clamp(2rem, 5vw, 3rem);
  display: grid; place-items: center; min-height: 240px;
}
.abe-logo-badge img { width: min(90%, 360px); height: auto; }

.abe-logo-placeholder {
  width: min(70%, 260px); aspect-ratio: 16/9; display: grid; place-items: center; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--bg-soft); padding: 1rem;
}
.abe-logo-placeholder span { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: .08em; color: var(--green); line-height: 1; }
.abe-logo-placeholder small { display: block; margin-top: .5rem; font-size: .72rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(14,125,107,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.info-list { display: grid; gap: 1.2rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item b { display: block; color: var(--ink); font-size: .95rem; }
.info-item span, .info-item a { color: var(--muted); font-size: .92rem; }

/* ---------- Downloads ---------- */
.dl { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: var(--transition); }
.dl:hover { box-shadow: var(--shadow-sm); border-color: var(--green); }
.dl__ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; }
.dl__ic svg { width: 24px; height: 24px; }
.dl__body { flex: 1; min-width: 0; }
.dl__body b { display: block; color: var(--ink); font-size: 1rem; }
.dl__body span { font-size: .82rem; color: var(--muted); }
.dl__btn { flex: 0 0 auto; }

/* ---------- News list item ---------- */
.post-meta { display: flex; gap: 1rem; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.post-meta .cat { color: var(--gold-600); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #a9c4bd; padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col, .footer-brand { min-width: 0; }
  .newsletter { flex-wrap: wrap; }
  .newsletter input { min-width: 0; width: 100%; }
  .newsletter .btn { width: 100%; }
}
.footer-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.1rem; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: var(--gold); }
.site-footer p { color: #a9c4bd; font-size: .92rem; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; letter-spacing: .04em; margin-bottom: 1.1rem; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col a { color: #a9c4bd; font-size: .92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .8rem; font-size: .9rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--gold); margin-top: .15rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cfe0db; }
.footer-social a:hover { background: var(--gold); color: var(--green-900); }
.footer-social svg { width: 18px; height: 18px; }
.newsletter { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter input { flex: 1; padding: .7rem .9rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-size: .9rem; }
.newsletter input::placeholder { color: #7f9d96; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; }
.footer-bottom a { color: #a9c4bd; }
.footer-bottom__links { display: flex; gap: 1.3rem; flex-wrap: wrap; }

/* ---------- Utilities ---------- */
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.lead { font-size: 1.12rem; color: var(--body); }
.text-muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); border: none; margin-block: clamp(2rem,5vw,3.5rem); }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* Back to top */
.to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-600); color: #fff; }

/* Readability, keyboard access and motion preferences. */
:focus-visible{outline:3px solid #aa7917;outline-offset:4px}
.admission-summary{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:2rem;align-items:center}
.admission-summary .hero__actions{flex-direction:column;align-items:flex-start}
.ztu-skip{position:fixed;left:1rem;top:-100px;z-index:10000;padding:.75rem 1rem;background:#fff;color:#0c3329;border:2px solid #0c3329}.ztu-skip:focus{top:1rem}
@media(max-width:720px){.admission-summary{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.reveal{opacity:1!important;transform:none!important}}

.hero__bg img{aspect-ratio:16/9}.reveal{scroll-margin-top:100px}
