/*
Theme Name: Bushiangala TTI
Theme URI: https://bushiangalatechnical.ac.ke
Author: Bushiangala Technical Training Institute
Author URI: https://bushiangalatechnical.ac.ke
Description: A modern, elegant WordPress theme for Bushiangala Technical Training Institute, inspired by leading Kenyan tertiary institutions.
Version: 1.9.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bushiangala-tti
Tags: education, college, technical, tvet, kenya, multi-page, full-width-template
*/

/* ===================================================
   CSS CUSTOM PROPERTIES
=================================================== */
:root {
  /* Brand colours — derived from the institute logo (royal blue + teal) */
  --clr-primary:       #15489e;   /* royal blue (crest & ribbon) */
  --clr-primary-dark:  #0e2f6b;   /* deep navy */
  --clr-primary-light: #2a66c4;   /* lighter blue (hover) */
  --clr-accent:        #2ba9bc;   /* teal / cyan (inner banner) */
  --clr-accent-hover:  #1f8a9a;
  --clr-red:           #d24343;   /* red accents from logo tools */

  /* Neutrals */
  --clr-white:  #ffffff;
  --clr-off-white: #f6f8fc;
  --clr-light:  #e9f0fa;
  --clr-grey:   #6b7280;
  --clr-dark:   #1c1c1e;
  --clr-text:   #2d3748;

  /* Typography */
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Source Sans 3', 'Segoe UI', sans-serif;
  --ff-mono:    'Courier New', monospace;

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  3rem;
  --sp-xl:  5rem;

  /* Layout */
  --max-width: 1440px;
  --nav-height: 82px;
  --topbar-height: 40px;
  --radius: 4px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,.14);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.18);

  /* Transitions */
  --transition: 0.25s ease;
}

/* ===================================================
   RESET & BASE
=================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* overflow-x:hidden on body breaks position:sticky on children — use clip instead */
  overflow-x: clip;
}
/* Fallback for browsers without overflow:clip support — apply hidden to html instead */
@supports not (overflow-x: clip) {
  html { overflow-x: hidden; }
}
img { max-width: 100%; height: auto; display: block; }
/* Media never overflows its container */
img, svg, video, iframe, table { max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-accent); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===================================================
   TYPOGRAPHY
=================================================== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--clr-primary-dark);
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* ===================================================
   LAYOUT UTILITIES
=================================================== */
.container {
  max-width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 5rem);
  width: 100%;
}
.container--narrow { max-width: 1280px; padding-inline: clamp(1.5rem, 4vw, 3rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.section { padding-block: var(--sp-xl); }
.section--sm { padding-block: var(--sp-lg); }

/* ===================================================
   BUTTONS
=================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
}
.btn--primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  border: 2px solid var(--clr-primary);
}
.btn--primary:hover {
  background: var(--clr-primary-light);
  border-color: var(--clr-primary-light);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--accent {
  background: var(--clr-accent);
  color: var(--clr-white);
  border: 2px solid var(--clr-accent);
}
.btn--accent:hover {
  background: var(--clr-accent-hover);
  border-color: var(--clr-accent-hover);
  color: var(--clr-white);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid var(--clr-white);
}
.btn--outline:hover {
  background: var(--clr-white);
  color: var(--clr-primary);
}
.btn--red {
  background: var(--clr-red);
  color: var(--clr-white);
  border: 2px solid var(--clr-red);
}
.btn--red:hover {
  background: #b02e2e;
  border-color: #b02e2e;
  color: var(--clr-white);
}

/* Section headings with decorative line */
.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--sp-lg);
}
.section-heading h2 { margin: 0; }
.section-heading::after {
  content: '';
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent) 0%, transparent 100%);
  border-radius: 2px;
}

/* ===================================================
   STICKY HEADER STACK (Topbar + Main nav move together)
   Bulletproof — !important so cache/plugins can't override.
   JS fallback in main.js handles browsers where CSS sticky
   is broken by ancestor overflow/transform.
=================================================== */
.site-header-stack {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  background: var(--clr-white);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: box-shadow .25s ease;
  width: 100%;
}
.site-header-stack.is-scrolled {
  box-shadow: 0 6px 24px rgba(0,0,0,.16);
}
/* JS-fallback fixed positioning is set inline; placeholder reserves space */
.site-header-stack-placeholder { display: block; }

/* ===================================================
   TOP UTILITY BAR
=================================================== */
.topbar {
  background: var(--clr-primary-dark);
  color: rgba(255,255,255,.85);
  height: var(--topbar-height);
  font-size: .8rem;
  letter-spacing: .02em;
  position: relative;
  z-index: 1;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.topbar__contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.topbar__contact a {
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color var(--transition);
}
.topbar__contact a:hover { color: var(--clr-accent); }
.topbar__contact svg { width: 14px; height: 14px; flex-shrink: 0; }

.topbar__links {
  display: flex;
  align-items: center;
  gap: 0;
}
.topbar__links a {
  color: rgba(255,255,255,.8);
  padding: 0 .75rem;
  border-right: 1px solid rgba(255,255,255,.15);
  transition: color var(--transition);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.topbar__links a:last-child { border-right: none; }
.topbar__links a:hover { color: var(--clr-accent); }
.topbar__btn {
  background: var(--clr-accent);
  color: var(--clr-white) !important;
  padding: .25rem .85rem !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  border-right: none !important;
}
.topbar__btn:hover { background: var(--clr-accent-hover); color: var(--clr-white) !important; }

/* ===================================================
   MAIN NAVIGATION
=================================================== */
.site-header {
  position: relative;
  z-index: 1;
  background: var(--clr-white);
  height: var(--nav-height);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--clr-primary-dark);
}
.site-logo__emblem {
  width: 88px;
  height: 66px;
  flex-shrink: 0;
  object-fit: contain;
}
.site-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo__name {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.site-logo__tagline {
  font-size: .7rem;
  color: var(--clr-grey);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Nav menu */
.main-nav { display: flex; align-items: center; height: 100%; }
.nav-menu {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin: 0;
}
.nav-menu > li {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
}
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: 0 1rem;
  height: 100%;
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a {
  color: var(--clr-primary);
  border-bottom-color: var(--clr-accent);
}
.nav-menu > li > a .chevron {
  width: 12px; height: 12px;
  transition: transform var(--transition);
  opacity: .6;
}
.nav-menu > li:hover > a .chevron,
.nav-menu > li.open > a .chevron { transform: rotate(180deg); }

/* Student Portal CTA in primary nav */
.nav-menu > li.menu-item-cta { display: flex; align-items: center; }
.nav-menu > li.menu-item-cta > a,
.nav-menu > li > a.nav-portal-link {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  color: #fff !important;
  border-radius: 6px;
  padding: .45rem .9rem !important;
  margin: 0 .25rem;
  border-bottom: none !important;
  font-size: .78rem !important;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: 0 2px 8px rgba(21,72,158,.25);
  height: auto;
}
.nav-menu > li.menu-item-cta > a:hover,
.nav-menu > li > a.nav-portal-link:hover {
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-hover, #1f8a9a) 100%);
  box-shadow: 0 4px 12px rgba(43,169,188,.3);
  transform: translateY(-1px);
  color: #fff !important;
  border-bottom-color: transparent !important;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--clr-white) !important;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--clr-accent);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 9999;
  pointer-events: none;
}
/* Show on hover (desktop pointer), focus-within (keyboard), and .open (JS) */
.nav-menu > li:hover > .dropdown,
.nav-menu > li:focus-within > .dropdown,
.nav-menu > li.open > .dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}
.dropdown a {
  display: block;
  padding: .65rem 1.25rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--clr-text, #1f2937) !important;  /* fallback if var fails */
  background: transparent;
  border-bottom: 1px solid #f0f0f0;
  transition: all var(--transition);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover,
.dropdown a:focus {
  background: var(--clr-light, #f3f6fa) !important;
  color: var(--clr-primary, #15489e) !important;
  padding-left: 1.6rem;
}

/* Nav search */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  margin-left: .75rem;
  transition: all var(--transition);
}
.nav-search-btn:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
}
.nav-search-btn svg { width: 16px; height: 16px; }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 8px;
  margin-left: .5rem;
  background: transparent;
  border: none;
  position: relative;
  z-index: 250;
}
.hamburger span {
  display: block;
  height: 2.5px;
  background: var(--clr-primary-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================================================
   NEWS TICKER
=================================================== */
.news-ticker {
  background: var(--clr-red);
  color: var(--clr-white);
  height: 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.news-ticker__label {
  background: var(--clr-primary-dark);
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-ticker__track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}
.news-ticker__inner {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
}
.news-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0 2.5rem;
  font-size: .82rem;
  font-weight: 500;
}
.news-ticker__item a { color: var(--clr-white); }
.news-ticker__item a:hover { text-decoration: underline; }
.news-ticker__item::before { content: '◆'; opacity: .5; font-size: .6rem; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================================================
   HOME HERO / SLIDER
=================================================== */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-height) - var(--topbar-height) - 38px);
  min-height: 520px;
  max-height: 800px;
  overflow: hidden;
}
.hero__slides { height: 100%; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero__slide.active { opacity: 1; }
/* Blurred, darkened copy of the photo fills any letterbox space */
.hero__slide::before {
  content: '';
  position: absolute;
  inset: -28px;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(.68);
  z-index: 0;
}
/* The COMPLETE photograph — never cropped, always fully visible */
.hero__photo {
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}
.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    120deg,
    rgba(14,47,107,.72) 0%,
    rgba(14,47,107,.32) 55%,
    transparent 100%
  );
}
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6%;
  z-index: 3;
  max-width: 700px;
  text-shadow: 0 2px 12px rgba(14,47,107,.55);
}
.hero__eyebrow {
  display: inline-block;
  background: var(--clr-accent);
  color: var(--clr-white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s ease .2s;
}
.hero__slide.active .hero__eyebrow {
  opacity: 1;
  transform: translateY(0);
}
.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(25px);
  transition: all .65s ease .35s;
}
.hero__slide.active .hero__title {
  opacity: 1;
  transform: translateY(0);
}
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .65s ease .5s;
}
.hero__slide.active .hero__subtitle {
  opacity: 1;
  transform: translateY(0);
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: all .65s ease .65s;
}
.hero__slide.active .hero__actions {
  opacity: 1;
  transform: translateY(0);
}

/* Slider controls */
.hero__controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .6rem;
  z-index: 3;
}
.hero__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.hero__dot.active {
  background: var(--clr-accent);
  transform: scale(1.3);
}
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  color: white;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.hero__arrow:hover { background: var(--clr-accent); border-color: var(--clr-accent); }
.hero__arrow--prev { left: 1.5rem; }
.hero__arrow--next { right: 1.5rem; }
.hero__arrow svg { width: 20px; height: 20px; }

/* ===================================================
   QUICK LINKS BAR (below hero)
=================================================== */
.quick-links-bar {
  background: var(--clr-primary);
  color: var(--clr-white);
  padding-block: 1.25rem;
}
.quick-links-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  background: var(--clr-primary);
  color: var(--clr-white);
  text-decoration: none;
  transition: background var(--transition);
}
.quick-link:hover { background: var(--clr-primary-light); color: var(--clr-white); }
.quick-link__icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.quick-link:hover .quick-link__icon { background: var(--clr-accent); }
.quick-link__icon svg { width: 20px; height: 20px; }
.quick-link__text { font-size: .9rem; font-weight: 600; line-height: 1.2; }
.quick-link__sub { font-size: .75rem; opacity: .7; }

/* ===================================================
   ABOUT / WELCOME SECTION
=================================================== */
.about-section {
  background: linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
  position: relative;
  overflow: hidden;
  padding-block: 5rem 6rem;
}
.about-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(43,169,188,.1) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: btti-float-slow 20s ease-in-out infinite;
}
.about-section::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(21,72,158,.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: btti-float-slow 25s ease-in-out infinite reverse;
}
@keyframes btti-float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -30px) scale(1.08); }
}
.about-section > .container { position: relative; z-index: 1; }
.about-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}
.about-section__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-section__image img {
  width: 100%;
  height: auto;
  display: block;
}
.about-section__image-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--clr-accent);
  color: var(--clr-white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--ff-display);
}
.about-section__image-badge .num { font-size: 2rem; font-weight: 700; line-height: 1; }
.about-section__image-badge .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.about-section__tag {
  display: inline-block;
  background: var(--clr-light);
  color: var(--clr-primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 2px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--clr-accent);
}
.about-section__content h2 { color: var(--clr-primary-dark); margin-bottom: 1.25rem; }
.about-section__content p { color: var(--clr-grey); font-size: 1.05rem; }
.about-section__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,.1);
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1;
}
.stat__label { font-size: .8rem; color: var(--clr-grey); text-transform: uppercase; letter-spacing: .05em; }

/* Mission / Vision cards */
.mv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.mv-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  transition: all var(--transition);
}
.mv-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.mv-card--mission { border-top-color: var(--clr-primary); }
.mv-card--vision  { border-top-color: var(--clr-accent); }
.mv-card--values  { border-top-color: var(--clr-red); }
.mv-card__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.mv-card--mission .mv-card__icon { background: rgba(26,75,46,.1); color: var(--clr-primary); }
.mv-card--vision  .mv-card__icon { background: rgba(200,151,42,.1); color: var(--clr-accent); }
.mv-card--values  .mv-card__icon { background: rgba(176,28,46,.1); color: var(--clr-red); }
.mv-card__icon svg { width: 24px; height: 24px; }
.mv-card h4 { font-size: 1.05rem; color: var(--clr-primary-dark); margin-bottom: .6rem; }
.mv-card p { font-size: .9rem; color: var(--clr-grey); margin: 0; }

/* ===================================================
   DEPARTMENTS SECTION
=================================================== */
.departments-section { background: var(--clr-white); }
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.dept-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.dept-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.dept-card:hover .dept-card__bg { transform: scale(1.06); }
.dept-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(17,45,28,.9) 100%);
  transition: background var(--transition);
}
.dept-card:hover .dept-card__overlay {
  background: linear-gradient(180deg, rgba(17,45,28,.3) 0%, rgba(17,45,28,.92) 100%);
}
.dept-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: var(--clr-white);
  transform: translateY(0);
  transition: transform var(--transition);
}
.dept-card__icon {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}
.dept-card__title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .4rem;
}
.dept-card__sub {
  font-size: .8rem;
  opacity: .8;
  margin-bottom: .85rem;
}
.dept-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}
.dept-card:hover .dept-card__link { opacity: 1; transform: translateY(0); }

/* ===================================================
   NEWS & EVENTS
=================================================== */
.news-section {
  background: linear-gradient(180deg, #fffaf2 0%, #fff5e6 100%);
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
}
.news-section::before {
  content: '';
  position: absolute;
  top: -80px; left: 5%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,.1) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: btti-float-slow 22s ease-in-out infinite;
}
.news-section::after {
  content: '';
  position: absolute;
  bottom: -100px; right: 5%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(220,38,38,.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: btti-float-slow 28s ease-in-out infinite reverse;
}
.news-section > .container { position: relative; z-index: 1; }
.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
}
.news-featured {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.news-featured:hover { box-shadow: var(--shadow-md); }
.news-featured__image {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.news-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-featured:hover .news-featured__image img { transform: scale(1.04); }
.news-featured__cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--clr-accent);
  color: var(--clr-white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 2px;
}
.news-featured__body { padding: 1.75rem; }
.news-featured__meta { font-size: .8rem; color: var(--clr-grey); margin-bottom: .6rem; }
.news-featured h3 { font-size: 1.3rem; margin-bottom: .75rem; color: var(--clr-primary-dark); }
.news-featured h3 a { color: inherit; }
.news-featured h3 a:hover { color: var(--clr-primary); }
.news-featured p { font-size: .92rem; color: var(--clr-grey); }

.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  background: var(--clr-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.news-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.news-item__image { height: 90px; overflow: hidden; }
.news-item__image img { width: 100%; height: 100%; object-fit: cover; }
.news-item__body { padding: .75rem .75rem .75rem 0; }
.news-item__meta { font-size: .73rem; color: var(--clr-grey); margin-bottom: .3rem; }
.news-item__title { font-size: .9rem; font-weight: 600; color: var(--clr-primary-dark); line-height: 1.35; }
.news-item__title a { color: inherit; }
.news-item__title a:hover { color: var(--clr-primary); }

.view-all-wrap { text-align: center; margin-top: 2.5rem; }

/* ===================================================
   STATISTICS COUNTER STRIP
=================================================== */
.stats-strip {
  background: var(--clr-primary);
  padding-block: 3rem;
}
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { color: var(--clr-white); }
.stat-item__num {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--clr-accent);
  display: block;
  margin-bottom: .3rem;
}
.stat-item__label {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .85;
}
.stat-item__icon { font-size: 1.8rem; margin-bottom: .5rem; opacity: .7; }

/* ===================================================
   TESTIMONIALS / PRINCIPAL'S MESSAGE
=================================================== */
.principal-section {
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
  padding-block: var(--sp-xl);
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}
.principal-section::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: 4%;
  font-family: var(--ff-display);
  font-size: 20rem;
  line-height: 1;
  color: rgba(255,255,255,.04);
  pointer-events: none;
}
.principal-section__inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--sp-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
.principal-photo {
  text-align: center;
}
.principal-photo img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--clr-accent);
  margin-inline: auto;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-lg);
}
.principal-photo .name {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-white);
}
.principal-photo .title {
  font-size: .82rem;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .25rem;
}
.principal-message blockquote {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.5;
  color: rgba(255,255,255,.95);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.principal-message p {
  font-size: 1rem;
  color: rgba(255,255,255,.78);
  line-height: 1.8;
}
.principal-message .signature {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .85rem;
  color: var(--clr-accent);
  font-weight: 600;
}

/* ===================================================
   ANNOUNCEMENTS / DOWNLOADS SECTION
=================================================== */
.announce-section {
  background: linear-gradient(180deg, #fff 0%, #fff7ee 100%);
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
}
.announce-section::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,.1) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: btti-float-slow 24s ease-in-out infinite;
}
.announce-section > .container { position: relative; z-index: 1; }
.announce-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.announce-panel { }
.announce-panel h3 {
  font-size: 1.2rem;
  color: var(--clr-primary-dark);
  padding-bottom: .75rem;
  border-bottom: 3px solid var(--clr-accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.announce-list { display: flex; flex-direction: column; gap: 0; }
.announce-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background var(--transition);
}
.announce-item:hover { background: var(--clr-off-white); }
.announce-item__date {
  background: var(--clr-primary);
  color: var(--clr-white);
  text-align: center;
  padding: .4rem .6rem;
  border-radius: var(--radius);
  min-width: 50px;
  flex-shrink: 0;
  line-height: 1;
}
.announce-item__date .day { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 700; }
.announce-item__date .month { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.announce-item__content {}
.announce-item__title { font-size: .9rem; font-weight: 600; color: var(--clr-primary-dark); margin-bottom: .2rem; line-height: 1.3; }
.announce-item__title a { color: inherit; }
.announce-item__title a:hover { color: var(--clr-primary); }
.announce-item__type { font-size: .73rem; color: var(--clr-grey); text-transform: uppercase; letter-spacing: .05em; }

.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  background: var(--clr-off-white);
  border-radius: var(--radius);
  margin-bottom: .6rem;
  border-left: 3px solid var(--clr-primary);
  transition: all var(--transition);
}
.download-item:hover {
  background: var(--clr-light);
  border-left-color: var(--clr-accent);
  transform: translateX(4px);
}
.download-item__icon { color: var(--clr-red); flex-shrink: 0; }
.download-item__icon svg { width: 24px; height: 24px; }
.download-item__name { flex: 1; font-size: .9rem; font-weight: 600; color: var(--clr-primary-dark); }
.download-item__size { font-size: .75rem; color: var(--clr-grey); }
.download-item__btn {
  background: var(--clr-primary);
  color: var(--clr-white);
  padding: .35rem .8rem;
  border-radius: var(--radius);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background var(--transition);
}
.download-item__btn:hover { background: var(--clr-accent); color: var(--clr-white); }

/* ===================================================
   INTERIOR PAGE HERO
=================================================== */
.page-hero {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,45,28,.45) 0%, rgba(17,45,28,.85) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  width: 100%;
  color: var(--clr-white);
}
.page-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.2;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .6rem;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}
.breadcrumb a { color: var(--clr-accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { opacity: .5; }

/* ===================================================
   INTERIOR PAGE LAYOUT
=================================================== */
.page-layout {
  padding-block: var(--sp-lg);
}
.page-layout__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.page-layout--full .page-layout__inner {
  grid-template-columns: 1fr;
}

/* Page content typography */
.entry-content h2 {
  font-size: 1.6rem;
  color: var(--clr-primary-dark);
  margin: 2rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--clr-light);
}
.entry-content h3 {
  font-size: 1.25rem;
  color: var(--clr-primary);
  margin: 1.5rem 0 .75rem;
}
.entry-content p { color: var(--clr-text); font-size: 1rem; line-height: 1.8; }
.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--clr-text);
}
.entry-content li { margin-bottom: .4rem; line-height: 1.7; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}
.entry-content table th {
  background: var(--clr-primary);
  color: var(--clr-white);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.entry-content table td {
  padding: .6rem 1rem;
  border-bottom: 1px solid #e8e8e8;
  color: var(--clr-text);
}
.entry-content table tr:nth-child(even) { background: var(--clr-off-white); }

/* Sidebar */
.sidebar__widget {
  background: var(--clr-off-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}
.sidebar__widget-title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sidebar__nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-size: .9rem;
  color: var(--clr-text);
  transition: all var(--transition);
}
.sidebar__nav-link:hover {
  color: var(--clr-primary);
  padding-left: .5rem;
}
.sidebar__nav-link.active {
  color: var(--clr-primary);
  font-weight: 700;
}
.sidebar__contact-item {
  display: flex;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .88rem;
  color: var(--clr-text);
}
.sidebar__contact-item svg {
  color: var(--clr-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===================================================
   DEPARTMENT PAGE TEMPLATE
=================================================== */
.dept-header {
  background: var(--clr-off-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border-left: 5px solid var(--clr-primary);
}
.dept-header h2 { margin-bottom: .75rem; }
.dept-header .dept-intro { font-size: 1.05rem; color: var(--clr-grey); }
.dept-header .dept-hod {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,.1);
}
.dept-header .dept-hod img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--clr-primary);
}
.dept-header .hod-name { font-weight: 700; font-size: .95rem; color: var(--clr-primary-dark); }
.dept-header .hod-title { font-size: .8rem; color: var(--clr-grey); }

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.staff-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border-top: 3px solid var(--clr-light);
}
.staff-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-top-color: var(--clr-primary);
}
.staff-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-inline: auto;
  margin-bottom: .75rem;
  border: 3px solid var(--clr-light);
}
.staff-card .staff-name { font-weight: 700; font-size: .95rem; color: var(--clr-primary-dark); margin-bottom: .2rem; }
.staff-card .staff-role { font-size: .78rem; color: var(--clr-grey); }

/* ===================================================
   CONTACT PAGE
=================================================== */
.contact-section {}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-info__icon {
  width: 50px;
  height: 50px;
  background: var(--clr-primary);
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--clr-grey); margin-bottom: .3rem; }
.contact-info__value { font-weight: 600; color: var(--clr-primary-dark); }
.contact-info__value a { color: inherit; }
.contact-info__value a:hover { color: var(--clr-primary); }

/* Contact form */
.contact-form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: .95rem;
  color: var(--clr-text);
  background: var(--clr-white);
  transition: border-color var(--transition);
  margin-bottom: 1.25rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(26,75,46,.12);
}
.contact-form textarea { height: 140px; resize: vertical; }
.map-embed {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 560px) {
  .map-embed { aspect-ratio: 4 / 3; }
}

/* ===================================================
   FOOTER
=================================================== */
.site-footer {
  background: var(--clr-primary-dark);  /* deep navy — matches logo */
  color: rgba(255,255,255,.85);
}
.footer-main {
  padding-block: var(--sp-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand {}
.footer-brand .logo-text {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: .3rem;
}
.footer-brand .logo-sub {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
}
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 1.25rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .75rem;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; opacity: .7; }
.footer-contact-item a { color: rgba(255,255,255,.75); }
.footer-contact-item a:hover { color: var(--clr-accent); }

.footer-col-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-white);
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid rgba(255,255,255,.15);
}
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
  font-size: .87rem;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: all var(--transition);
}
.footer-links a::before {
  content: '›';
  color: var(--clr-accent);
  font-size: 1.1rem;
  line-height: 1;
}
.footer-links a:hover { color: var(--clr-white); padding-left: .3rem; }

.footer-bottom {
  background: rgba(0,0,0,.3);
  padding-block: 1.25rem;
}
.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom__copy {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom__copy a { color: var(--clr-accent); }
.footer-socials {
  display: flex;
  gap: .6rem;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover {
  background: var(--clr-accent);
  color: var(--clr-white);
  transform: translateY(-3px);
}
.social-link svg { width: 16px; height: 16px; }

/* ===================================================
   SEARCH OVERLAY
=================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,45,28,.96);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay__form {
  width: min(700px, 90vw);
}
.search-overlay__label {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1rem;
  text-align: center;
}
.search-overlay__input-wrap {
  display: flex;
  border-bottom: 2px solid rgba(255,255,255,.4);
}
.search-overlay__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 1rem;
  font-size: 1.75rem;
  color: var(--clr-white);
  font-family: var(--ff-body);
}
.search-overlay__input::placeholder { color: rgba(255,255,255,.3); }
.search-overlay__submit {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  padding: 1rem;
  cursor: pointer;
  transition: color var(--transition);
}
.search-overlay__submit:hover { color: var(--clr-accent); }
.search-overlay__submit svg { width: 28px; height: 28px; }
.search-overlay__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: rgba(255,255,255,.6);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
}
.search-overlay__close:hover { color: var(--clr-white); }

/* ===================================================
   BACK TO TOP
=================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--clr-primary);
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 50;
  border: none;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--clr-accent); }
.back-to-top svg { width: 20px; height: 20px; }

/* ===================================================
   WORDPRESS CORE CLASSES
=================================================== */
.alignleft { float: left; margin: 0 2rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 2rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--clr-grey); margin-top: .4rem; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ===================================================
   ACCESSIBILITY
=================================================== */
:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--clr-primary);
  color: var(--clr-white);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  z-index: 9999;
  font-size: .9rem;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0.5rem; }

/* ===================================================
   SECTION SHARED HELPERS
=================================================== */
.section-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: .5rem;
}
.section-lead {
  font-size: 1rem;
  color: var(--clr-grey);
  margin-top: .5rem;
  max-width: 560px;
}
.section-heading--flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.section-heading--flex h2 { margin-bottom: 0; }

/* ===================================================
   BADGE PILLS  (news category labels)
=================================================== */
.badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .28rem .7rem;
  border-radius: 3px;
}
.badge--blue   { background: #dbeafe; color: #1e40af; }
.badge--teal   { background: #ccfbf1; color: #0f766e; }
.badge--green  { background: #dcfce7; color: #15803d; }
.badge--purple { background: #ede9fe; color: #6d28d9; }
.badge--grey   { background: #f1f5f9; color: #475569; }

/* ===================================================
   QUICK LINKS – CARD STYLE (replaces bar)
=================================================== */
.quicklinks-section {
  background: var(--clr-white);
  padding-block: 2rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.qlink-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--clr-off-white);
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--clr-text);
  transition: all var(--transition);
  position: relative;
}
.qlink-card:hover {
  background: var(--clr-white);
  border-color: var(--clr-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.qlink-card__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--clr-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  transition: background var(--transition);
}
.qlink-card:hover .qlink-card__icon { background: var(--clr-accent); }
.qlink-card__icon svg { width: 20px; height: 20px; }
.qlink-card__body { flex: 1; min-width: 0; }
.qlink-card__status {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #16a34a;
  margin-bottom: .2rem;
}
.qlink-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.qlink-card__dot--open { background: #16a34a; }
.qlink-card__dot--closed { background: #dc2626; }
.qlink-card__title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  line-height: 1.2;
}
.qlink-card__sub {
  font-size: .75rem;
  color: var(--clr-grey);
  margin-top: .1rem;
}
.qlink-card__arrow {
  width: 16px;
  height: 16px;
  color: var(--clr-grey);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition);
}
.qlink-card:hover .qlink-card__arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--clr-primary);
}

/* ===================================================
   DEPARTMENTS – CARD STYLE v2  (Shamberere-inspired)
=================================================== */
.departments-section { background: var(--clr-off-white); }
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.dept-card2 {
  position: relative;
  background: var(--clr-white);
  border-radius: 14px;
  padding: 2rem 1.75rem 1.5rem;
  border: 1px solid rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.dept-card2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  opacity: 0;
  transition: opacity .35s;
}
.dept-card2::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(43,169,188,.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
}
.dept-card2:hover {
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(14,47,107,.12), 0 0 0 1px rgba(21,72,158,.08);
  transform: translateY(-4px);
}
.dept-card2:hover::before { opacity: 1; }
.dept-card2:hover::after  { opacity: 1; }
.dept-card2__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .2rem;
}
.dept-card2__icon {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(21,72,158,.1) 0%, rgba(43,169,188,.1) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  transition: all .35s;
  box-shadow: 0 4px 12px rgba(21,72,158,.08);
}
.dept-card2:hover .dept-card2__icon {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(21,72,158,.25);
  transform: rotate(-5deg) scale(1.05);
}
.dept-card2__icon svg { width: 26px; height: 26px; transition: transform .35s; }

/* Color-coded department icons */
.dept-card2--electric    .dept-card2__icon { background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(245,158,11,.3) !important; }
.dept-card2--computing   .dept-card2__icon { background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(59,130,246,.3) !important; }
.dept-card2--business    .dept-card2__icon { background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(16,185,129,.3) !important; }
.dept-card2--building    .dept-card2__icon { background: linear-gradient(135deg, #8b5cf6 0%, #5b21b6 100%) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(139,92,246,.3) !important; }
.dept-card2--hospitality .dept-card2__icon { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(236,72,153,.3) !important; }
.dept-card2--mechanical  .dept-card2__icon { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(6,182,212,.3) !important; }
.dept-card2--science     .dept-card2__icon { background: linear-gradient(135deg, #84cc16 0%, #4d7c0f 100%) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(132,204,22,.3) !important; }
.dept-card2__title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -.01em;
  flex: 1;
}
.dept-card2__desc {
  font-size: .88rem;
  color: var(--clr-grey);
  line-height: 1.65;
  margin: 0;
}
.dept-card2__courses {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .1rem;
}
.dept-card2__pill {
  font-size: .72rem;
  background: var(--clr-off-white);
  color: var(--clr-primary);
  border: 1px solid rgba(21,72,158,.12);
  border-radius: 20px;
  padding: .3rem .75rem;
  font-weight: 600;
  transition: all .25s;
  letter-spacing: .01em;
}
.dept-card2:hover .dept-card2__pill {
  background: rgba(21,72,158,.06);
  border-color: rgba(21,72,158,.18);
}
.dept-card2__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,.06);
}
.dept-card2__meta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--clr-grey);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dept-card2__meta svg { width: 13px; height: 13px; color: var(--clr-accent); }
.dept-card2__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-decoration: none;
  transition: gap .25s, color .25s;
  letter-spacing: .01em;
}
.dept-card2:hover .dept-card2__link { color: var(--clr-accent); gap: .55rem; }
.dept-card2__link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.dept-card2:hover .dept-card2__link svg { transform: translateX(2px); }

/* ===================================================
   STATS COUNTER STRIP  – modernised
=================================================== */
.stats-strip {
  background: var(--clr-primary-dark);
  padding-block: 3.5rem;
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(43,169,188,.15) 0%, transparent 65%);
  pointer-events: none;
}
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--clr-white);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  transition: background var(--transition);
}
.stat-item:hover { background: rgba(255,255,255,.06); }
.stat-item__icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--clr-accent);
}
.stat-item__icon svg { width: 22px; height: 22px; }
.stat-item__num {
  font-family: var(--ff-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--clr-accent);
  display: block;
  margin-bottom: .4rem;
}
.stat-item__label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: rgba(255,255,255,.7);
  line-height: 1.3;
}

/* ===================================================
   NEWS CARDS GRID  (Shamberere-style 4-card layout)
=================================================== */
/* news-section bg defined above */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.news-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition);
}
.news-card:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 8px 30px rgba(0,0,0,.09);
  transform: translateY(-3px);
}
.news-card__img {
  height: 180px;
  overflow: hidden;
}
.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.news-card__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.news-card__date {
  font-size: .75rem;
  color: var(--clr-grey);
}
.news-card__title {
  font-size: .97rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  line-height: 1.35;
  margin: 0;
}
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a:hover { color: var(--clr-primary); }
.news-card__excerpt {
  font-size: .85rem;
  color: var(--clr-grey);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .83rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-decoration: none;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid rgba(0,0,0,.06);
  transition: color var(--transition);
}
.news-card__more:hover { color: var(--clr-accent); }
.news-card__more svg { transition: transform var(--transition); }
.news-card:hover .news-card__more svg { transform: translateX(4px); }

/* ===================================================
   PARTNERS & ACCREDITATION (elegant card grid)
=================================================== */
.partners-section {
  background: linear-gradient(180deg, var(--clr-white) 0%, var(--clr-off-white) 100%);
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,.05);
}
.partners-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21,72,158,.3), transparent);
}
.partners-section::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(43,169,188,.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.partners-section__head {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}
.partners-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: .5rem;
}
.partners-section__eyebrow::before,
.partners-section__eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-accent));
  border-radius: 2px;
}
.partners-section__eyebrow::after {
  background: linear-gradient(90deg, var(--clr-accent), transparent);
}
.partners-section__title {
  font-family: var(--ff-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  margin: .3rem 0 .5rem;
  letter-spacing: -.01em;
}
.partners-section__sub {
  font-size: .92rem;
  color: var(--clr-grey);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.partners-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.partner-badge {
  position: relative;
  background: var(--clr-white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  overflow: hidden;
}
.partner-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  opacity: 0;
  transition: opacity .35s;
}
.partner-badge:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(14,47,107,.12), 0 0 0 1px rgba(21,72,158,.08);
}
.partner-badge:hover::before { opacity: 1; }
.partner-badge__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(21,72,158,.08), rgba(43,169,188,.08));
  color: var(--clr-primary);
  transition: all .35s;
}
.partner-badge__icon svg { width: 20px; height: 20px; stroke-width: 2; }
.partner-badge:hover .partner-badge__icon {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 16px rgba(21,72,158,.25);
}
.partner-badge__name {
  font-size: .85rem;
  font-weight: 800;
  color: var(--clr-primary-dark);
  letter-spacing: .02em;
  line-height: 1.2;
}
.partner-badge__desc {
  font-size: .65rem;
  color: var(--clr-grey);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  line-height: 1.3;
  margin-top: -.2rem;
}

/* ===================================================
   COURSES OFFERED  (Shamberere-inspired course cards)
=================================================== */
.courses-section {
  background: linear-gradient(180deg, #eef3fb 0%, #f5f8fd 100%);
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
}
.courses-section::before {
  content: '';
  position: absolute;
  top: 50%; left: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(21,72,158,.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-50%);
  animation: btti-float-slow 30s ease-in-out infinite;
}
.courses-section > .container { position: relative; z-index: 1; }
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.course-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(0,0,0,.07);
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
}
.course-card:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.course-card__dept {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-primary);
  margin-top: .2rem;
}
.course-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  line-height: 1.3;
  margin: 0;
}
.course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
}
.course-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 500;
  background: var(--clr-light);
  color: var(--clr-primary-dark);
  padding: .35rem .75rem;
  border-radius: 20px;
  border: 1px solid rgba(21,72,158,.15);
}
.course-meta-pill__lbl {
  font-weight: 700;
  color: var(--clr-grey);
  font-size: .7rem;
}
.course-meta-pill--dur {
  background: rgba(43,169,188,.1);
  border-color: rgba(43,169,188,.2);
}
.course-meta-pill--dur .course-meta-pill__lbl { color: var(--clr-accent-hover); }
.course-card__exam {
  font-size: .8rem;
  color: var(--clr-grey);
  padding: .5rem 0;
}
.course-card__exam-lbl {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .7rem;
  margin-right: .35rem;
}
.course-card__exam-val { color: var(--clr-primary-dark); font-weight: 500; }
.course-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: var(--clr-primary);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .7rem 1rem;
  border-radius: var(--radius);
  margin-top: auto;
  transition: background var(--transition);
}
.course-card__btn:hover { background: var(--clr-primary-light); color: #fff; }
.course-card__btn svg { transition: transform var(--transition); }
.course-card:hover .course-card__btn svg { transform: translateX(4px); }

/* ===================================================
   GALLERY SECTION
=================================================== */
.gallery-section {
  background: #fff;
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
}
.gallery-section::before {
  content: '';
  position: absolute;
  top: 50px; left: 50px;
  width: 100px; height: 100px;
  background-image: radial-gradient(circle at 5px 5px, rgba(21,72,158,.18) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: .6;
}
.gallery-section::after {
  content: '';
  position: absolute;
  bottom: 50px; right: 50px;
  width: 100px; height: 100px;
  background-image: radial-gradient(circle at 5px 5px, rgba(43,169,188,.18) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: .6;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  margin: 0;
}
.gallery-item__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}
.gallery-item:hover .gallery-item__img { transform: scale(1.08); }
/* Fallback coloured background for missing images */
.gallery-item--green  .gallery-item__img { background-color: #15803d; background-image: linear-gradient(135deg, #15803d 0%, #16a34a 100%); }
.gallery-item--blue   .gallery-item__img { background-color: var(--clr-primary); background-image: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%); }
.gallery-item--amber  .gallery-item__img { background-color: #854F0B; background-image: linear-gradient(135deg, #854F0B 0%, #BA7517 100%); }
.gallery-item--navy   .gallery-item__img { background-color: #0e2f6b; background-image: linear-gradient(135deg, #0e2f6b 0%, #1e40af 100%); }
.gallery-item--teal   .gallery-item__img { background-color: var(--clr-accent); background-image: linear-gradient(135deg, var(--clr-accent-hover) 0%, var(--clr-accent) 100%); }
.gallery-item--purple .gallery-item__img { background-color: #6d28d9; background-image: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%); }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,47,107,.85) 100%);
  transition: background var(--transition);
}
.gallery-item:hover .gallery-item__overlay {
  background: linear-gradient(180deg, rgba(14,47,107,.4) 0%, rgba(14,47,107,.9) 100%);
}
.gallery-item__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  z-index: 2;
}
.gallery-item__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.95);
  color: var(--clr-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition);
  z-index: 2;
}
.gallery-item__icon svg { width: 22px; height: 22px; }
.gallery-item:hover .gallery-item__icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ===================================================
   EVENTS SECTION
=================================================== */
.events-section {
  background: linear-gradient(180deg, #eafaff 0%, #dff4ff 100%);
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
}
.events-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(43,169,188,.15) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: btti-float-slow 24s ease-in-out infinite;
}
.events-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(21,72,158,.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: btti-float-slow 26s ease-in-out infinite reverse;
}
.events-section > .container { position: relative; z-index: 1; }
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.event-card {
  display: flex;
  gap: 1.25rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(0,0,0,.07);
  padding: 1.5rem;
  transition: all var(--transition);
}
.event-card:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 8px 30px rgba(0,0,0,.09);
  transform: translateY(-2px);
}
.event-card__date {
  flex-shrink: 0;
  width: 76px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: .85rem .5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.event-card__date::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--clr-accent);
}
.event-card__day {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.event-card__month {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .9;
  margin-top: .2rem;
  display: block;
}
.event-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .75rem;
  color: var(--clr-grey);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.event-meta-item svg { color: var(--clr-accent); }
.event-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  line-height: 1.3;
  margin: 0;
}
.event-card__title a { color: inherit; }
.event-card__title a:hover { color: var(--clr-primary); }
.event-card__desc {
  font-size: .85rem;
  color: var(--clr-grey);
  line-height: 1.6;
  margin: 0;
}

/* ===================================================
   TESTIMONIALS / ALUMNI VOICES
=================================================== */
.testimonials-section {
  background: linear-gradient(135deg, #e6f7fa 0%, #d4f0f5 100%);
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
}
.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43,169,188,.4), transparent);
}
.testimonials-section::after {
  content: '';
  position: absolute;
  top: 50%; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(43,169,188,.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-50%);
  animation: btti-float-slow 22s ease-in-out infinite;
}
.testimonials-section > .container { position: relative; z-index: 1; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.t-card {
  background: var(--clr-off-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 4px solid var(--clr-accent);
  transition: all var(--transition);
}
.t-card:nth-child(2) { border-top-color: var(--clr-primary); }
.t-card:nth-child(3) { border-top-color: var(--clr-primary-dark); }
.t-card:hover {
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.t-card__quote-mark {
  font-family: var(--ff-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--clr-accent);
  opacity: .25;
  position: absolute;
  top: .5rem;
  left: 1rem;
  pointer-events: none;
  z-index: 0;
}
.t-card__quote {
  font-size: .95rem;
  color: var(--clr-text);
  line-height: 1.65;
  margin: 0;
  position: relative;
  z-index: 1;
  font-style: italic;
}
.t-card__author {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,.08);
}
.t-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid var(--clr-accent);
}
.t-card__avatar--initials {
  background: var(--clr-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  border-color: var(--clr-accent);
}
.t-card__author-meta { min-width: 0; }
.t-card__name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  line-height: 1.3;
}
.t-card__role {
  font-size: .77rem;
  color: var(--clr-grey);
  margin-top: .15rem;
  line-height: 1.3;
}
.t-card__now {
  font-size: .75rem;
  color: var(--clr-accent-hover);
  font-weight: 600;
  margin-top: .2rem;
  line-height: 1.3;
}

/* ===================================================
   LOCATION SECTION
=================================================== */
.location-section {
  background: linear-gradient(180deg, #f5f9ff 0%, #eaf3fc 100%);
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
}
.location-section::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(43,169,188,.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: btti-float-slow 22s ease-in-out infinite;
}
.location-section > .container { position: relative; z-index: 1; }
.location-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
  background: var(--clr-light);
}
.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}
.location-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1.5px solid rgba(0,0,0,.07);
}
.loc-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.loc-item:last-child { padding-bottom: 0; border-bottom: none; }
.loc-item__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loc-item__icon svg { width: 18px; height: 18px; }
.loc-item__body { flex: 1; min-width: 0; }
.loc-item__label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-grey);
  margin-bottom: .25rem;
}
.loc-item__value {
  font-size: .9rem;
  font-weight: 500;
  color: var(--clr-primary-dark);
  line-height: 1.5;
  word-wrap: break-word;
}
.loc-item__value a { color: inherit; }
.loc-item__value a:hover { color: var(--clr-primary); }

/* ===================================================
   ACCESSIBILITY WIDGET (PWDs)
=================================================== */
.a11y-widget {
  position: fixed;
  right: 1rem;
  bottom: 50%;
  transform: translateY(50%);
  left: auto;
  z-index: 9990;
  font-family: var(--ff-body);
}
@media (max-width: 720px) {
  .a11y-widget {
    bottom: 5.5rem;             /* clear of mobile cookie banner footers */
    transform: none;
    right: .75rem;
  }
}
.a11y-widget__toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: all var(--transition);
  padding: 0;
}
.a11y-widget__toggle:hover,
.a11y-widget__toggle:focus-visible {
  background: var(--clr-accent);
  transform: scale(1.05);
  outline: none;
}
.a11y-widget__toggle svg { width: 26px; height: 26px; }
.a11y-widget--open .a11y-widget__toggle {
  background: var(--clr-accent);
}

.a11y-panel {
  position: absolute;
  bottom: calc(100% + .75rem);
  right: 0;
  left: auto;
  width: 320px;
  max-width: calc(100vw - 2rem);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  border: 1.5px solid rgba(0,0,0,.08);
  overflow: hidden;
  animation: a11y-pop .25s ease-out;
}
@keyframes a11y-pop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.a11y-panel[hidden] { display: none; }

.a11y-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--clr-primary);
  color: #fff;
  padding: 1rem 1.25rem;
}
.a11y-panel__title {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.a11y-panel__close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.a11y-panel__close:hover { background: rgba(255,255,255,.15); }
.a11y-panel__body { padding: 1rem 1.25rem 1.25rem; max-height: 60vh; overflow-y: auto; }

.a11y-group { margin-bottom: 1rem; }
.a11y-group:last-of-type { margin-bottom: 1.25rem; }
.a11y-group__title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-grey);
  margin: 0 0 .6rem;
}
.a11y-btn-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
}
.a11y-btn {
  background: var(--clr-off-white);
  border: 1.5px solid rgba(0,0,0,.1);
  color: var(--clr-primary-dark);
  padding: .7rem .5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--ff-body);
}
.a11y-btn:hover, .a11y-btn:focus-visible {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
  outline: none;
}
.a11y-btn:nth-child(2) { font-size: 1rem; }
.a11y-btn:nth-child(3) { font-size: 1.1rem; }

.a11y-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--clr-off-white);
  border: 1.5px solid rgba(0,0,0,.1);
  color: var(--clr-primary-dark);
  padding: .65rem .85rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: .4rem;
  transition: all var(--transition);
  text-align: left;
  font-family: var(--ff-body);
}
.a11y-toggle-btn:hover, .a11y-toggle-btn:focus-visible {
  background: var(--clr-light);
  border-color: var(--clr-primary);
  outline: none;
}
.a11y-toggle-btn--active {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}
.a11y-toggle-btn--active:hover { background: var(--clr-primary-light); color: #fff; }
.a11y-toggle-btn__icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.a11y-toggle-btn__icon svg { width: 18px; height: 18px; }

.a11y-rd-controls {
  display: flex;
  gap: .35rem;
  margin-top: .4rem;
  margin-bottom: .25rem;
}
.a11y-rd-controls[hidden] { display: none; }
.a11y-rd-btn {
  flex: 1;
  background: var(--clr-primary);
  color: #fff;
  border: 1.5px solid var(--clr-primary);
  border-radius: var(--radius);
  padding: .55rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.a11y-rd-btn[hidden] { display: none; }
.a11y-rd-btn:hover, .a11y-rd-btn:focus-visible {
  background: var(--clr-primary-dark);
  outline: none;
}
.a11y-rd-btn svg { width: 16px; height: 16px; }

.a11y-reset {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: transparent;
  border: 1.5px solid var(--clr-red);
  color: var(--clr-red);
  padding: .6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: var(--ff-body);
}
.a11y-reset:hover, .a11y-reset:focus-visible {
  background: var(--clr-red);
  color: #fff;
  outline: none;
}

/* ── Accessibility state classes (applied to <html>) ── */
html.a11y-contrast body {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-contrast a,
html.a11y-contrast h1,
html.a11y-contrast h2,
html.a11y-contrast h3,
html.a11y-contrast h4,
html.a11y-contrast p,
html.a11y-contrast span,
html.a11y-contrast li {
  color: #fff !important;
  background: transparent !important;
}
html.a11y-contrast .btn,
html.a11y-contrast .btn--primary,
html.a11y-contrast .btn--accent {
  background: #ffeb3b !important;
  color: #000 !important;
  border-color: #ffeb3b !important;
}
html.a11y-contrast a { color: #ffeb3b !important; text-decoration: underline; }

html.a11y-grayscale body { filter: grayscale(100%); }
html.a11y-invert body { filter: invert(100%) hue-rotate(180deg); }
html.a11y-invert img,
html.a11y-invert video,
html.a11y-invert iframe { filter: invert(100%) hue-rotate(180deg); }

html.a11y-light-bg body {
  background: #fffef0 !important;
}
html.a11y-light-bg .section,
html.a11y-light-bg .about-section,
html.a11y-light-bg .news-section,
html.a11y-light-bg .courses-section,
html.a11y-light-bg .gallery-section,
html.a11y-light-bg .events-section,
html.a11y-light-bg .location-section,
html.a11y-light-bg .announce-section {
  background: #fffef0 !important;
}

html.a11y-readable-font,
html.a11y-readable-font body,
html.a11y-readable-font p,
html.a11y-readable-font h1,
html.a11y-readable-font h2,
html.a11y-readable-font h3,
html.a11y-readable-font h4,
html.a11y-readable-font h5,
html.a11y-readable-font h6,
html.a11y-readable-font a,
html.a11y-readable-font span,
html.a11y-readable-font li,
html.a11y-readable-font div {
  font-family: 'Atkinson Hyperlegible', 'Verdana', 'Arial', sans-serif !important;
  letter-spacing: .02em !important;
}

html.a11y-highlight-links a:not(.btn):not(.qlink-card):not(.dcard-link):not(.ncard-more):not(.dept-card2__link) {
  background: #ffeb3b !important;
  color: #000 !important;
  padding: 0 4px;
  text-decoration: underline !important;
  box-shadow: 0 0 0 2px #ffeb3b;
}

html.a11y-big-cursor,
html.a11y-big-cursor body,
html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='black' stroke='white' stroke-width='1.5'><path d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z'/></svg>") 4 4, auto !important;
}
html.a11y-big-cursor a,
html.a11y-big-cursor button,
html.a11y-big-cursor input,
html.a11y-big-cursor [role='button'] {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='%2315489e' stroke='white' stroke-width='1.5'><path d='M9 2v8h-4l7 8 7-8h-4V2z' transform='rotate(180 12 12)'/></svg>") 4 4, pointer !important;
}

html.a11y-pause-animations,
html.a11y-pause-animations * {
  animation-duration: 0.001s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
}
html.a11y-pause-animations .news-ticker__inner,
html.a11y-pause-animations .hero__slide {
  animation: none !important;
  transform: none !important;
}

/* Mobile positioning */
@media (max-width: 768px) {
  .a11y-widget { left: .75rem; bottom: .75rem; }
  .a11y-widget__toggle { width: 46px; height: 46px; }
  .a11y-widget__toggle svg { width: 22px; height: 22px; }
  .a11y-panel { width: 280px; }
}

/* ===================================================
   PRINT
=================================================== */
@media print {
  .site-header, .topbar, .news-ticker, .site-footer,
  .hero__controls, .back-to-top, .search-overlay, .a11y-widget { display: none !important; }
}

/* Touch devices: give links/buttons comfortable tap targets */
@media (hover: none) and (pointer: coarse) {
  .nav-menu > li > a,
  .dropdown a,
  .btn,
  .footer-links a,
  .quick-link { min-height: 44px; }
}

/* ===================================================
   RESPONSIVE – DESKTOP LARGE  (≤ 1440px)
   Common 1440-wide laptops; trim the nav slightly.
=================================================== */
@media (max-width: 1440px) {
  .nav-menu > li > a { padding: 0 .9rem; font-size: .85rem; }
  .hero__title { font-size: clamp(2.1rem, 4.5vw, 3.5rem); }
}

/* ===================================================
   RESPONSIVE – LAPTOP  (≤ 1366px)
   The classic 1366×768 / 13" laptop size.
=================================================== */
@media (max-width: 1366px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .news-cards-grid { grid-template-columns: repeat(4, 1fr); }
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
  .quicklinks-grid { grid-template-columns: repeat(5, 1fr); }
  .stats-strip__grid { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; }
}

/* ===================================================
   RESPONSIVE – LARGE DESKTOP DOWN  (≤ 1200px)
=================================================== */
@media (max-width: 1200px) {
  .nav-menu > li > a { padding: 0 .75rem; font-size: .82rem; }
  .principal-section__inner { gap: var(--sp-md); }
  .stats-strip__grid { gap: 1rem; }
}

/* ===================================================
   RESPONSIVE – SMALL LAPTOP  (≤ 1100px)
   Squeeze the nav further before it has to collapse.
=================================================== */
@media (max-width: 1100px) {
  .nav-menu > li > a { padding: 0 .55rem; font-size: .76rem; letter-spacing: 0; }
  .site-logo__tagline { font-size: .62rem; }
  .topbar__contact { font-size: .72rem; }
}

/* ===================================================
   RESPONSIVE – TABLET LANDSCAPE  (≤ 1024px)
=================================================== */
@media (max-width: 1024px) {
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .news-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 200px); }
  .events-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .location-grid { grid-template-columns: 1fr; }
  .location-map { min-height: 320px; }
  .quicklinks-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-strip__grid { grid-template-columns: repeat(3, 1fr); }
  .partners-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-section__inner { gap: var(--sp-lg); }
  .principal-section__inner { grid-template-columns: 240px 1fr; gap: var(--sp-lg); }
  .topbar__links { display: none; }
  .nav-menu > li > a { padding: 0 .6rem; font-size: .78rem; }
  .site-logo__name { font-size: .9rem; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================
   RESPONSIVE – TABLET PRE-COLLAPSE  (≤ 950px)
   Last squeeze before the nav drops to the drawer.
=================================================== */
@media (max-width: 950px) {
  .nav-menu > li > a { padding: 0 .45rem; font-size: .73rem; }
  .site-logo__name { font-size: .85rem; }
  .site-logo__tagline { display: none; }
  .nav-search-btn { padding: .4rem; }
}

/* ===================================================
   RESPONSIVE – TABLET / NAV COLLAPSE  (≤ 900px)
   Below this, the desktop menu collapses to the
   hamburger drawer (more room than waiting for 768).
=================================================== */
@media (max-width: 900px) {
  :root { --nav-height: 72px; --topbar-height: 0px; }

  .topbar { display: none; }
  .hamburger { display: flex; }

  /* Off-canvas drawer nav anchored to bottom of sticky header stack */
  .main-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: min(86%, 360px);
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    background: var(--clr-white);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform var(--transition);
    z-index: 199;
    padding: .5rem 0 2rem;
    display: block !important;
    visibility: visible !important;
  }
  .main-nav.open { transform: translateX(0); }

  /* Dimmed backdrop when drawer is open */
  .main-nav.open::after { content: none; }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    top: var(--nav-height);
    background: rgba(14,47,107,.45);
    z-index: 150;
  }
  body.nav-open { overflow: hidden; }

  .nav-menu { flex-direction: column; align-items: stretch; height: auto; display: flex !important; }
  .nav-menu > li { height: auto; position: relative; display: block; }
  .nav-menu > li > a {
    padding: .9rem 1.5rem;
    height: auto;
    font-size: .95rem;
    border-bottom: 1px solid #eef1f5;
    border-left: 3px solid transparent;
    justify-content: space-between;
    display: flex;
    align-items: center;
    color: var(--clr-primary-dark);
  }
  .nav-menu > li > a:hover,
  .nav-menu > li.open > a { border-left-color: var(--clr-accent); color: var(--clr-primary); background: var(--clr-off-white); }
  .nav-menu > li > a .chevron { width: 16px; height: 16px; opacity: .8; transition: transform .2s ease; }
  .nav-menu > li.open > a .chevron { transform: rotate(180deg); }

  /* Accordion dropdowns */
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--clr-off-white);
    display: none;
    border-radius: 0;
    min-width: 0;
    width: 100%;
  }
  .nav-menu > li.open > .dropdown { display: block; }
  .dropdown a { padding: .8rem 1.5rem .8rem 2.75rem; font-size: .9rem; display: block; color: var(--clr-text); }
  .dropdown a:hover { background: rgba(43, 169, 188, .08); color: var(--clr-primary); }

  /* Layout collapses */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .page-layout__inner { grid-template-columns: 1fr; }
  .principal-section__inner { grid-template-columns: 1fr; text-align: center; gap: var(--sp-md); }
}

/* ===================================================
   RESPONSIVE – MOBILE  (≤ 768px)
=================================================== */
@media (max-width: 768px) {
  .container { padding-inline: 1.15rem; }

  /* Partners grid collapses on mobile */
  .partners-strip { grid-template-columns: repeat(2, 1fr) !important; gap: .85rem !important; }
  .partners-section { padding: 3rem 0 !important; }
  .partners-section__title { font-size: 1.35rem !important; }
  .partners-section__sub { font-size: .85rem !important; }

  /* Single-column stacks */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-section__inner { grid-template-columns: 1fr; }
  .about-section__stats { grid-template-columns: repeat(3, 1fr); }
  .news-grid,
  .announce-grid,
  .contact-grid,
  .mv-cards { grid-template-columns: 1fr; }
  .quick-links-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .quicklinks-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .news-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 180px); }
  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom__inner { flex-direction: column; text-align: center; gap: .75rem; }

  /* Hero — use dynamic viewport height to avoid mobile address-bar jumps */
  .hero {
    height: auto;
    min-height: 78vh;
    min-height: 78dvh;
  }
  .hero__content { padding: 0 1.25rem; }
  .hero__photo { background-position: center 34%; }
  .hero__arrow { display: none; }
  .hero__title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero__subtitle { font-size: .98rem; }
  .hero__actions { flex-wrap: wrap; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }

  /* News ticker shrinks gracefully */
  .news-ticker__label { font-size: .68rem; padding-inline: .8rem; }

  .section { padding-block: var(--sp-lg); }
  .section-heading { flex-wrap: wrap; }
}

/* ===================================================
   RESPONSIVE – TABLET PORTRAIT / LARGE PHONE  (≤ 680px)
   Bridges the gap between tablet portrait and large phones.
=================================================== */
@media (max-width: 680px) {
  .staff-grid,
  .about-section__stats { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 70vh; min-height: 70dvh; }
  .hero__content { max-width: 100%; }
  .page-hero { padding-block: var(--sp-lg); }
  .breadcrumb { font-size: .8rem; flex-wrap: wrap; }
  .section-heading { gap: .5rem; }
  .section-heading h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
}

/* ===================================================
   RESPONSIVE – LARGE PHONE  (≤ 560px)
=================================================== */
@media (max-width: 560px) {
  html { font-size: 15px; }
  .container { padding-inline: 1rem; }

  .about-section__stats { grid-template-columns: 1fr; gap: .75rem; }
  .staff-grid { grid-template-columns: 1fr; }
  .stats-strip__grid { grid-template-columns: 1fr; }
  .quick-links-bar__inner { grid-template-columns: 1fr; }

  .site-logo__tagline { display: none; }   /* keep header compact */
  .site-logo__emblem { width: 74px; height: 56px; }

  .btn { width: 100%; justify-content: center; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  /* Make wide content tables scroll instead of breaking layout */
  .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ===================================================
   RESPONSIVE – MEDIUM PHONE  (≤ 480px)
   Common iPhone Plus / Android XL viewport.
=================================================== */
@media (max-width: 480px) {
  .topbar__contact { display: none; }
  .topbar__cta { width: 100%; justify-content: center; }
  .site-logo__emblem { width: 72px; height: 54px; }
  .hero__title { font-size: clamp(1.5rem, 6.5vw, 2.1rem); }
  .news-ticker__inner { animation-duration: 22s; }
  .dept-card { padding: 1rem; }
  .news-item__title { font-size: 1rem; }
  .principal-photo { width: 180px; height: 180px; }
  .quicklinks-grid { grid-template-columns: 1fr 1fr; }
  .news-cards-grid { grid-template-columns: 1fr; }
  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(6, 200px); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .event-card { flex-direction: row; padding: 1.25rem; }
  .event-card__date { width: 64px; padding: .6rem .35rem; }
  .event-card__day { font-size: 1.6rem; }
  .location-info { padding: 1.25rem; }
  .section-heading--flex { flex-direction: column; align-items: flex-start; }
}

/* ===================================================
   RESPONSIVE – STANDARD PHONE  (≤ 420px)
   iPhone 12/13/14 standard width.
=================================================== */
@media (max-width: 420px) {
  .container { padding-inline: .875rem; }
  .site-logo__name { font-size: .85rem; }
  .hamburger { width: 40px; height: 40px; padding: 7px; }
  .hero__eyebrow { font-size: .68rem; }
  .hero__subtitle { font-size: .9rem; }
  .section { padding-block: var(--sp-md); }
  .card,
  .news-item,
  .dept-card { border-radius: 8px; }
}

/* ===================================================
   RESPONSIVE – SMALL PHONE  (≤ 380px)
=================================================== */
@media (max-width: 380px) {
  .site-logo__name { font-size: .82rem; }
  .site-logo__emblem { width: 66px; height: 50px; }
  .hero__eyebrow { font-size: .65rem; }
  .news-ticker__label { display: none; }
}

/* ===================================================
   RESPONSIVE – TINY PHONE / FOLDABLES  (≤ 320px)
   iPhone SE 1st gen, Galaxy Fold front screen.
=================================================== */
@media (max-width: 320px) {
  html { font-size: 14px; }
  .container { padding-inline: .75rem; }
  .site-logo__name { font-size: .75rem; }
  .site-logo__emblem { width: 58px; height: 44px; }
  .hero__title { font-size: 1.35rem; }
  .hero__actions { gap: .5rem; }
  .btn { font-size: .85rem; padding: .65rem 1rem; }
  .nav-menu > li > a { padding: .8rem 1rem; }
  .main-nav { width: 100%; }
  .topbar { display: none; }
}

/* ===================================================
   RESPONSIVE – LANDSCAPE PHONES (short, wide screens)
   Keeps the off-canvas drawer scrollable and trims the
   hero so it doesn't dominate a short viewport.
=================================================== */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; height: auto; padding-block: clamp(2rem, 12vh, 4rem); }
  .main-nav {
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
  }
  .search-overlay__form { transform: translateY(-10%); }
}

/* ===================================================
   RESPONSIVE – ULTRA-WIDE  (≥ 1600px)
   Stops content from stretching too far on big monitors.
=================================================== */
@media (min-width: 1600px) {
  :root { --max-width: 1440px; }
  html { font-size: 17px; }
}

/* ===================================================
   SAFE-AREA INSETS  (notched / rounded-corner phones)
=================================================== */
@supports (padding: max(0px)) {
  .topbar__inner,
  .site-header__inner,
  .container {
    padding-left:  max(clamp(1rem, 4vw, 1.5rem), env(safe-area-inset-left));
    padding-right: max(clamp(1rem, 4vw, 1.5rem), env(safe-area-inset-right));
  }
}

/* ===================================================
   ANIMATIONS & FLOATING SHAPES (used by sections below)
=================================================== */
@keyframes btti-float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -30px) scale(1.08); }
}
@keyframes btti-drift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(20px); }
}
@keyframes btti-pulse-grow {
  0%, 100% { transform: scale(1); opacity: .5; }
  50%      { transform: scale(1.1); opacity: .8; }
}
@keyframes btti-overlay-bar {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
@keyframes btti-overlay-pulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50%      { transform: scale(1.15); opacity: 1; }
}

.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.floating-shapes .fs {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  animation: btti-pulse-grow 8s ease-in-out infinite;
}
.floating-shapes .fs:nth-child(1) { width: 140px; height: 140px; top: 10%; left: 5%;  animation-delay: 0s; }
.floating-shapes .fs:nth-child(2) { width:  80px; height:  80px; top: 60%; left: 80%; animation-delay: 2s; }
.floating-shapes .fs:nth-child(3) { width: 200px; height: 200px; top: 30%; left: 60%; animation-delay: 4s; background: rgba(43,169,188,.12); }
.floating-shapes .fs:nth-child(4) { width: 100px; height: 100px; top: 75%; left: 15%; animation-delay: 6s; }

.wave-divider {
  position: relative;
  width: 100%;
  height: 60px;
  margin: 0;
  line-height: 0;
  overflow: hidden;
  display: block;
}
.wave-divider svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }

/* ===================================================
   PROGRAMMES CATALOGUE (3 colorful cards)
=================================================== */
.prog-feature {
  background: #fff;
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.prog-feature::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(220,38,38,.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.prog-feature::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(21,72,158,.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.prog-feature__head { text-align: center; margin-bottom: 2rem; position: relative; z-index: 1; }
.prog-feature__label {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc2626;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.prog-feature__sub {
  font-size: .85rem;
  color: var(--clr-grey);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}
.prog-feature__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}
.prog-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-height: 130px;
}
.prog-card::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  pointer-events: none;
  transition: transform .4s;
}
.prog-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.prog-card:hover::after { transform: scale(1.4); }
.prog-card--diploma     { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); }
.prog-card--certificate { background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%); }
.prog-card--artisan     { background: linear-gradient(135deg, var(--clr-accent) 0%, #1f7a89 100%); }
.prog-card__icon {
  flex-shrink: 0;
  width: 60px; height: 60px;
  background: rgba(255,255,255,.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  z-index: 1;
  transition: all .35s;
}
.prog-card:hover .prog-card__icon {
  background: rgba(255,255,255,.28);
  transform: rotate(-4deg) scale(1.05);
}
.prog-card__icon svg { width: 28px; height: 28px; }
.prog-card__body { flex: 1; position: relative; z-index: 1; }
.prog-card__title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 .3rem;
  letter-spacing: -.01em;
}
.prog-card__desc {
  font-size: .78rem;
  color: rgba(255,255,255,.88);
  margin: 0;
  font-weight: 500;
  letter-spacing: .02em;
}
.prog-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all .35s;
}
.prog-card:hover .prog-card__arrow {
  background: #fff;
  color: var(--clr-primary-dark);
  transform: translateX(4px);
}
.prog-card__arrow svg { width: 14px; height: 14px; }

/* ===================================================
   CAMPUS LIFE (3 dramatic photo tiles)
=================================================== */
.campus-life {
  background: linear-gradient(135deg, #0e2f6b 0%, #15489e 50%, #1a6ea8 100%);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.campus-life::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(43,169,188,.25) 0%, transparent 65%),
                    radial-gradient(circle at 20% 30%, rgba(43,169,188,.15) 0%, transparent 60%);
  pointer-events: none;
}
.campus-life > .container { position: relative; z-index: 1; }
.campus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.campus-tile {
  position: relative;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.campus-tile:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(0,0,0,.25); }
.campus-tile__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.campus-tile:hover .campus-tile__bg { transform: scale(1.08); }
.campus-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.4) 50%, rgba(14,47,107,.85) 100%);
  transition: background .4s;
}
.campus-tile--clubs      .campus-tile__overlay { background: linear-gradient(180deg, rgba(220,38,38,.3) 0%, rgba(220,38,38,.55) 50%, rgba(153,27,27,.92) 100%); }
.campus-tile--activities .campus-tile__overlay { background: linear-gradient(180deg, rgba(21,72,158,.3) 0%, rgba(21,72,158,.55) 50%, rgba(14,47,107,.92) 100%); }
.campus-tile--sports     .campus-tile__overlay { background: linear-gradient(180deg, rgba(43,169,188,.3) 0%, rgba(43,169,188,.55) 50%, rgba(31,138,154,.92) 100%); }
.campus-tile__content {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}
.campus-tile__icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  transition: all .35s;
  color: #fff;
}
.campus-tile:hover .campus-tile__icon {
  background: rgba(255,255,255,.95);
  color: var(--clr-primary-dark);
  transform: rotate(-6deg) scale(1.05);
}
.campus-tile__icon svg { width: 24px; height: 24px; }
.campus-tile h3 {
  font-family: var(--ff-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .6rem;
  letter-spacing: -.01em;
}
.campus-tile p {
  font-size: .88rem;
  color: rgba(255,255,255,.92);
  line-height: 1.55;
  margin: 0 0 1rem;
}
.campus-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  padding-bottom: .3rem;
  border-bottom: 2px solid rgba(255,255,255,.3);
  transition: all .25s;
  width: fit-content;
}
.campus-tile:hover .campus-tile__cta {
  border-bottom-color: #fff;
  gap: .7rem;
}

/* ===================================================
   COLOR-CODED QUICKLINK CARDS
=================================================== */
.qlink-card:nth-child(1) .qlink-card__icon { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important; box-shadow: 0 4px 12px rgba(220,38,38,.25); }
.qlink-card:nth-child(2) .qlink-card__icon { background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%) !important; box-shadow: 0 4px 12px rgba(21,72,158,.25); }
.qlink-card:nth-child(3) .qlink-card__icon { background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important; box-shadow: 0 4px 12px rgba(16,185,129,.25); }
.qlink-card:nth-child(4) .qlink-card__icon { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%) !important; box-shadow: 0 4px 12px rgba(245,158,11,.25); }
.qlink-card:nth-child(5) .qlink-card__icon { background: linear-gradient(135deg, var(--clr-accent) 0%, #1f7a89 100%) !important; box-shadow: 0 4px 12px rgba(43,169,188,.25); }
.qlink-card:hover .qlink-card__icon { transform: rotate(-5deg) scale(1.05); }

/* ===================================================
   HERO OVERLAY CARD (floating Admissions Open)
=================================================== */
.hero-overlay-card {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1.5rem, 5vw, 5rem);
  z-index: 4;
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.25rem;
  width: 280px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  overflow: hidden;
}
.hero-overlay-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #f59e0b, #dc2626);
  background-size: 200% 100%;
  animation: btti-overlay-bar 4s linear infinite;
}
.hero-overlay-pulse {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(220,38,38,.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: btti-overlay-pulse 2.5s ease-in-out infinite;
}
.hero-overlay-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #dc2626;
  margin-bottom: .6rem;
  background: rgba(220,38,38,.08);
  padding: .3rem .65rem;
  border-radius: 20px;
}
.hero-overlay-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  line-height: 1.15;
  margin: 0 0 .6rem;
  letter-spacing: -.01em;
}
.hero-overlay-sub {
  font-size: .78rem;
  color: var(--clr-grey);
  line-height: 1.5;
  margin: 0 0 1rem;
}
.hero-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  transition: all .25s;
  box-shadow: 0 4px 12px rgba(220,38,38,.3);
}
.hero-overlay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220,38,38,.4);
  gap: .6rem;
  color: #fff;
}

/* ===================================================
   STATS section with floating shapes + grid pattern
=================================================== */
.stats-strip {
  background: linear-gradient(135deg, #0e2f6b 0%, #15489e 50%, #1a6ea8 100%) !important;
  position: relative;
  overflow: hidden;
}
.stats-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: .5;
}
.stats-strip > .container { position: relative; z-index: 1; }

/* ===================================================
   RESPONSIVE for new sections
=================================================== */
@media (max-width: 1024px) {
  .prog-feature__grid { grid-template-columns: 1fr; gap: 1rem; }
  .campus-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .campus-tile { height: 300px; }
}
@media (max-width: 768px) {
  .hero-overlay-card { display: none; }
}

/* ===================================================
   POLISH ADDITIONS — June 2026
   New components for Service Charter, Downloads, Academics, Admissions
=================================================== */

/* ─────────── 5-column grid (Core Values) ─────────── */
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .grid-5 { grid-template-columns: 1fr; }
}

/* ─────────── White outline button ─────────── */
.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  transition: all .2s ease;
}
.btn--outline-white:hover,
.btn--outline-white:focus {
  background: #fff;
  color: var(--clr-primary-dark);
}

/* ─────────── Service Charter table ─────────── */
.charter-table-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.charter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  background: #fff;
}
.charter-table thead th {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  color: #fff;
  padding: 1rem 1.1rem;
  text-align: left;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: none;
}
.charter-table tbody td {
  padding: .9rem 1.1rem;
  border-bottom: 1px solid #eef1f5;
  color: var(--clr-text);
  line-height: 1.55;
  vertical-align: top;
}
.charter-table tbody tr:nth-child(even) td { background: #fafbfd; }
.charter-table tbody tr:hover td { background: #f1f5fc; }
.charter-table tbody tr:last-child td { border-bottom: none; }
.charter-table__num {
  display: inline-block;
  margin-right: .4rem;
  color: var(--clr-accent);
  font-weight: 700;
  font-family: var(--ff-display);
}
/* Responsive — stack into card rows on small screens */
@media (max-width: 760px) {
  .charter-table { font-size: .88rem; }
  .charter-table thead { display: none; }
  .charter-table tr {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #e3e7ed;
    background: #fff;
  }
  .charter-table tbody tr:nth-child(even) { background: var(--clr-off-white); }
  .charter-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: .5rem 0;
    border: none;
    text-align: right;
  }
  .charter-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--clr-primary-dark);
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .05em;
    flex-shrink: 0;
    max-width: 45%;
    text-align: left;
  }
  .charter-table td:first-child {
    border-bottom: 1px solid #e3e7ed;
    margin-bottom: .5rem;
    padding-bottom: .75rem;
    text-align: left;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
  }
  .charter-table td:first-child::before { display: none; }
}

/* ─────────── Downloads grouped layout ─────────── */
.downloads-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.downloads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
}
.downloads-group {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.downloads-group__head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.1rem 1.5rem;
  background: var(--clr-off-white);
  border-left: 4px solid var(--clr-primary);
}
.downloads-group__head h3 {
  font-size: 1.05rem;
  color: var(--clr-primary-dark);
  margin: 0;
}
.downloads-group__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.downloads-group__icon svg { width: 22px; height: 22px; }
.downloads-group__body { padding: 1rem 1.25rem; }
.downloads-group__body .download-item:last-child { margin-bottom: 0; }

.downloads-note {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.25rem;
  background: linear-gradient(135deg, #fff8e1, #fff3c4);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  align-items: flex-start;
}
.downloads-note__icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.downloads-note__body h3 {
  font-size: 1.05rem;
  color: #92400e;
  margin: 0 0 .5rem;
}
.downloads-note__body p { margin: 0 0 .5rem; line-height: 1.65; color: #78350f; font-size: .92rem; }
.downloads-note__body ul {
  margin: .5rem 0 0;
  padding-left: 1.25rem;
  color: #78350f;
  font-size: .9rem;
  line-height: 1.85;
}
.downloads-note__body ul a { color: #92400e; font-weight: 600; }

@media (max-width: 900px) {
  .downloads-groups { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .downloads-note { flex-direction: column; gap: .75rem; padding: 1.25rem; }
}

/* ─────────── Course Grid (Academics page) ─────────── */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.course-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
  border-top: 4px solid var(--clr-primary);
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.course-card__head { margin-bottom: .75rem; }
.course-card__dept {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--clr-accent);
  background: rgba(43, 169, 188, .12);
  padding: .25rem .65rem;
  border-radius: 30px;
}
.course-card__name {
  font-size: 1.1rem;
  color: var(--clr-primary-dark);
  margin-bottom: .85rem;
  line-height: 1.35;
}
.course-card__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--clr-grey);
  margin-bottom: .6rem;
}
.course-card__meta strong { color: var(--clr-text); }
.course-card__exam {
  font-size: .82rem;
  color: var(--clr-grey);
  margin-bottom: 1.2rem;
  padding-top: .75rem;
  border-top: 1px solid #eef1f5;
}
.course-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: .65rem 1rem;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}
.course-card__btn:hover { background: var(--clr-primary-dark); color: #fff; }
@media (max-width: 900px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .course-grid { grid-template-columns: 1fr; }
}

/* ─────────── Download item: improved alignment ─────────── */
.download-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem 1rem;
  background: var(--clr-off-white);
  border-radius: var(--radius);
  margin-bottom: .55rem;
  border-left: 3px solid var(--clr-primary);
  text-decoration: none;
  transition: all .2s ease;
}
.download-item:hover {
  background: #eef2f8;
  transform: translateX(2px);
}
.download-item__icon {
  flex-shrink: 0;
  color: var(--clr-red);
  display: flex;
  align-items: center;
}
.download-item__icon svg { width: 22px; height: 22px; }
.download-item__name {
  flex: 1;
  font-size: .9rem;
  font-weight: 600;
  color: var(--clr-primary-dark);
  text-decoration: none;
  line-height: 1.4;
}
.download-item__body { flex: 1; display: flex; flex-direction: column; }
.download-item__desc { font-size: .78rem; color: var(--clr-grey); margin-top: .15rem; }
.download-item__size {
  font-size: .74rem;
  color: var(--clr-grey);
  flex-shrink: 0;
  padding: .15rem .5rem;
  background: rgba(0,0,0,.04);
  border-radius: 4px;
}
.download-item__btn {
  flex-shrink: 0;
  padding: .35rem .8rem;
  background: var(--clr-primary);
  color: #fff !important;
  border-radius: 4px;
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .2s ease;
}
.download-item__btn:hover { background: var(--clr-primary-dark); }
@media (max-width: 560px) {
  .download-item { flex-wrap: wrap; padding: .85rem 1rem; }
  .download-item__name { flex: 1 1 100%; order: 1; margin-bottom: .35rem; }
  .download-item__icon { order: 0; }
  .download-item__size { order: 2; margin-right: auto; }
  .download-item__btn { order: 3; }
}

/* ─────────── Sticky header — extra polish ─────────── */
/* Ensure smooth section scroll to anchors with header offset */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
}

/* Header shadow on scroll for depth */
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

/* ─────────── Page hero — better mobile sizing ─────────── */
@media (max-width: 760px) {
  .page-hero {
    min-height: 200px;
    padding: 3rem 0 2rem;
  }
  .page-hero__title { font-size: 1.85rem; }
}
@media (max-width: 480px) {
  .page-hero { min-height: 170px; padding: 2.5rem 0 1.5rem; }
  .page-hero__title { font-size: 1.55rem; }
}

/* ─────────── Universal small-screen polish ─────────── */
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .section { padding: 2.5rem 0; }
  .section-sm { padding: 2rem 0; }
  .container { padding-inline: 1rem; }
  h2 { font-size: 1.45rem !important; }
  h3 { font-size: 1.1rem; }
}

/* ===================================================
   SERVICE CHARTER — official document blocks
   Side-by-side English / Kiswahili with audio
=================================================== */
.charter-docs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.charter-doc {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.charter-doc__title {
  font-size: 1.15rem;
  color: var(--clr-primary-dark);
  padding-bottom: .75rem;
  border-bottom: 3px solid var(--clr-accent);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  line-height: 1.3;
}
.charter-doc__audio {
  background: var(--clr-off-white);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}
.charter-doc__audio-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--clr-primary-dark);
  margin-bottom: .55rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.charter-doc__audio audio {
  height: 42px;
  border-radius: 30px;
}
.charter-doc__image {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  background: #fff;
  border: 1px solid #eaedf2;
  transition: transform .25s ease, box-shadow .25s ease;
  margin-top: auto;
}
.charter-doc__image:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.charter-doc__image img {
  width: 100%;
  display: block;
  height: auto;
}
@media (max-width: 880px) {
  .charter-docs { grid-template-columns: 1fr; gap: 1.5rem; }
  .charter-doc { padding: 1.25rem; }
}

/* ===================================================
   ADMINISTRATION TEAM SECTION (homepage)
=================================================== */
.admin-section { background: linear-gradient(180deg, var(--clr-off-white) 0%, #fff 100%); }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.admin-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--admin-color, var(--clr-primary));
}
.admin-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.admin-card__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--clr-off-white);
  position: relative;
}
.admin-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
}
.admin-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-card__body {
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.admin-card__role {
  font-size: .68rem;
  color: var(--admin-color, var(--clr-accent));
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: .3rem;
  line-height: 1.3;
}
.admin-card__name {
  font-size: 1rem;
  color: var(--clr-primary-dark);
  margin: 0 0 .65rem;
  line-height: 1.3;
  font-family: var(--ff-display);
}
.admin-card__message {
  font-size: .8rem;
  color: var(--clr-grey);
  line-height: 1.55;
  margin: 0;
  padding: 0;
  border: none;
  position: relative;
  display: flex;
  gap: .4rem;
}
.admin-card__quote-icon {
  flex-shrink: 0;
  color: var(--admin-color, var(--clr-accent));
  opacity: .35;
  margin-top: 1px;
}
@media (max-width: 1200px) { .admin-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .admin-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; } }
@media (max-width: 460px)  { .admin-grid { grid-template-columns: 1fr; } }

/* ===================================================
   ADMISSION APPLICATION FORM (page-admissions.php)
=================================================== */
.application-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.app-form__fieldset {
  padding: 1.75rem 2rem;
  border: none;
  border-bottom: 1px solid #eef1f5;
  margin: 0;
}
.app-form__fieldset:last-of-type { border-bottom: none; }
.app-form__legend {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  margin-bottom: 1.25rem;
  padding: 0;
  font-family: var(--ff-display);
}
.app-form__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  color: #fff;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.app-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}
.app-form__field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.app-form__field--full { grid-column: 1 / -1; }
.app-form__label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--clr-text);
}
.app-form__req { color: #dc2626; font-weight: 700; }
.app-form__field input,
.app-form__field select,
.app-form__field textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1.5px solid #e1e5ec;
  border-radius: var(--radius);
  font-size: .92rem;
  font-family: inherit;
  color: var(--clr-text);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.app-form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.25rem;
}
.app-form__field input:focus,
.app-form__field select:focus,
.app-form__field textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(21, 72, 158, .15);
}
.app-form__field textarea { resize: vertical; min-height: 100px; line-height: 1.55; }

.app-form__checklist {
  padding: 1.5rem 2rem;
  background: var(--clr-off-white);
  border-top: 1px solid #eef1f5;
}
.app-form__check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--clr-text);
}
.app-form__check:last-child { margin-bottom: 0; }
.app-form__check input {
  margin: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--clr-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.app-form__actions {
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.app-form__submit {
  background: var(--clr-accent);
  color: #fff !important;
  padding: .85rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  transition: all .2s ease;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.app-form__submit:hover { background: var(--clr-accent-hover); transform: translateY(-1px); }
.app-form__submit:disabled { opacity: .55; cursor: wait; transform: none; }
.app-form__hint {
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  max-width: 320px;
  line-height: 1.45;
}
.app-form__msg {
  padding: 1rem 2rem;
  font-size: .92rem;
  font-weight: 600;
  text-align: center;
}
.app-form__msg.is-success { background: #d1fae5; color: #065f46; }
.app-form__msg.is-error   { background: #fee2e2; color: #991b1b; }

@media (max-width: 720px) {
  .app-form__fieldset { padding: 1.25rem 1.25rem; }
  .app-form__grid { grid-template-columns: 1fr; gap: .85rem; }
  .app-form__checklist { padding: 1.25rem; }
  .app-form__actions { padding: 1.25rem; flex-direction: column; align-items: stretch; text-align: center; }
  .app-form__submit { justify-content: center; }
  .app-form__hint { max-width: 100%; text-align: center; }
}

/* ===================================================
   GALLERY EMPTY STATE
=================================================== */
.gallery-empty {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  max-width: 640px;
  margin: 0 auto;
  border: 2px dashed #e1e5ec;
}
.gallery-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: var(--clr-off-white);
  color: var(--clr-accent);
  border-radius: 50%;
  margin-bottom: 1.25rem;
}
.gallery-empty h3 {
  font-size: 1.4rem;
  color: var(--clr-primary-dark);
  margin: 0 0 .75rem;
}
.gallery-empty p {
  color: var(--clr-grey);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto;
}

/* ===================================================
   TESTIMONIAL PLACEHOLDER STYLE
=================================================== */
.t-card--placeholder {
  background: #fafbfd;
  border: 2px dashed #e1e5ec;
  opacity: .85;
}
.t-card--placeholder .t-card__quote { color: #6b7280; font-style: italic; }
.t-card--placeholder .t-card__name,
.t-card--placeholder .t-card__role,
.t-card--placeholder .t-card__now { color: #9ca3af; }
.t-card--placeholder .t-card__avatar--initials { background: #d1d5db !important; color: #6b7280 !important; }

/* ===================================================
   ADMINISTRATION STAFF PAGE  (page-staff.php)
=================================================== */
.admin-staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}
.admin-staff-grid > article:first-child {
  grid-column: 1 / -1;
  max-width: 720px;
  margin: 0 auto;
}
.admin-staff-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 200px 1fr;
  transition: transform .25s ease, box-shadow .25s ease;
  border-left: 5px solid var(--admin-color, var(--clr-primary));
}
.admin-staff-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.admin-staff-card__photo {
  overflow: hidden;
  background: var(--clr-off-white);
}
.admin-staff-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 240px;
}
.admin-staff-card__body {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.admin-staff-card__role {
  font-size: .75rem;
  color: var(--admin-color, var(--clr-accent));
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: .35rem;
  line-height: 1.4;
}
.admin-staff-card__name {
  font-size: 1.25rem;
  color: var(--clr-primary-dark);
  margin: 0 0 .75rem;
  line-height: 1.3;
  font-family: var(--ff-display);
}
.admin-staff-card__message {
  font-size: .88rem;
  color: var(--clr-grey);
  line-height: 1.65;
  margin: 0 0 1rem;
  padding: 0;
  border: none;
  position: relative;
  display: flex;
  gap: .55rem;
  align-items: flex-start;
}
.admin-staff-card__quote-icon {
  flex-shrink: 0;
  color: var(--admin-color, var(--clr-accent));
  opacity: .35;
  margin-top: 2px;
}
.admin-staff-card__email {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: var(--admin-color, var(--clr-primary));
  font-weight: 600;
  margin-top: auto;
  word-break: break-all;
  text-decoration: none;
}
.admin-staff-card__email:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .admin-staff-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .admin-staff-grid > article:first-child { grid-column: auto; max-width: none; }
  .admin-staff-card { grid-template-columns: 140px 1fr; }
  .admin-staff-card__photo img { min-height: 180px; }
  .admin-staff-card__body { padding: 1.1rem 1.25rem; }
  .admin-staff-card__name { font-size: 1.1rem; }
}
@media (max-width: 560px) {
  .admin-staff-card { grid-template-columns: 1fr; }
  .admin-staff-card__photo { aspect-ratio: 3/2; }
  .admin-staff-card__photo img { min-height: 0; }
}

/* ===================================================
   APPLICATION FORM ENHANCED (page-admissions.php)
=================================================== */
.application-form {
  background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(15, 47, 107, .08), 0 2px 6px rgba(0,0,0,.04);
  overflow: hidden;
  border: 1px solid rgba(21, 72, 158, .08);
}
.app-form__header-banner {
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 60%, var(--clr-accent) 100%);
  padding: 2rem 2.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.app-form__header-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
  pointer-events: none;
}
.app-form__header-banner h3 {
  font-size: 1.5rem;
  margin: 0 0 .3rem;
  font-family: var(--ff-display);
}
.app-form__header-banner p { margin: 0; opacity: .92; font-size: .95rem; }

.app-form__step {
  background: linear-gradient(135deg, var(--clr-accent), #1e8896);
  box-shadow: 0 4px 12px rgba(43, 169, 188, .35);
}

/* File-upload field styling */
.app-form__file {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.app-form__file-input { position: absolute; left: -9999px; opacity: 0; }
.app-form__file-label {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem 1rem;
  background: #fff;
  border: 2px dashed #c9d1de;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .88rem;
  color: var(--clr-grey);
  transition: all .2s ease;
}
.app-form__file-label:hover { border-color: var(--clr-accent); background: rgba(43, 169, 188, .04); color: var(--clr-primary-dark); }
.app-form__file-label svg { flex-shrink: 0; color: var(--clr-accent); }
.app-form__file--has-file .app-form__file-label {
  border-style: solid;
  border-color: var(--clr-accent);
  background: rgba(43, 169, 188, .06);
  color: var(--clr-primary-dark);
}
.app-form__file-name {
  font-weight: 600;
  word-break: break-all;
  font-size: .85rem;
}
.app-form__file-hint { font-size: .72rem; color: var(--clr-grey-light); margin-top: 0; }
.app-form__uploads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: .5rem;
}
@media (max-width: 720px) {
  .app-form__uploads-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   STUDENT LIFE — SVG illustration blocks
=================================================== */
.sl-illus {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.sl-illus svg { width: 100%; height: 100%; display: block; }

/* ===================================================
   GALLERY single-image fallback
=================================================== */
.gallery-single {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
}
.gallery-single img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.gallery-single figcaption {
  padding: 1rem 1.25rem;
  font-size: .92rem;
  color: var(--clr-grey);
  text-align: center;
  background: #fff;
}

/* ===================================================
   DEPARTMENT DETAILS (page-academics.php)
   Per-department course listing blocks
=================================================== */
.dept-detail {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 340px 1fr;
  transition: box-shadow .25s ease;
}
.dept-detail:hover { box-shadow: var(--shadow-md); }

.dept-detail__head {
  padding: 1.75rem 1.75rem 1.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.dept-detail__head::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
}
.dept-detail__title {
  font-size: 1.35rem;
  font-family: var(--ff-display);
  margin: 0 0 .5rem;
  line-height: 1.25;
  color: #fff;
  position: relative;
  z-index: 1;
}
.dept-detail__title span {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .8;
  font-weight: 500;
  font-family: var(--ff-body);
  margin-top: .25rem;
}
.dept-detail__desc {
  font-size: .88rem;
  color: rgba(255,255,255,.92);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Tone variants — coloured head section */
.dept-detail--science      .dept-detail__head { background: linear-gradient(135deg, #047857, #065f46); }
.dept-detail--building     .dept-detail__head { background: linear-gradient(135deg, #b45309, #92400e); }
.dept-detail--business     .dept-detail__head { background: linear-gradient(135deg, #2ba9bc, #147884); }
.dept-detail--computing    .dept-detail__head { background: linear-gradient(135deg, #15489e, #0e2f6b); }
.dept-detail--electric     .dept-detail__head { background: linear-gradient(135deg, #dc2626, #991b1b); }
.dept-detail--hospitality  .dept-detail__head { background: linear-gradient(135deg, #ea580c, #c2410c); }
.dept-detail--mechanical   .dept-detail__head { background: linear-gradient(135deg, #6b21a8, #4c1d95); }

.dept-detail__courses {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.dept-detail__courses-head {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-grey);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--clr-off-white);
}
.dept-detail__count {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-primary-dark);
  font-family: var(--ff-display);
}
.dept-detail__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dept-detail__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px dashed #e8ecf2;
  flex-wrap: wrap;
}
.dept-detail__list li:last-child { border-bottom: none; }
.dept-detail__course-name {
  font-weight: 600;
  color: var(--clr-primary-dark);
  font-size: .95rem;
  flex: 1;
  min-width: 200px;
}
.dept-detail__course-meta {
  font-size: .8rem;
  color: var(--clr-grey);
  background: var(--clr-off-white);
  padding: .25rem .65rem;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
}
.dept-detail__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-off-white);
  flex-wrap: wrap;
}
.dept-detail__back {
  font-size: .85rem;
  color: var(--clr-grey);
  text-decoration: none;
}
.dept-detail__back:hover { color: var(--clr-primary); }

.btn--sm {
  font-size: .85rem !important;
  padding: .5rem 1rem !important;
}

@media (max-width: 880px) {
  .dept-detail { grid-template-columns: 1fr; }
  .dept-detail__head { padding: 1.25rem 1.5rem; }
  .dept-detail__courses { padding: 1.25rem 1.5rem; }
  .dept-detail__list li { padding: .6rem 0; }
  .dept-detail__course-meta { font-size: .72rem; padding: .2rem .55rem; }
}

/* ===================================================
   CAMPUS LIFE TILES — SVG illustration variant
=================================================== */
.campus-tile__bg--svg {
  background: none !important;
  overflow: hidden;
}
.campus-tile__bg--svg svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.campus-tile:hover .campus-tile__bg--svg svg { transform: scale(1.08); }

/* Soften overlay so SVG illustration shows through better */
.campus-tile--clubs      .campus-tile__overlay { background: linear-gradient(180deg, rgba(21,72,158,.15) 0%, rgba(14,47,107,.45) 70%, rgba(14,47,107,.92) 100%) !important; }
.campus-tile--activities .campus-tile__overlay { background: linear-gradient(180deg, rgba(124,58,237,.15) 0%, rgba(76,29,149,.45) 70%, rgba(76,29,149,.92) 100%) !important; }
.campus-tile--sports     .campus-tile__overlay { background: linear-gradient(180deg, rgba(16,185,129,.15) 0%, rgba(4,120,87,.45) 70%, rgba(4,120,87,.92) 100%) !important; }

/* ===================================================
   LATEST UPDATES (below hero — unified feed)
   News + Events + Announcements + Jobs/Tenders
=================================================== */
.latest-updates {
  background: linear-gradient(180deg, #fff 0%, var(--clr-off-white) 100%);
  padding: 3.5rem 0;
}
.lu-source-links {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  color: var(--clr-grey);
}
.lu-source-links a {
  color: var(--clr-primary);
  font-weight: 600;
}
.lu-source-links a:hover { color: var(--clr-accent); }

.lu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.lu-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 2px 12px rgba(15, 47, 107, .06);
  border-top: 4px solid var(--clr-primary);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.lu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(21, 72, 158, .03) 100%);
  pointer-events: none;
}
.lu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 47, 107, .12);
}

/* Tone variants — colour-code by kind */
.lu-card--news         { border-top-color: #15489e; }
.lu-card--event        { border-top-color: #10b981; }
.lu-card--announcement { border-top-color: #f59e0b; }
.lu-card--tender       { border-top-color: #dc2626; }
.lu-card--admission    { border-top-color: #7c3aed; }

.lu-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
}
.lu-card__icon svg { width: 20px; height: 20px; }
.lu-card--news         .lu-card__icon { background: linear-gradient(135deg, #15489e, #0e2f6b); }
.lu-card--event        .lu-card__icon { background: linear-gradient(135deg, #10b981, #047857); }
.lu-card--announcement .lu-card__icon { background: linear-gradient(135deg, #f59e0b, #b45309); }
.lu-card--tender       .lu-card__icon { background: linear-gradient(135deg, #dc2626, #991b1b); }
.lu-card--admission    .lu-card__icon { background: linear-gradient(135deg, #7c3aed, #4c1d95); }

.lu-card__meta {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .65rem;
  flex-wrap: wrap;
}
.lu-card__badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .22rem .65rem;
  border-radius: 20px;
  background: var(--clr-off-white);
  color: var(--clr-primary-dark);
}
.lu-card--news         .lu-card__badge { background: rgba(21, 72, 158, .1);  color: #15489e; }
.lu-card--event        .lu-card__badge { background: rgba(16, 185, 129, .12); color: #047857; }
.lu-card--announcement .lu-card__badge { background: rgba(245, 158, 11, .12); color: #b45309; }
.lu-card--tender       .lu-card__badge { background: rgba(220, 38, 38, .1);  color: #991b1b; }
.lu-card--admission    .lu-card__badge { background: rgba(124, 58, 237, .1); color: #6b21a8; }

.lu-card__date {
  font-size: .8rem;
  color: var(--clr-grey);
  font-weight: 500;
}
.lu-card__title {
  font-size: 1.08rem;
  color: var(--clr-primary-dark);
  margin: 0 0 .55rem;
  line-height: 1.35;
  font-family: var(--ff-display);
  font-weight: 700;
}
.lu-card:hover .lu-card__title { color: var(--clr-primary); }
.lu-card__excerpt {
  font-size: .88rem;
  color: var(--clr-grey);
  line-height: 1.6;
  margin: 0 0 1.1rem;
  flex: 1;
}
.lu-card__more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-top: auto;
}
.lu-card:hover .lu-card__more { gap: .6rem; }

@media (max-width: 980px) {
  .lu-grid { grid-template-columns: repeat(2, 1fr); }
  .lu-source-links { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .lu-grid { grid-template-columns: 1fr; }
  .section-heading--flex { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ===================================================
   SAFETY NET — prevent unconstrained SVGs from blowing up
   Any inline SVG inside a small UI icon container is hard
   capped, so missing width/height attrs can't break layout
=================================================== */
.lu-card__icon svg,
.lu-card__more svg,
.btn svg,
.news-card__more svg,
.dept-card2__icon svg,
.dept-card2__link svg,
.dept-detail__back svg,
.section-heading svg,
.app-form__file-label svg,
.admin-staff-card__email svg,
.admin-staff-card__quote-icon,
.lu-source-link svg,
.campus-tile__icon svg,
.campus-tile__cta svg {
  width: 1.2em;
  height: 1.2em;
  max-width: 24px;
  max-height: 24px;
  flex-shrink: 0;
}
.lu-card__icon svg { width: 22px; height: 22px; max-width: 22px; max-height: 22px; }
.dept-card2__icon svg { width: 28px; height: 28px; max-width: 28px; max-height: 28px; }
.campus-tile__icon svg { width: 32px; height: 32px; max-width: 32px; max-height: 32px; }

/* Hard cap any inline SVG inside a card so it can never exceed the card */
.lu-card svg,
.news-card svg,
.dept-card2 svg,
.event-card svg {
  max-width: 100%;
  max-height: 4rem;
}
/* Override the cap for full-tile background SVGs that NEED to fill */
.campus-tile__bg--svg svg,
.sl-illus svg {
  max-width: 100%;
  max-height: 100%;
  width: 100% !important;
  height: 100% !important;
}

/* ===================================================
   HEADER NAV — fit-everything fix
   Logo + 9 menu items + Student Portal CTA + Contact + Search
   must all fit at desktop widths down to 1024px.
=================================================== */

/* Tighten nav at all desktop sizes */
@media (min-width: 901px) {
  .nav-menu > li > a {
    padding: 0 .65rem !important;     /* was 1rem */
    font-size: .88rem;
    letter-spacing: -.005em;
  }
  .nav-menu > li.menu-item-cta > a.nav-portal-link,
  .nav-menu > li.menu-item-cta > a {
    padding: .42rem .85rem !important;
    margin-left: .35rem;
  }
  .site-header__inner { gap: .85rem; }
  .site-logo { flex-shrink: 0; max-width: 460px; }
  .site-logo__name  { font-size: .92rem; line-height: 1.15; }
  .site-logo__tagline { font-size: .65rem; }
  .site-logo__emblem { width: 64px; height: 64px; }   /* was 88×66 */
  .main-nav { flex: 1; min-width: 0; }
  .nav-search-btn { flex-shrink: 0; margin-left: .25rem; }
}

/* Between 1024 and 1280 — make it even tighter */
@media (min-width: 901px) and (max-width: 1280px) {
  .nav-menu > li > a {
    padding: 0 .5rem !important;
    font-size: .82rem;
  }
  .nav-menu > li > a .chevron { width: 10px; height: 10px; }
  .site-logo__tagline { display: none; }
  .site-logo { max-width: 320px; }
  .site-logo__name { font-size: .85rem; }
  .site-logo__emblem { width: 56px; height: 56px; }
  .nav-search-btn { width: 34px; height: 34px; }
}

/* Keep menu items in one row without enabling overflow on .main-nav,
   because overflow on the nav clips dropdowns from rendering below.
   We rely on the tighter padding above (.65rem → .5rem) to make the
   menu fit at every desktop width down to 1024px. */
@media (min-width: 901px) {
  .main-nav {
    overflow: visible;        /* CRITICAL: must be visible so dropdowns aren't clipped */
  }
  .nav-menu { flex-wrap: nowrap; }
  .nav-menu > li { white-space: nowrap; flex-shrink: 0; }
}

/* ===================================================
   DEPARTMENT DETAIL PAGE (page-department.php)
=================================================== */
.page-hero--dept {
  position: relative;
  min-height: 320px;
  padding: 3.5rem 0 2rem;
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  color: #fff;
}
.page-hero--dept .page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero--computing   .page-hero__overlay { background: linear-gradient(135deg, rgba(21,72,158,.92), rgba(14,47,107,.88)); }
.page-hero--science     .page-hero__overlay { background: linear-gradient(135deg, rgba(4,120,87,.92), rgba(6,95,70,.88)); }
.page-hero--building    .page-hero__overlay { background: linear-gradient(135deg, rgba(180,83,9,.92), rgba(146,64,14,.88)); }
.page-hero--business    .page-hero__overlay { background: linear-gradient(135deg, rgba(43,169,188,.92), rgba(20,120,132,.88)); }
.page-hero--electric    .page-hero__overlay { background: linear-gradient(135deg, rgba(220,38,38,.92), rgba(153,27,27,.88)); }
.page-hero--hospitality .page-hero__overlay { background: linear-gradient(135deg, rgba(234,88,12,.92), rgba(194,65,12,.88)); }
.page-hero--mechanical  .page-hero__overlay { background: linear-gradient(135deg, rgba(107,33,168,.92), rgba(76,29,149,.88)); }

.page-hero--dept .container { position: relative; z-index: 1; }
.page-hero__eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.18);
  padding: .35rem .9rem;
  border-radius: 20px;
  font-weight: 700;
  margin-bottom: .8rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.page-hero--dept .page-hero__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 .5rem;
  color: #fff;
  line-height: 1.15;
}
.page-hero__tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,.92);
  max-width: 640px;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.dept-page-section {
  padding: 3rem 0;
}
.dept-page-section--alt {
  background: var(--clr-off-white);
}
.dept-about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
}
.dept-about__title h2 {
  font-size: 1.6rem;
  color: var(--clr-primary-dark);
  margin: .5rem 0 0;
}
.dept-about__eyebrow {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .35rem .9rem;
  border-radius: 20px;
  display: inline-block;
  background: var(--clr-off-white);
  color: var(--clr-primary);
}
.dept-about__eyebrow--computing   { background: rgba(21,72,158,.1);   color: #15489e; }
.dept-about__eyebrow--science     { background: rgba(4,120,87,.1);    color: #047857; }
.dept-about__eyebrow--building    { background: rgba(180,83,9,.1);    color: #b45309; }
.dept-about__eyebrow--business    { background: rgba(43,169,188,.1);  color: #147884; }
.dept-about__eyebrow--electric    { background: rgba(220,38,38,.1);   color: #dc2626; }
.dept-about__eyebrow--hospitality { background: rgba(234,88,12,.1);   color: #c2410c; }
.dept-about__eyebrow--mechanical  { background: rgba(107,33,168,.1);  color: #6b21a8; }

.dept-about__body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--clr-text);
  margin-bottom: 1.25rem;
}
.dept-about__body p:last-child { margin-bottom: 0; }

.dept-section-heading {
  text-align: center;
  margin-bottom: 2rem;
}
.dept-section-heading h2 {
  font-size: 1.7rem;
  color: var(--clr-primary-dark);
  margin: .65rem 0 0;
}

/* Programmes list */
.dept-programmes {
  display: grid;
  gap: .75rem;
  max-width: 800px;
  margin: 0 auto;
}
.dept-programme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--clr-primary);
  transition: transform .2s ease, box-shadow .2s ease;
}
.dept-programme:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.dept-programme--computing   { border-left-color: #15489e; }
.dept-programme--science     { border-left-color: #047857; }
.dept-programme--building    { border-left-color: #b45309; }
.dept-programme--business    { border-left-color: #147884; }
.dept-programme--electric    { border-left-color: #dc2626; }
.dept-programme--hospitality { border-left-color: #c2410c; }
.dept-programme--mechanical  { border-left-color: #6b21a8; }

.dept-programme__info { flex: 1; min-width: 0; }
.dept-programme__info h3 {
  font-size: 1rem;
  color: var(--clr-primary-dark);
  margin: 0 0 .25rem;
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.3;
}
.dept-programme__meta {
  font-size: .82rem;
  color: var(--clr-grey);
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.dept-programme__qual {
  font-weight: 600;
  color: var(--clr-primary);
  background: var(--clr-off-white);
  padding: .15rem .55rem;
  border-radius: 20px;
}
.dept-programme__sep { color: #cbd5e1; }
.dept-programme__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--clr-primary);
  background: var(--clr-off-white);
  padding: .55rem 1rem;
  border-radius: var(--radius);
  transition: all .2s ease;
}
.dept-programme__btn:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* Faculty grid */
.dept-faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
.dept-faculty-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.dept-faculty-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.dept-faculty-card__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.dept-faculty-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dept-faculty-card__initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}
.dept-faculty-card--computing   .dept-faculty-card__initials { background: linear-gradient(135deg, #15489e, #0e2f6b); }
.dept-faculty-card--science     .dept-faculty-card__initials { background: linear-gradient(135deg, #047857, #065f46); }
.dept-faculty-card--building    .dept-faculty-card__initials { background: linear-gradient(135deg, #b45309, #92400e); }
.dept-faculty-card--business    .dept-faculty-card__initials { background: linear-gradient(135deg, #2ba9bc, #147884); }
.dept-faculty-card--electric    .dept-faculty-card__initials { background: linear-gradient(135deg, #dc2626, #991b1b); }
.dept-faculty-card--hospitality .dept-faculty-card__initials { background: linear-gradient(135deg, #ea580c, #c2410c); }
.dept-faculty-card--mechanical  .dept-faculty-card__initials { background: linear-gradient(135deg, #6b21a8, #4c1d95); }

.dept-faculty-card__body {
  padding: 1rem 1.1rem 1.2rem;
  text-align: center;
}
.dept-faculty-card__name {
  font-size: .95rem;
  color: var(--clr-primary-dark);
  margin: 0 0 .35rem;
  line-height: 1.3;
  font-family: var(--ff-display);
  font-weight: 700;
}
.dept-faculty-card__role {
  font-size: .78rem;
  color: var(--clr-grey);
  font-weight: 500;
}

/* Other departments grid */
.dept-other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
  max-width: 900px;
  margin: 0 auto;
}
.dept-other-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  background: #fff;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--clr-primary-dark);
  font-size: .9rem;
  border-left: 3px solid var(--clr-primary);
  transition: all .25s ease;
}
.dept-other-card--computing   { border-left-color: #15489e; }
.dept-other-card--science     { border-left-color: #047857; }
.dept-other-card--building    { border-left-color: #b45309; }
.dept-other-card--business    { border-left-color: #147884; }
.dept-other-card--electric    { border-left-color: #dc2626; }
.dept-other-card--hospitality { border-left-color: #c2410c; }
.dept-other-card--mechanical  { border-left-color: #6b21a8; }
.dept-other-card:hover {
  transform: translateX(4px);
  color: var(--clr-primary);
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 880px) {
  .dept-about { grid-template-columns: 1fr; gap: 1.25rem; }
  .dept-faculty-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .dept-programme { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .dept-programme__btn { align-self: stretch; justify-content: center; }
}
@media (max-width: 480px) {
  .dept-faculty-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .dept-faculty-card__body { padding: .75rem .65rem 1rem; }
  .dept-faculty-card__name { font-size: .82rem; }
  .dept-faculty-card__role { font-size: .72rem; }
}

/* ===================================================
   WIDE DROPDOWN — for Academics menu with 8 departments
=================================================== */
.dropdown--wide {
  min-width: 480px;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: .5rem 0;
}
.dropdown--wide li {
  margin: 0;
  list-style: none;
}
.dropdown--wide li a {
  padding: .55rem 1.1rem;
  font-size: .82rem;
  border-bottom: none;
  white-space: normal;
  line-height: 1.35;
}
/* The 3 overview links sit nicer with a separator above */
.dropdown--wide li:nth-last-child(3) a {
  border-top: 1px solid #f0f0f0;
  margin-top: .25rem;
  padding-top: .7rem;
  font-weight: 600;
  color: var(--clr-primary-dark) !important;
}
.dropdown--wide li:nth-last-child(2) a,
.dropdown--wide li:nth-last-child(1) a {
  font-weight: 600;
  color: var(--clr-primary-dark) !important;
}

@media (max-width: 1280px) {
  .dropdown--wide { min-width: 420px; }
}
@media (max-width: 900px) {
  /* On mobile the drawer is single-column anyway */
  .dropdown--wide {
    display: block !important;
    min-width: 0;
  }
}

/* ╔══════════════════════════════════╗
   ║  INDUSTRIAL LIAISON OFFICE (v1.5) ║
   ╚══════════════════════════════════╝ */
.ilo-functions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  max-width: 1080px;
  margin-inline: auto;
}
.ilo-function-card {
  position: relative;
  background: var(--clr-white, #fff);
  border: 1px solid rgba(21, 72, 158, 0.10);
  border-top: 3px solid var(--clr-accent, #2ba9bc);
  border-radius: 12px;
  padding: 1.5rem 1.25rem 1.35rem;
  box-shadow: 0 4px 14px rgba(14, 47, 107, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ilo-function-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(14, 47, 107, 0.12);
}
.ilo-function-card__num {
  position: absolute;
  top: .85rem;
  right: 1rem;
  font-family: var(--ff-display, Georgia, serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(21, 72, 158, 0.10);
  line-height: 1;
}
.ilo-function-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(43, 169, 188, 0.12);
  color: var(--clr-primary, #15489e);
  margin-bottom: .85rem;
}
.ilo-function-card__icon svg { width: 22px; height: 22px; }
.ilo-function-card__text {
  color: var(--clr-grey, #55606e);
  font-size: .95rem;
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 480px) {
  .ilo-functions-grid { grid-template-columns: 1fr; }
}

/* ╔══════════════════════════════════╗
   ║  PAGE BUILDER SUPPORT (v1.6)     ║
   ╚══════════════════════════════════╝
   Elementor / PageLayer pages render inside .btti-builder-canvas —
   full-bleed, no theme padding, builder controls everything. */
.btti-builder-canvas {
  width: 100%;
  margin: 0;
  padding: 0;
}
/* Plain WordPress content on the Full Width template still reads well */
.btti-fullwidth-template > p,
.btti-fullwidth-template > h1, .btti-fullwidth-template > h2,
.btti-fullwidth-template > h3, .btti-fullwidth-template > h4,
.btti-fullwidth-template > ul, .btti-fullwidth-template > ol,
.btti-fullwidth-template > blockquote, .btti-fullwidth-template > table,
.btti-fullwidth-template > figure:not(.alignfull):not(.alignwide) {
  max-width: min(820px, 92vw);
  margin-inline: auto;
}
.btti-builder-page .site-content { padding: 0; }
/* Elementor/PageLayer section widths behave inside our canvas */
.btti-builder-canvas .elementor-section.elementor-section-boxed > .elementor-container { max-width: 1200px; }

/* ╔══════════════════════════════════════════╗
   ║  NAV CRAMP FIX (v1.8.1)                   ║
   ║  Prevent the search button from sitting   ║
   ║  over the last menu item (Contact Us) on  ║
   ║  mid-width screens.                       ║
   ╚══════════════════════════════════════════╝ */
.nav-search-btn { flex-shrink: 0; }
.main-nav { min-width: 0; }

/* Between the desktop layout and the 900px hamburger collapse,
   tighten nav spacing so all items + search button always fit. */
@media (min-width: 901px) and (max-width: 1280px) {
  .nav-menu > li > a { padding: 0 .6rem; font-size: .82rem; }
  .nav-search-btn { width: 34px; height: 34px; margin-left: .4rem; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .nav-menu > li > a { padding: 0 .42rem; font-size: .78rem; letter-spacing: 0; }
  .site-logo__tagline { display: none; }
}
