@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #111111;
  --muted: #555555;
  --paper: #f7f7f7;
  --card: #ffffff;
  --line: rgba(42, 105, 53, 0.14);
  --accent: #2a6935;
  --accent-2: #2d7f9f;
  --accent-3: #6f2586;
  --navy: #123f22;
  --moringa-orange: #6f2586;
  --moringa-peach: #dceee0;
  --moringa-peach-light: #eef7f0;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--paper);
  background: var(--navy);
  max-width: 100%;
  overflow-x: hidden;
  font-size: 1.05rem;
  line-height: 1.6;
}

.site-header {
  background: var(--ink);
}
.utility-bar {
  min-height: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1800px) / 2));
  font-size: .88rem;
  color: var(--paper);
}
.utility-left, .utility-right {
  display: flex;
  gap: 24px;
  align-items: center;
}
.utility-right a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.utility-socials,
#utility-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.utility-socials a,
#utility-socials a {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  line-height: 1;
}
.main-nav {
  min-height: 88px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - 1800px) / 2));
}

.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong,
h1, h2, h3, h4, h5, h6,
.visual-card h3,
.news-card h3,
.event-body h3,
nav,
.apply-btn {
  font-family: "Outfit", sans-serif;
}
.brand small { color: rgba(255,255,255,.72); }
.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: white;
  border-radius: 12px;
  padding: 4px;
}

nav { display: flex; gap: 28px; align-items: center; }
nav a, footer a {
  color: inherit;
  text-decoration: none;
}
nav > a, .dropdown > a {
  position: relative;
  font-weight: 800;
}
nav > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30px;
  height: 3px;
  background: #6f2586;
}
.dropdown { position: relative; }
.menu {
  display: none;
  position: absolute;
  top: 36px;
  left: 0;
  min-width: 230px;
  padding: 12px;
  background: rgba(12, 37, 53, 0.95);
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  z-index: 20;
  backdrop-filter: blur(12px);
}
.menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.8);
}
.menu a:hover { background: rgba(255,255,255,0.08); color: white; }
.dropdown:hover .menu,
.dropdown:focus-within .menu { display: block; }
.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-actions button {
  color: white;
  background: transparent;
  border: 0;
  font-size: 1.25rem;
}
.apply-btn {
  background: var(--accent-2);
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.pill, .hero button, .filters button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}
.pill, .hero button { background: var(--ink); color: white; }

main { width: min(1800px, calc(100% - 48px)); margin: 28px auto 0; }
.home-main {
  width: 100%;
  margin: 0;
}
.portal-hero {
  padding: 84px 0 42px;
  max-width: 760px;
}
.portal-hero p:last-child {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}
.hero {
  position: relative;
  min-height: 640px;
  border-radius: 34px;
  overflow: hidden;
}
.full-bleed-hero {
  width: 100%;
  min-height: calc(100vh - 128px);
  border-radius: 0;
}
.hero-media,
.hero-media img,
.hero-media video,
.hero img, .life img, .feature-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero img,
.hero video { position: absolute; inset: 0; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,50,63,.8), rgba(10,50,63,.18));
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  color: white;
  padding: 92px 0 0 64px;
}
.hero-copy p, .eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 800;
}
h1, h2 {
  line-height: 1.02;
  margin: 0 0 18px;
}
h1 { font-size: clamp(2.0rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.hero-copy span {
  display: block;
  font-size: 1.06rem;
  line-height: 1.7;
  color: rgba(255,255,255,.86);
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.hero-actions a {
  background: white;
  color: #0c2535;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
}
.hero .ghost {
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  color: white;
}
.hero-stats {
  position: absolute;
  right: 24px; bottom: 84px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.92);
  border-radius: 24px;
  overflow: hidden;
}
.explore-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px;
  background: var(--accent-2);
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}
.hero-stats article {
  padding: 18px 22px;
  min-width: 120px;
}
.hero-stats article + article { border-left: 1px solid var(--line); }
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { font-size: 1.5rem; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

.split {
  width: min(1800px, calc(100% - 64px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.intro { padding: 84px 0 52px; }
.intro p:last-child {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.06rem;
  margin: 4px 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
}
.carousel-section,
.feature-band,
.news,
.partner-band,
.program-strip-section {
  width: min(1800px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
}
.program-strip-section {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin: 60px auto;
}
.program-strip-header {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
}
.program-strip-header .eyebrow {
  color: #d32f2f;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.program-strip-header a {
  color: #0288d1;
  text-decoration: none;
  font-size: 0.95rem;
}
.program-strip {
  display: flex;
  gap: 16px;
  flex: 1;
}
.program-strip a {
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 32px 24px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(16,24,40,.08);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.program-strip a:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(16,24,40,.12);
}
.program-strip a .icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
.program-strip a strong {
  font-size: 1.15rem;
  font-family: "Poppins", sans-serif;
  line-height: 1.2;
}
.program-strip a span {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}

/* Cards Section – premium layout */
.cards-section {
  padding: 48px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0a2410 100%);
}
.cards-section .card-grid {
  display: flex;
  overflow-x: auto;
  gap: 48px;
  padding-bottom: 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.cards-section .card-grid::-webkit-scrollbar {
  height: 8px;
}
.cards-section .card-grid::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
}
.cards-section .card-grid::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.cards-section .card-grid article {
  flex: 0 0 380px;
  max-width: 85vw;
  scroll-snap-align: start;
}

.card-grid article, .news-grid article {
  padding: 0;
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.card-grid article:hover, .news-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16,24,40,.08);
}

.card-grid article > a, .news-grid article > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.managed-card-image {
  width: 100%;
  height: 220px;
  position: relative;
}

.managed-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.managed-card-image span {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #111111;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
}

.managed-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.managed-card-body h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.managed-card-body p {
  flex: 1;
  margin-bottom: 0;
}

.managed-card-body strong {
  margin-top: 24px;
  color: #111111;
  font-weight: 800;
}
.card-grid span {
  color: #ffffff;
  font-weight: 800;
}
.card-grid p, .news-grid p { color: var(--muted); line-height: 1.7; }

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 72px 0;
}
.feature-band article {
  min-height: 440px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}
.feature-band div {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
  color: white;
  padding: 20px;
  border-radius: 22px;
  background: rgba(8,15,25,.58);
  backdrop-filter: blur(12px);
}
.feature-band p:last-child { margin-bottom: 0; }

.news { margin-bottom: 72px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.1);
}
.filters .active {
  background: var(--accent);
  color: white;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.news-grid small {
  color: #ffffff;
  font-weight: 800;
}
.news-grid h3 { margin-bottom: 8px; }
.text-link {
  display: inline-block;
  margin-top: 18px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.life {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 72px;
}
.life img {
  min-height: 420px;
  border-radius: 28px;
}
.life > div {
  background: var(--ink);
  color: white;
  border-radius: 28px;
  padding: 42px;
}
.life p { line-height: 1.8; color: rgba(255,255,255,.82); }
.life li { margin-bottom: 12px; }

.site-footer {
  width: 100%;
  margin-top: 72px;
  background: #2a6935;
  color: white;
  padding: 48px max(32px, calc((100vw - 1800px) / 2)) 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 42px;
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.footer-logo-row strong,
.footer-logo-row small {
  display: block;
}
.footer-logo-row small {
  color: rgba(255,255,255,.75);
}
.site-footer p {
  margin: 0 0 10px;
}
.site-footer h3 {
  margin-top: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.7);
}
.site-footer section > a {
  display: block;
  color: white;
  text-decoration: none;
  margin-bottom: 12px;
}
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: white;
  color: #111111;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 800;
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.22);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.footer-bottom div {
  display: flex;
  gap: 18px;
}
.footer-bottom a {
  color: white;
  text-decoration: none;
}
.admin-body {
  background: #eef2f8;
}
.admin-shell {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}
.admin-panel {
  background: rgba(12, 37, 53, 0.95);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(16,24,40,.12);
}
.hidden { display: none !important; }
.repeat-editor {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}
.editor-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 37, 53, 0.95);
}
.editor-card h3 { margin: 0; }
.editor-card label {
  display: grid;
  gap: 8px;
  font-size: .92rem;
  font-weight: 700;
}
.editor-card input,
.editor-card textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}
.record-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 18px;
}
.record-tabs button {
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}
.record-tabs button.active {
  background: var(--navy);
  color: white;
}
.long-form-card {
  max-width: 820px;
  padding: 24px;
}
.upload-preview img {
  width: min(360px, 100%);
  height: 210px;
  object-fit: cover;
  border-radius: 18px;
  margin-top: 4px;
}
.footer-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 18px;
}
.footer-editor-card {
  align-content: start;
  padding: 24px;
}
.paired-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(16,24,40,.07);
}
.dashboard-body {
  background: 
    linear-gradient(135deg, rgba(45, 127, 159, 0.72), rgba(42, 105, 53, 0.78)),
    url('../assets/hero-campus.jpg') no-repeat center center fixed;
  background-size: cover;
}

.dashboard-topbar h1,
.dashboard-panel > h2,
.panel-heading > h2 {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.dashboard-login {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: 
    linear-gradient(135deg, rgba(45, 127, 159, 0.68), rgba(42, 105, 53, 0.72)),
    url('../assets/hero-campus.jpg') no-repeat center center;
  background-size: cover;
  backdrop-filter: blur(10px);
  animation: dashboardLoginFadeIn 0.6s ease-out;
}

.dashboard-login .admin-panel {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 30px 70px rgba(16, 24, 40, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: loginCardAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-login .admin-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 80px rgba(16, 24, 40, 0.3);
}

.dashboard-login .admin-panel h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: #111111;
}

.dashboard-login .admin-panel .eyebrow {
  color: #111111;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  font-weight: 800;
}

.dashboard-login .admin-panel label {
  text-align: left;
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.dashboard-login .admin-panel input {
  border: 1px solid rgba(45, 127, 159, 0.16);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem;
}

.dashboard-login .admin-panel input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(45, 127, 159, 0.1);
}

.dashboard-login .admin-actions {
  margin-top: 24px;
}

.dashboard-login .admin-actions button {
  width: 100%;
  border-radius: 12px;
  padding: 16px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  font-size: 1.05rem;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(45, 127, 159, 0.14);
}

.dashboard-login .admin-actions button:hover {
  background: #0f4053;
  box-shadow: 0 10px 24px rgba(45, 127, 159, 0.18);
}

.dashboard-login .admin-actions button:active {
  transform: scale(0.98);
}

@keyframes dashboardLoginFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes loginCardAppear {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.dashboard-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 24px 14px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.sidebar-brand img { width: 42px; height: 42px; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.dashboard-sidebar button, .dashboard-sidebar a {
  border: 0;
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.dashboard-sidebar .active {
  background: #2d7f9f;
  color: white;
  font-weight: 800;
}
.dashboard-main { padding: 28px 32px 92px; }
.dashboard-topbar { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 24px; }
.dashboard-topbar button, .panel-heading button, .dashboard-savebar button {
  border: 0; border-radius: 999px; padding: 14px 18px; background: var(--navy); color: white; font-weight: 800; cursor: pointer;
}
.dashboard-panel { display: none; }
.dashboard-panel.active { display: block; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric-grid article, .welcome-card { background: white; border-radius: 24px; padding: 22px; box-shadow: 0 18px 50px rgba(16,24,40,.04); }
.metric-grid strong { display: block; font-size: 2rem; margin-top: 8px; }
.welcome-card { margin-top: 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; }
.danger { border: 0; border-radius: 999px; padding: 10px 14px; background: #fee2e2; color: #b91c1c; font-weight: 700; cursor: pointer; }
.dashboard-savebar { position: fixed; left: 292px; right: 32px; bottom: 18px; display: flex; gap: 12px; justify-content: flex-end; }
.dashboard-savebar .secondary { background: white; color: var(--ink); }
.save-status {
  align-self: center;
  margin-right: auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(16,24,40,.06);
}
.save-status.pending { color: #92400e; background: #fffbeb; }
.save-status.saving { color: #111111; background: #e0f2fe; }
.save-status.success { color: #166534; background: #dcfce7; }
.save-status.error { color: #991b1b; background: #fee2e2; }
.audit-table {
  display: grid;
  gap: 10px;
}
.audit-table div {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  padding: 14px;
  background: white;
  border-radius: 16px;
}
.audit-table span,
.audit-table time {
  color: var(--muted);
}
.portal-login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at bottom left, rgba(39,169,216,.14), transparent 30%),
    radial-gradient(circle at top right, rgba(47,126,62,.14), transparent 28%),
    transparent;
}
.portal-header {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}
.portal-brand { color: var(--ink); }
.portal-brand small { color: var(--muted); }
.portal-home-link {
  color: white;
  background: var(--accent-2);
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}
.portal-login-layout {
  width: min(1080px, calc(100% - 40px));
  margin: 26px auto 0;
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: .95fr 1fr;
  align-items: center;
  gap: 48px;
}
.portal-login-card {
  background: white;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(16,24,40,.08);
}
.portal-login-card label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
}
.portal-login-card input {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font: inherit;
}
.portal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  margin-top: 0 !important;
}
.portal-row a {
  color: #111111;
  text-decoration: none;
}
.portal-login-card button {
  width: 100%;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  padding: 16px;
  background: linear-gradient(90deg, #3f8049, #185432);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.login-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fee2e2;
  color: #991b1b !important;
  font-weight: 800;
}
.portal-image-panel img {
  width: 100%;
  min-height: 620px;
  max-height: 720px;
  object-fit: cover;
  border-radius: 28px;
}
.admin-note {
  color: var(--muted);
  line-height: 1.7;
}
.admin-panel label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
}
.admin-panel input,
.admin-panel select,
.admin-panel textarea {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  font: inherit;
}
.admin-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.portal-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #111111;
  font-weight: 800;
}
.admin-actions button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.admin-actions .secondary {
  background: #eef2f8;
  color: var(--ink);
}
.admin-preview {
  margin-top: 28px;
}
.admin-preview img,
.admin-preview video {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 20px;
}
.subpage {
  min-height: calc(100vh - 260px);
  padding: 72px 0;
}
.managed-page {
  display: grid;
  gap: 32px;
}
.managed-page-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 36px;
}
.managed-page-media {
  margin: 0;
}
.managed-page-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.managed-page-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 18px;
}
.managed-page-sections article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 24px;
}
.managed-page-sections h2 {
  margin-top: 0;
  font-size: 1.3rem;
}
.managed-page-sections p {
  color: var(--muted);
  line-height: 1.75;
}
.managed-page-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
}
.managed-page-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.subpage h1 {
  max-width: 760px;
  margin-bottom: 28px;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  max-width: 760px;
}
.link-grid a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 22px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.2s ease;
}
.link-grid a:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lift);
}
.spacious { margin-top: 28px; }
.page-body { max-width: 720px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.schools-page-grid,
.news-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.socials { display: flex; gap: 18px; flex-wrap: wrap; }
.muted { color: var(--muted); }

@media (max-width: 900px) {
  .utility-bar { display: none; }
  .main-nav, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  nav { display: none; }
  .main-nav nav.open {
    display: grid;
    width: 100%;
    gap: 16px;
    padding-top: 16px;
  }
  nav > a.active::after {
    display: none;
  }
  .hero { min-height: auto; padding-bottom: 64px; }
  .hero-copy { padding: 54px 28px 24px; }
  .hero-stats {
    position: relative;
    left: auto; right: auto; bottom: auto;
    margin: 24px 20px 72px;
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-stats article {
    padding: 12px 10px;
    text-align: center;
  }
  .hero-stats article + article { border-left: 1px solid var(--line); border-top: 0; }
  .hero-stats strong { font-size: 1.25rem; }
  .split, .card-grid, .news-grid, .feature-band, .life, .link-grid, .partner-band, .school-detail-hero, .school-detail-content {
    display: grid;
    grid-template-columns: 1fr;
  }
  .managed-page-intro,
  .managed-page-sections,
  .managed-page-gallery {
    grid-template-columns: 1fr;
  }
  .events-grid, .campus-life-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 16px;
    padding-bottom: 24px;
  }
  .events-grid::-webkit-scrollbar, .campus-life-grid::-webkit-scrollbar { display: none; }
  .events-grid article, .campus-life-grid article {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
  .program-strip-section {
    flex-direction: column;
  }
  .program-strip {
    flex-direction: column;
  }
  .program-strip-header {
    flex: auto;
    padding-bottom: 0;
  }
  .section-head {
    display: block;
  }
  .filters { margin-top: 14px; }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-savebar { left: 16px; right: 16px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .portal-login-layout { grid-template-columns: 1fr; }
  .portal-image-panel img { min-height: 320px; }
  .footer-editor-grid,
  .paired-row {
    grid-template-columns: 1fr;
  }
  .campus-life-grid,
  .events-grid,
  .videos-grid,
  .school-detail-hero,
  .school-detail-content {
    grid-template-columns: 1fr;
  }
}

/* Modern home refresh */
:root {
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --paper: #f2f7f3;
  --card: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #2a6935;
  --accent-2: #2d7f9f;
  --accent-3: #6f2586;
  --navy: #123f22;
  --gold: #6f2586;
  --danger: #ef4444;
  --shadow-soft: 0 16px 38px rgba(0, 0, 0, 0.18);
  --shadow-lift: 0 24px 58px rgba(0, 0, 0, 0.28);
}

body {
  background: linear-gradient(135deg, #123f22 0%, #245463 100%) fixed;
  color: var(--ink);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 63, 34, 0.08), rgba(45, 127, 159, 0.14) 42%, rgba(18, 47, 57, 0.72)),
    linear-gradient(135deg, rgba(42, 105, 53, 0.08), transparent 36%),
    linear-gradient(315deg, rgba(111, 37, 134, 0.05), transparent 40%);
  opacity: 0.62;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 63, 34, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.utility-bar {
  min-height: 38px;
  background: rgba(21, 73, 39, 0.72);
  border-bottom: 0;
  color: rgba(255, 255, 255, .82);
}

.utility-left,
.utility-right {
  gap: 18px;
}

.utility-right a:hover {
  color: white;
}

.main-nav {
  min-height: 78px;
  background: transparent;
  color: var(--ink);
}

.brand {
  min-width: 260px;
}

.brand strong {
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  margin-top: 3px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: white;
  padding: 3px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.main-nav nav {
  gap: 6px;
  justify-content: center;
}

.main-nav nav > a,
.dropdown > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: .9rem;
  font-weight: 800;
}

.main-nav nav > a:hover,
.dropdown:hover > a,
.dropdown:focus-within > a {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

nav > a.active::after {
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

.menu {
  top: 46px;
  background: rgba(12, 37, 53, 0.95);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.menu a {
  color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
}

.nav-actions {
  gap: 10px;
}

.apply-btn,
.hero-actions a,
.featured-slide a,
.managed-card-body strong,
.footer-newsletter button {
  border-radius: 8px;
}

.apply-btn {
  padding: 13px 20px;
  background: #2a6935;
  box-shadow: 0 14px 26px rgba(23, 107, 79, .22);
}

.apply-btn:hover {
  background: #1f5736;
  transform: translateY(-1px);
}

.nav-actions button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(20, 33, 31, .12);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  color: var(--ink);
  font-size: 0;
  cursor: pointer;
}

#menu-toggle::before {
  content: "\2630";
  font-size: 1.2rem;
}

.nav-actions button[aria-label="Search"]::before {
  content: "\2315";
  font-size: 1.2rem;
  transform: rotate(-18deg);
}

.full-bleed-hero {
  min-height: min(760px, calc(100vh - 116px));
  display: grid;
  align-items: center;
  isolation: isolate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 30, 31, .86), rgba(5, 30, 31, .34) 58%, rgba(5, 30, 31, .1)),
    linear-gradient(180deg, transparent 55%, rgba(5, 30, 31, .7));
}

.hero-copy {
  width: min(660px, calc(100% - 48px));
  padding: 0;
  margin-left: max(24px, calc((100vw - 1800px) / 2));
}

.hero-copy p,
.eyebrow {
  letter-spacing: .12em;
  color: #ffffff;
}

.hero-copy p {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 9vw, 7.6rem);
  letter-spacing: 0;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.hero-copy span {
  max-width: 58ch;
  color: rgba(255,255,255,.95);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions a {
  min-height: 48px;
  padding: 14px 20px;
  box-shadow: 0 18px 34px rgba(0,0,0,.18);
}

.hero .ghost {
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1);
}

.hero-stats {
  right: max(24px, calc((100vw - 1800px) / 2));
  bottom: 88px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 24px 60px rgba(0,0,0,.16);
}

.hero-stats article {
  padding: 20px 24px;
}

.hero-stats strong {
  color: #ffffff;
  font-size: 1.65rem;
}

.explore-ribbon {
  background: rgba(15, 48, 47, .95);
}

.hero-curve-transition {
  display: none;
}

.featured-content-section,
.carousel-section,
.featured-videos-home,
.campus-life-home {
  margin-top: clamp(72px, 9vw, 120px);
}

.section-head,
.center-head {
  margin-bottom: 48px;
}

.section-head h2,
.center-head h2 {
  max-width: 760px;
}

.featured-controls button,
.carousel-controls button {
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(20, 33, 31, .08);
}

.featured-carousel {
  min-height: 500px;
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
}

.featured-slide::after {
  background: linear-gradient(90deg, rgba(5, 30, 31, .86), rgba(5, 30, 31, .28) 68%, rgba(5, 30, 31, .08));
}

.featured-slide span,
.managed-card-image span,
.news-card small,
.event-body small {
  border-radius: 6px;
  background: rgba(111, 37, 134, 0.12);
  color: #111111;
}

.cards-section {
  margin-top: clamp(72px, 9vw, 120px);
  padding: clamp(72px, 9vw, 110px) 0;
  background: transparent;
}

.card-filterbar button {
  border-radius: 8px;
}

.managed-card,
.visual-card,
.news-card,
.video-card,
.campus-card,
.event-card,
.program-strip a,
.school-detail-content article,
.school-detail-content aside,
.link-grid a {
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.managed-card,
.visual-card,
.news-card,
.campus-card,
.event-card,
.video-card {
  border: 1px solid rgba(20,33,31,.08);
}

.managed-card:hover,
.visual-card:hover,
.news-card:hover,
.video-card:hover,
.campus-card:hover,
.event-card:hover,
.program-strip a:hover {
  box-shadow: var(--shadow-lift);
}

.managed-card-body h3,
.news-card h3,
.event-body h3,
.visual-card h3 {
  color: #ffffff;
}

.managed-card-body strong {
  background: var(--accent-2);
}

.program-strip-section {
  align-items: stretch;
  padding: 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-soft);
}

.program-strip-header {
  align-items: flex-start;
  text-align: left;
  padding: 10px 18px 10px 4px;
}

.program-strip-header .eyebrow {
  color: #ffffff;
}

.program-strip-header a {
  color: #ffffff;
}

.program-strip a {
  min-height: 190px;
  border: 1px solid rgba(255,255,255,.1);
}

.campus-card img,
.event-card img,
.news-card img,
.visual-card img {
  filter: saturate(1.02) contrast(1.02);
}

.events-home {
  margin-top: clamp(58px, 7vw, 96px);
  background: transparent;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.date-badge {
  border-radius: 8px;
  background: var(--danger);
}

.site-footer {
  background:
    linear-gradient(180deg, #123f22, #091f12);
}

.footer-socials a,
.footer-newsletter input {
  border-radius: 8px;
}

@media (max-width: 1120px) {
  .main-nav {
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .main-nav nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
  }

  .main-nav nav.open {
    display: flex;
  }

  .dropdown,
  .dropdown > a,
  .main-nav nav > a {
    width: 100%;
  }

  .menu {
    position: static;
    display: grid;
    margin: 4px 0 10px;
    box-shadow: none;
  }

  .hero-stats {
    left: 24px;
    right: 24px;
    bottom: 74px;
  }

  .program-strip-section,
  .program-strip {
    flex-direction: column;
  }

  .events-grid,
  .campus-life-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: .98rem;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .main-nav {
    gap: 12px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .apply-btn {
    padding: 11px 14px;
  }

  .full-bleed-hero {
    min-height: 520px;
  }

  .hero-copy {
    width: min(100% - 16px, 560px);
    margin: 0 auto;
    align-self: start;
    padding-top: 48px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
    margin-bottom: 12px;
  }

  .hero-copy span {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 18px;
    gap: 8px;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .hero-stats {
    left: 8px;
    right: 8px;
    bottom: 52px;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
  }

  .hero-stats article {
    padding: 8px 4px;
    text-align: center;
  }

  .hero-stats article + article {
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .hero-stats strong {
    font-size: 1.1rem;
    color: #ffffff;
  }

  .hero-stats span {
    font-size: 0.68rem;
    color: var(--muted);
  }

  .featured-content-section,
  .carousel-section,
  .featured-videos-home,
  .campus-life-home,
  .program-strip-section {
    width: min(100% - 16px, 720px);
  }

  .section-head,
  .news-head,
  .card-management-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .featured-carousel {
    min-height: 560px;
  }

  .featured-slide h3 {
    font-size: clamp(1.8rem, 12vw, 3rem);
  }

  .events-grid,
  .campus-life-grid,
  .card-grid,
  .news-grid,
  .schools-page-grid,
  .news-page-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-login .admin-panel {
    padding: 24px;
  }
}
.partner-band {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
}
.logo-card {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-card span {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.nyamira-logo span { background: rgba(39,169,216,.15); color: #ffffff; }
.kisii-logo span { background: rgba(146,40,183,.12); color: #ffffff; }
.logo-card small, .partner-copy p { display: block; color: var(--muted); }
.partner-copy { text-align: center; }
.partner-copy h3 { margin: 4px 0 0; }
.carousel-section { margin-top: 72px; }
.carousel-controls { display: flex; gap: 10px; }
.carousel-controls button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-size: 1.25rem;
  cursor: pointer;
}
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px 4px 18px;
}
.carousel-track::-webkit-scrollbar { display: none; }
#schools-track {
  grid-auto-columns: calc((100% - 66px) / 4);
}

.campus-life-home {
  width: min(1560px, calc(100% - 96px));
  margin-left: auto;
  margin-right: auto;
}

.campus-life-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.campus-card img {
  height: 240px;
}

.campus-card h3 {
  margin: 20px 24px 22px;
}

@media (max-width: 1180px) {
  .campus-life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .campus-life-home {
    width: min(100% - 32px, 620px);
  }

  .campus-life-grid {
    grid-template-columns: 1fr;
  }
}

.visual-card,
.news-card,
.video-card {
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(16,24,40,.05);
  box-shadow: 0 10px 30px rgba(16,24,40,.03);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  will-change: transform;
}
.visual-card:hover,
.news-card:hover,
.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16,24,40,.08);
}
.visual-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.visual-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 20px 24px 8px;
}
.visual-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 24px 24px;
}
.news-card {
  display: flex;
  flex-direction: column;
}
.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.news-card div {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-card small {
  align-self: flex-start;
  margin-bottom: 14px;
  background: var(--moringa-peach-light);
  color: #111111;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.news-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
  min-height: 56px;
}
.news-card span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: auto;
}

/* Hero Curved Transition Styles */
.hero-curve-transition {
  position: relative;
  width: 100%;
  height: 80px;
  background: var(--accent-2);
  overflow: hidden;
  margin-top: -1px;
}
.hero-curve-transition svg {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
}
.hero-curve-transition path {
  fill: var(--navy);
}
.center-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.center-head p {
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.6;
}
.campus-life-home,
.events-home {
  width: min(1800px, calc(100% - 48px));
  margin: 86px auto 0;
}
.campus-life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.campus-card { 
  cursor: pointer; 
  overflow: hidden; 
  border-radius: 24px; 
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(16,24,40,.05);
  box-shadow: 0 10px 30px rgba(16,24,40,.03);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.campus-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16,24,40,.08);
}
.campus-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.campus-card:hover img {
  transform: scale(1.05);
}
.campus-card h3 { 
  margin: 20px 24px 24px; 
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}
.events-home {
  background: rgba(255, 255, 255, 0.02);
  width: 100%;
  margin-top: clamp(72px, 9vw, 120px);
  padding: 96px max(32px, calc((100vw - 1800px) / 2));
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.event-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  cursor: pointer;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16,24,40,.08);
}
.event-image-wrap { position: relative; overflow: hidden; }
.event-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.event-card:hover img {
  transform: scale(1.05);
}
.date-badge {
  position: absolute;
  left: 20px;
  bottom: -24px;
  width: 58px;
  height: 58px;
  background: var(--moringa-orange);
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(111,37,134,.14);
}
.date-badge small,
.date-badge strong {
  display: block;
  line-height: 1;
  text-transform: uppercase;
}
.date-badge small {
  font-size: 0.7rem;
  font-weight: 700;
}
.date-badge strong {
  font-size: 1.2rem;
  font-weight: 900;
}
.event-body { padding: 40px 32px 32px; }
.event-body small {
  color: #111111;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  background: var(--moringa-peach-light);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
}
.event-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 10px;
  color: #fff;
}
.event-body p { 
  color: rgba(255,255,255,0.65); 
  font-size: 0.88rem;
  margin: 0;
}
.featured-videos-home {
  width: min(1800px, calc(100% - 48px));
  margin: 72px auto 0;
}
.videos-grid {
  display: flex;
  overflow-x: auto;
  gap: 32px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px 4px 18px;
}
.videos-grid::-webkit-scrollbar { display: none; }
.video-card {
  flex: 0 0 min(100%, 420px);
  scroll-snap-align: start;
}
.video-frame {
  aspect-ratio: 16 / 9;
  background: #111827;
  overflow: hidden;
}
.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-message {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255,255,255,.82);
  text-align: center;
  font-weight: 700;
}
.video-card h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-top: 16px;
}
.school-detail-page {
  width: min(1800px, calc(100% - 48px));
}
.school-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
  padding: 56px 0;
}
.school-detail-hero img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.school-detail-hero p,
.school-detail-content p {
  color: var(--muted);
  line-height: 1.8;
}
.school-detail-content {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 32px;
  margin-bottom: 72px;
}
.school-detail-content article,
.school-detail-content aside {
  background: rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px;
}

/* Image-based Quick Link Icons support */
.program-strip a .icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

/* Custom Icon Input Styling for Admin Dashboard */
.icon-input-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.icon-preview {
  transition: border-color 0.2s, background-color 0.2s;
}
.icon-preview:hover {
  border-color: var(--accent) !important;
  background-color: var(--moringa-peach-light) !important;
}
.icon-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.icon-file-upload-label:hover {
  color: #111111 !important;
}
.clear-icon:hover {
  color: #ef4444 !important;
}

/* Image-based social media icons */
.footer-socials a img,
.socials a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}
.utility-socials a img,
#utility-socials a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.featured-content-section {
  width: min(1800px, calc(100% - 48px));
  margin: 72px auto 0;
}

.featured-controls {
  display: flex;
  gap: 10px;
}

.featured-controls button,
.carousel-controls button,
.featured-dots button,
.card-filterbar button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.featured-controls button:hover,
.carousel-controls button:hover,
.card-filterbar button:hover,
.card-filterbar button.active {
  background: var(--accent-2);
  color: white;
  border-color: transparent;
}

.featured-controls button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 1.15rem;
}

.featured-carousel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 12px 0;
}

.featured-track {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.featured-slide {
  position: relative;
  flex: 0 0 calc(50% - 12px);
  overflow: hidden;
  border-radius: 24px;
  background: #123f22;
  box-shadow: 0 16px 48px rgba(16,24,40,.12);
}

@media (max-width: 900px) {
  .featured-track {
    gap: 0;
  }
  .featured-slide {
    flex: 0 0 100%;
    border-radius: 12px;
  }
}

.featured-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.03);
}

.featured-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 33, 42, .86), rgba(10, 33, 42, .2) 62%, rgba(10,33,42,.08));
}

.featured-slide div {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 6vw, 72px);
  bottom: clamp(24px, 6vw, 64px);
  width: min(560px, calc(100% - 48px));
  color: white;
}

.featured-slide span,
.managed-card-image span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #ffffff;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.featured-slide h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  margin: 16px 0 14px;
}

.featured-slide p {
  color: rgba(255,255,255,.84);
  line-height: 1.75;
  max-width: 52ch;
}

.featured-slide a,
.managed-card-body strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent-2);
  color: white;
  text-decoration: none;
  font-weight: 900;
}

.featured-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.featured-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  opacity: .45;
}

.featured-dots button.active {
  width: 30px;
  opacity: 1;
  background: var(--accent-2);
}

.cards-section {
  margin-top: 80px;
  padding: 72px 0;
  background: transparent;
}

.cards-section-inner {
  width: min(1800px, calc(100% - 48px));
  margin: 0 auto;
}

.card-management-head {
  gap: 24px;
}

.card-management-head h2 {
  max-width: 780px;
}

.card-filterbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 520px;
}

.card-filterbar button {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.card-filterbar button.active,
.card-filterbar button:hover {
  background: var(--accent-2);
  color: white;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.managed-card {
  scroll-margin-top: 110px;
  min-height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  transition: transform .28s ease, box-shadow .28s ease;
}

.managed-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(16,24,40,.14);
}

.managed-card a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.managed-card-image {
  position: relative;
  height: 235px;
  overflow: hidden;
}

.managed-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.managed-card:hover .managed-card-image img {
  transform: scale(1.06);
}

.managed-card-image span {
  position: absolute;
  left: 18px;
  top: 18px;
}

.managed-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.managed-card-body h3 {
  min-height: 64px;
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.3;
}

.managed-card-body p {
  flex: 1;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.managed-card-body strong {
  align-self: flex-start;
  background: #123f22;
  font-size: .92rem;
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--muted);
}

.site-footer {
  margin-top: 0;
  padding: 0;
  background: linear-gradient(180deg, #164829, #123f22);
  color: rgba(255,255,255,.88);
}

.footer-shell {
  width: min(1800px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 24px;
}

.footer-topline {
  height: 1px;
  margin-bottom: 34px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(5, minmax(132px, 1fr)) minmax(270px, 1fr);
  gap: 24px;
  align-items: start;
}

.footer-brand p,
.footer-newsletter p {
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 34rem;
}

.footer-logo-row strong {
  color: white;
  font-size: 1.1rem;
}

.footer-logo-row small {
  color: rgba(255,255,255,.62);
  margin-top: 4px;
}

.footer-brand address {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  font-style: normal;
}

.footer-brand address a {
  color: rgba(255,255,255,.84);
}

.site-footer h3 {
  border-bottom: 0;
  margin: 0 0 14px;
  padding: 0 0 10px;
  color: white;
  font-size: .96rem;
  position: relative;
}

.site-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 2px;
  background: #6f2586;
}

.site-footer .footer-column a {
  display: block;
  margin-bottom: 9px;
  color: rgba(255,255,255,.72);
  font-size: .94rem;
  transition: color .2s ease, transform .2s ease;
}

.site-footer .footer-column a:hover,
.footer-bottom a:hover {
  color: white;
  transform: translateX(3px);
}

.footer-socials a {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: white;
  transition: transform .2s ease, background .2s ease;
}

.footer-socials a:hover {
  transform: translateY(-3px);
  background: #2a6935;
}

.footer-newsletter form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.footer-newsletter input {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 13px 15px;
  background: rgba(255,255,255,.08);
  color: white;
  font: inherit;
}

.footer-newsletter button {
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: #6f2586;
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 18px;
  color: rgba(255,255,255,.62);
  border-top-color: rgba(255,255,255,.12);
}

.footer-bottom div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: rgba(255,255,255,.72);
  transition: color .2s ease, transform .2s ease;
}

.card-admin-toolbar,
.card-admin-filters,
.card-admin-actions,
.bulk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.card-admin-toolbar {
  justify-content: space-between;
  margin: 18px 0;
}

.card-admin-toolbar input,
.card-admin-toolbar select,
.card-admin-form input,
.card-admin-form select,
.card-admin-form textarea {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  background: rgba(255,255,255,0.06);
  color: white;
}

.card-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 8px;
  background: white;
}

.card-admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
}

.card-admin-form label.full {
  grid-column: 1 / -1;
}

.card-admin-form textarea {
  min-height: 96px;
  resize: vertical;
}

.card-admin-actions {
  grid-column: 1 / -1;
}

.card-admin-table {
  display: grid;
  gap: 10px;
}

.card-admin-row {
  display: grid;
  grid-template-columns: auto 82px minmax(180px, 1fr) 140px 120px 150px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(16,24,40,.06);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 24px rgba(16,24,40,.04);
}

.card-admin-row[draggable="true"] {
  cursor: grab;
}

.card-admin-row.dragging {
  opacity: .55;
}

.card-admin-row img {
  width: 82px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
}

.card-admin-row h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.card-admin-row p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.status-pill {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef6f3;
  color: #111111;
  font-weight: 900;
  font-size: .78rem;
  text-transform: uppercase;
}

.card-admin-row button,
.bulk-actions button,
.card-admin-actions button {
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background: var(--navy);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.card-admin-row .danger {
  background: #fee2e2;
  color: #b91c1c;
}

@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand,
  .footer-newsletter {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  .featured-content-section,
  .cards-section-inner {
    width: min(100% - 16px, 720px);
  }

  .featured-carousel {
    min-height: 520px;
  }

  .featured-slide::after {
    background: linear-gradient(180deg, rgba(10,33,42,.2), rgba(10,33,42,.9));
  }

  .featured-slide div {
    left: 22px;
    right: 22px;
    bottom: 28px;
    width: auto;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-filterbar {
    justify-content: flex-start;
  }

  .footer-grid,
  .footer-brand,
  .footer-newsletter {
    display: grid;
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .footer-shell {
    width: min(100% - 16px, 720px);
  }

  .footer-newsletter form,
  .card-admin-form,
  .card-admin-row {
    grid-template-columns: 1fr;
  }

  .card-admin-row img {
    width: 100%;
    height: 160px;
  }
}

/* Final refresh overrides: keep this block last in the cascade. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 63, 34, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.main-nav {
  min-height: 78px;
  background: transparent;
  color: var(--ink);
}

.brand small {
  color: var(--muted);
}

.main-nav nav {
  gap: 6px;
}

.main-nav nav > a,
.dropdown > a {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: .9rem;
}

.main-nav nav > a:hover,
.dropdown:hover > a,
.dropdown:focus-within > a {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.menu,
.featured-carousel,
.managed-card,
.visual-card,
.news-card,
.video-card,
.campus-card,
.event-card,
.program-strip-section,
.program-strip a,
.link-grid a,
.apply-btn,
.hero-actions a,
.featured-slide a,
.managed-card-body strong,
.card-filterbar button,
.featured-controls button,
.carousel-controls button,
.footer-socials a,
.footer-newsletter input,
.footer-newsletter button {
  border-radius: 8px;
}

.nav-actions button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-actions button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

#menu-toggle::before {
  content: "\2630";
  font-size: 1.2rem;
}

.nav-actions button[aria-label="Search"]::before {
  content: "\2315";
  font-size: 1.2rem;
  transform: rotate(-18deg);
}

.full-bleed-hero {
  min-height: min(760px, calc(100vh - 116px));
}

.hero-copy {
  width: min(660px, calc(100% - 48px));
  padding: 0;
  margin-left: max(24px, calc((100vw - 1800px) / 2));
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 9vw, 7.6rem);
  letter-spacing: 0;
}

.hero-stats {
  right: max(24px, calc((100vw - 1800px) / 2));
  bottom: 88px;
  border-radius: 8px;
}

.hero-curve-transition {
  display: none;
}

.featured-carousel {
  min-height: 500px;
}

.managed-card,
.visual-card,
.news-card,
.video-card,
.campus-card,
.event-card,
.program-strip a {
  box-shadow: var(--shadow-soft);
}

.managed-card:hover,
.visual-card:hover,
.news-card:hover,
.video-card:hover,
.campus-card:hover,
.event-card:hover,
.program-strip a:hover {
  box-shadow: var(--shadow-lift);
}

@media (max-width: 1120px) {
  .main-nav {
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .main-nav nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
  }

  .main-nav nav.open {
    display: flex;
  }

  .dropdown,
  .dropdown > a,
  .main-nav nav > a {
    width: 100%;
  }

  .menu {
    position: static;
    display: grid;
    margin: 4px 0 10px;
    box-shadow: none;
  }
}

@media (max-width: 700px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }
}

/* Comfort scale: slightly smaller type and calmer page width. */
body {
  font-size: 0.98rem;
}

main,
.featured-content-section,
.carousel-section,
.featured-videos-home,
.school-detail-page,
.footer-shell {
  width: min(1560px, calc(100% - 96px));
}

.hero-copy {
  width: min(600px, calc(100% - 96px));
  margin-left: max(48px, calc((100vw - 1560px) / 2));
}

.hero-copy p {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  animation:
    heroWelcomeTyping 6s steps(29, end) infinite,
    heroWelcomeFade 6s ease-in-out infinite;
}

.hero-copy h1 {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  animation: heroTitleSlideShow 4.2s cubic-bezier(0.18, 0.82, 0.24, 1) infinite;
}

.hero-actions {
  margin-top: clamp(72px, 16vh, 150px);
}

@keyframes heroWelcomeTyping {
  0%,
  8% {
    clip-path: inset(0 100% 0 0);
  }
  58%,
  88% {
    clip-path: inset(0 0 0 0);
  }
  89%,
  100% {
    clip-path: inset(0 100% 0 0);
  }
}

@keyframes heroWelcomeFade {
  0%,
  78% {
    opacity: 1;
  }
  88%,
  100% {
    opacity: 0;
  }
}

@keyframes heroTitleSlideShow {
  0% {
    opacity: 0;
    transform: translateX(-110%);
  }
  12%,
  62% {
    opacity: 1;
    transform: translateX(0);
  }
  74%,
  100% {
    opacity: 0;
    transform: translateX(110%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy p,
  .hero-copy h1 {
    animation: none;
    clip-path: none;
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero-actions {
    margin-top: 28px;
  }
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 7vw, 5.9rem);
}

.hero-copy span,
.featured-slide p {
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
}

.hero-stats {
  right: max(48px, calc((100vw - 1560px) / 2));
}

.section-head h2,
.center-head h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.75rem);
}

.featured-content-section,
.carousel-section,
.featured-videos-home,
.campus-life-home,
.cards-section {
  margin-top: clamp(54px, 6vw, 86px);
}

.featured-carousel {
  min-height: 430px;
}

.featured-slide div {
  left: 56px;
  bottom: 48px;
  width: min(500px, calc(100% - 96px));
}

.featured-slide h3 {
  font-size: clamp(1.75rem, 3.2vw, 2.8rem);
  line-height: 1.08;
}

.featured-slide a,
.managed-card-body strong,
.apply-btn,
.hero-actions a {
  padding: 12px 17px;
  font-size: 0.94rem;
}

.managed-card-body h3,
.news-card h3,
.event-body h3,
.visual-card h3,
.video-card h3 {
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  line-height: 1.18;
}

.managed-card-body p,
.news-card p,
.event-body p,
.visual-card p {
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  main,
  .featured-content-section,
  .carousel-section,
  .featured-videos-home,
  .school-detail-page,
  .footer-shell {
    width: min(100% - 32px, 720px);
  }

  .hero-copy {
    width: min(100% - 32px, 620px);
    margin-left: 16px;
  }

  .hero-stats {
    right: 16px;
  }

  .featured-slide div {
    left: 22px;
    right: 22px;
    width: auto;
  }
}

/* Reference typography: compact rounded text like the provided card layout. */
body,
button,
input,
textarea,
select {
  font-family: "Poppins", "Plus Jakarta Sans", Arial, sans-serif;
}

body {
  font-size: 0.92rem;
  line-height: 1.55;
}

.brand strong,
h1,
h2,
h3,
h4,
h5,
h6,
.visual-card h3,
.news-card h3,
.event-body h3,
nav,
.apply-btn {
  font-family: "Poppins", "Plus Jakarta Sans", Arial, sans-serif;
}

h1,
h2,
h3,
.brand strong,
.main-nav nav > a,
.dropdown > a {
  font-weight: 600;
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 5.8vw, 4.8rem);
  line-height: 1.05;
  font-weight: 700;
}

.hero-copy span {
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.65;
}

.section-head h2,
.center-head h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  line-height: 1.16;
  font-weight: 700;
}

.section-head p,
.center-head p,
.page-body {
  font-size: 0.92rem;
  line-height: 1.65;
}

.featured-slide h3 {
  font-size: clamp(1.55rem, 2.45vw, 2.25rem);
  line-height: 1.12;
  font-weight: 700;
}

.featured-slide p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.managed-card-body h3,
.news-card h3,
.event-body h3,
.visual-card h3,
.video-card h3,
.campus-card h3,
.link-grid a strong {
  font-size: clamp(0.98rem, 1.25vw, 1.16rem);
  line-height: 1.35;
  font-weight: 600;
}

.managed-card-body p,
.news-card p,
.event-body p,
.visual-card p,
.video-card p,
.campus-card p,
.link-grid a,
.site-footer .footer-column a,
.footer-brand p,
.footer-newsletter p {
  font-size: 0.88rem;
  line-height: 1.6;
  font-weight: 400;
}

.featured-slide span,
.managed-card-image span,
.news-card small,
.event-body small,
.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.featured-slide a,
.managed-card-body strong,
.apply-btn,
.hero-actions a,
.footer-newsletter button {
  font-size: 0.88rem;
  font-weight: 600;
}

.main-nav nav > a,
.dropdown > a,
.utility-bar,
.brand small {
  font-size: 0.84rem;
}

/* Background blend: keeps the existing teal/blue mood with a fresher green lift. */
body {
  background:
    linear-gradient(135deg, #2a6935 0%, #1f5736 34%, #2d7f9f 72%, #123f22 100%) fixed;
}

body::before {
  background:
    linear-gradient(180deg, rgba(42, 105, 53, 0.1), rgba(45, 127, 159, 0.16) 44%, rgba(18, 63, 34, 0.68)),
    linear-gradient(110deg, rgba(42, 105, 53, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(111, 37, 134, 0.05), transparent 42%);
  opacity: 0.76;
}

/* Footer polish */
.site-footer {
  margin-top: clamp(56px, 7vw, 92px);
  background:
    linear-gradient(180deg, rgba(18, 63, 34, 0.98), rgba(9, 31, 18, 0.98));
  color: rgba(255,255,255,.86);
}

.footer-shell {
  width: min(1560px, calc(100% - 80px));
  padding: clamp(42px, 5vw, 64px) 0 24px;
}

.footer-topline {
  margin-bottom: 30px;
  background: linear-gradient(90deg, rgba(111,37,134,0), rgba(111,37,134,.24), rgba(255,255,255,.1), rgba(111,37,134,0));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(420px, 1.7fr) minmax(260px, .85fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}

.footer-brand,
.footer-newsletter {
  grid-column: auto;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 28px 34px;
}

.footer-logo-row {
  margin-bottom: 16px;
}

.footer-logo {
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
}

.footer-logo-row strong {
  font-size: 1.02rem;
  line-height: 1.25;
}

.footer-brand p,
.footer-newsletter p {
  max-width: 30rem;
  margin-bottom: 14px;
  color: rgba(255,255,255,.68);
}

.footer-brand address {
  gap: 8px;
  margin-top: 16px;
  color: rgba(255,255,255,.72);
}

.site-footer h3 {
  margin-bottom: 12px;
  padding-bottom: 9px;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer .footer-column a {
  width: fit-content;
  margin-bottom: 8px;
  color: rgba(255,255,255,.7);
}

.footer-socials {
  gap: 9px;
  margin-top: 20px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.09);
  font-size: .78rem;
}

.footer-newsletter {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}

.footer-newsletter form {
  gap: 9px;
}

.footer-newsletter input,
.footer-newsletter button {
  width: 100%;
  border-radius: 8px;
}

.footer-newsletter input {
  padding: 12px 13px;
}

.footer-newsletter button {
  padding: 12px 14px;
}

.footer-bottom {
  align-items: center;
  margin-top: 34px;
  padding-top: 18px;
}

.footer-bottom div {
  gap: 10px 18px;
}

@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .footer-newsletter {
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  .footer-shell {
    width: min(100% - 32px, 620px);
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 22px;
  }

  .footer-newsletter {
    padding: 16px;
  }

  .footer-bottom,
  .footer-bottom div {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    width: 58px;
    height: 58px;
  }
}

/* Dashboard readability */
.dashboard-body {
  --ink: #111111;
  --muted: #555555;
  --paper: #f5f9f6;
  --card: #ffffff;
  --line: #dbe8de;
  --navy: #123f22;
  --accent-2: #2d7f9f;
  color: #111111;
  font-family: "Inter", "Nunito Sans", "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.portal-login-body {
  --ink: #111111;
  --muted: #555555;
  --paper: #f5f9f6;
  --card: #ffffff;
  --line: #dbe8de;
  --navy: #123f22;
  --accent-2: #2d7f9f;
  color: #111111;
  font-family: "Inter", "Nunito Sans", "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.portal-login-body .portal-brand,
.portal-login-body .portal-brand strong,
.portal-login-body .portal-login-card h1,
.portal-login-body .portal-login-card label {
  color: #111111;
}

.portal-login-body .portal-brand small,
.portal-login-body .portal-login-card p,
.portal-login-body .portal-row,
.portal-login-body .portal-row a {
  color: #555555;
}

.portal-login-card {
  color: #111111;
}

.portal-login-card input {
  background: #ffffff;
  color: #111111;
  font-family: inherit;
  font-weight: 700;
}

.portal-login-card input::placeholder {
  color: #777777;
}

.dashboard-shell {
  background: transparent;
}

.dashboard-sidebar {
  background: #ffffff;
  border-right: 1px solid #dfe8e7;
  color: #111111;
  box-shadow: 8px 0 28px rgba(10, 38, 45, 0.06);
}

.sidebar-brand strong {
  color: #111111;
  font-weight: 800;
}

.sidebar-brand small {
  color: #555555;
}

.dashboard-sidebar button,
.dashboard-sidebar a {
  color: #111111;
  background: transparent;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-sidebar button:hover,
.dashboard-sidebar a:hover {
  background: #edf7f5;
  color: #111111;
}

.dashboard-sidebar button.active,
.dashboard-sidebar .active {
  background: #2d7f9f;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(45, 127, 159, 0.15);
}

.dashboard-topbar h1 {
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(2.5rem, 4.8vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.dashboard-panel > h2,
.panel-heading > h2 {
  color: #111111;
  font-family: inherit;
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: none;
}

.metric-grid article,
.welcome-card,
.admin-panel,
.editor-card,
.footer-editor-card,
.long-form-card,
.card-admin-form,
.card-admin-row,
.audit-table div,
.repeat-editor > section {
  background: #ffffff;
  border: 1px solid rgba(18, 49, 58, 0.08);
  box-shadow: 0 18px 44px rgba(8, 36, 45, 0.08);
  color: #111111;
}

.metric-grid article p,
.welcome-card p,
.admin-panel p,
.editor-card p,
.footer-editor-card p,
.card-admin-row p,
.repeat-editor p,
.audit-table span,
.audit-table time {
  color: #555555;
  font-weight: 600;
}

.metric-grid strong,
.welcome-card strong,
.admin-panel strong,
.editor-card strong,
.footer-editor-card strong,
.card-admin-row h3,
.repeat-editor h3,
.editor-card h3,
.welcome-card h2 {
  color: #111111;
  font-family: inherit;
  font-weight: 800;
}

.editor-card h3,
.footer-editor-card h3,
.long-form-card h3 {
  margin-bottom: 4px;
  font-size: 1.06rem;
  line-height: 1.25;
}

.admin-panel label,
.editor-card label,
.card-admin-form label,
.footer-editor-card label,
.repeat-editor label {
  color: #111111;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea,
.editor-card input,
.editor-card select,
.editor-card textarea,
.card-admin-form input,
.card-admin-form select,
.card-admin-form textarea,
.footer-editor-card input,
.footer-editor-card select,
.footer-editor-card textarea,
.repeat-editor input,
.repeat-editor select,
.repeat-editor textarea,
.card-admin-toolbar input,
.card-admin-toolbar select {
  border-color: #d7e2e0;
  background: #ffffff;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(18, 49, 58, 0.02);
  font-family: inherit;
  font-weight: 700;
  caret-color: #111111;
}

.admin-panel input:focus,
.admin-panel select:focus,
.admin-panel textarea:focus,
.editor-card input:focus,
.editor-card select:focus,
.editor-card textarea:focus,
.card-admin-form input:focus,
.card-admin-form select:focus,
.card-admin-form textarea:focus,
.footer-editor-card input:focus,
.footer-editor-card select:focus,
.footer-editor-card textarea:focus,
.repeat-editor input:focus,
.repeat-editor select:focus,
.repeat-editor textarea:focus,
.card-admin-toolbar input:focus,
.card-admin-toolbar select:focus {
  outline: none;
  border-color: #2d7f9f;
  box-shadow: 0 0 0 4px rgba(45, 127, 159, 0.12);
}

.admin-panel input::placeholder,
.admin-panel textarea::placeholder,
.editor-card input::placeholder,
.editor-card textarea::placeholder,
.card-admin-form input::placeholder,
.card-admin-form textarea::placeholder,
.footer-editor-card input::placeholder,
.footer-editor-card textarea::placeholder,
.repeat-editor input::placeholder,
.repeat-editor textarea::placeholder,
.card-admin-toolbar input::placeholder {
  color: #777777;
}

.icon-input-container,
.upload-preview,
.editor-card h4,
.long-form-card h4 {
  color: #111111;
}

.icon-input-container span,
.icon-input-container label,
.icon-file-upload-label {
  color: #111111 !important;
}

.icon-input-container span[style*="var(--muted)"] {
  color: #555555 !important;
}

.record-tabs button {
  border-color: #d7e2e0;
  background: #ffffff;
  color: #111111;
  font-family: inherit;
  font-weight: 800;
}

.record-tabs button:hover {
  background: #edf7f5;
  color: #111111;
}

.record-tabs button.active {
  background: #123f22;
  color: #ffffff;
}

.card-admin-toolbar,
.card-admin-filters,
.bulk-actions,
.card-admin-actions {
  color: #111111;
}

.status-pill {
  background: #e7f8f5;
  color: #111111;
}

.dashboard-body button,
.action-btn,
.bulk-actions button,
.card-admin-actions button,
.dashboard-topbar button,
.panel-heading button,
.dashboard-savebar button {
  font-family: inherit;
  font-weight: 800;
}

.dashboard-savebar {
  align-items: center;
}

.dashboard-savebar .secondary {
  background: #ffffff;
  color: #111111;
}

.save-status {
  color: #555555;
}

@media (max-width: 900px) {
  .dashboard-sidebar {
    position: static;
    border-right: 0;
    border-bottom: 1px solid #dfe8e7;
  }
}

/* Quiet visibility pass: muted card colors with neutral, readable text. */
.hero-stats {
  width: min(640px, calc(100% - 48px));
  left: auto;
  right: max(48px, calc((100vw - 1560px) / 2));
  transform: none;
  gap: 0;
  background: transparent;
  border: 0;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.hero-stats strong,
.hero-stats span {
  color: #ffffff;
}

.hero-stats article {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(42, 105, 53, 0.92), rgba(18, 63, 34, 0.86));
}

.hero-stats article:nth-child(2) {
  background: linear-gradient(135deg, rgba(45, 127, 159, 0.92), rgba(21, 85, 109, 0.86));
}

.hero-stats article:nth-child(3) {
  background: linear-gradient(135deg, rgba(111, 37, 134, 0.92), rgba(72, 28, 92, 0.86));
}

.program-strip-section {
  width: min(1380px, calc(100% - 128px));
  margin-left: auto;
  margin-right: auto;
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(135deg, rgba(18, 63, 34, 0.72), rgba(45, 127, 159, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.program-strip {
  gap: 16px;
}

.program-strip a,
.managed-card,
.visual-card,
.news-card,
.campus-card,
.event-card,
.video-card {
  background: #cdd8d2;
  color: #111111;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.program-strip a {
  flex: 1 1 260px;
  min-height: 170px;
  padding: 28px 22px;
}

.program-strip a:nth-child(2n),
.managed-card:nth-child(2n),
.visual-card:nth-child(2n),
.news-card:nth-child(2n),
.campus-card:nth-child(2n),
.event-card:nth-child(2n),
.video-card:nth-child(2n) {
  background: #bccbc7;
}

.program-strip a:nth-child(3n),
.managed-card:nth-child(3n),
.visual-card:nth-child(3n),
.news-card:nth-child(3n),
.campus-card:nth-child(3n),
.event-card:nth-child(3n),
.video-card:nth-child(3n) {
  background: #d7d6c8;
}

.program-strip a:hover,
.managed-card:hover,
.visual-card:hover,
.news-card:hover,
.campus-card:hover,
.event-card:hover,
.video-card:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.program-strip a strong,
.program-strip a span,
.managed-card-body h3,
.managed-card-body p,
.news-card h3,
.news-card p,
.news-card span,
.visual-card h3,
.visual-card p,
.campus-card h3,
.campus-card p,
.event-body h3,
.event-body p {
  color: #111111;
}

.program-strip a span,
.managed-card-body p,
.news-card p,
.news-card span,
.visual-card p,
.campus-card p,
.event-body p {
  color: #555555;
}

.program-strip a .icon,
.program-strip a .icon img {
  color: #333333;
  filter: grayscale(1) brightness(0.45);
}

@media (max-width: 900px) {
  .hero-stats,
  .program-strip-section {
    width: min(100% - 32px, 720px);
  }

  .hero-stats {
    right: 16px;
  }

  .program-strip {
    flex-wrap: wrap;
  }
}

/* Managed cards: show 4 full cards per page and keep body content readable. */
.cards-section {
  padding-inline: 0;
}

.cards-section-inner {
  width: min(1480px, calc(100% - 112px));
}

.card-management-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.card-management-head h2 {
  max-width: 720px;
}

.card-filterbar {
  justify-content: flex-end;
  max-width: 560px;
}

.card-filterbar button {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.card-filterbar button.active,
.card-filterbar button:hover {
  background: #ffffff;
  color: #111111;
}

.cards-section .card-grid {
  --card-gap: 28px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--card-gap) * 3)) / 4);
  grid-template-columns: none;
  gap: var(--card-gap);
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 18px;
}

.cards-section .managed-card {
  background: #cdd8d2;
  color: #111111;
}

.cards-section .managed-card:nth-child(2n) {
  background: #bccbc7;
}

.cards-section .managed-card:nth-child(3n) {
  background: #d7d6c8;
}

.cards-section .managed-card-body h3,
.cards-section .managed-card-body p {
  color: #111111;
}

.cards-section .managed-card-body p {
  color: #555555;
}

.card-grid::-webkit-scrollbar,
.cards-section .card-grid::-webkit-scrollbar {
  display: none;
}

.cards-section .card-grid article,
.card-grid .managed-card {
  width: auto;
  max-width: none;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.managed-card-image span,
.card-grid .managed-card-image span {
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
}

.managed-card-body h3,
.managed-card-body p,
.managed-card-body strong {
  overflow-wrap: anywhere;
}

.managed-card-body strong,
.card-grid .managed-card-body strong {
  background: #123f22;
  color: #ffffff;
}

.campus-life-home,
.events-home {
  width: min(1560px, calc(100% - 96px));
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.events-home {
  background: transparent;
}

.campus-life-grid,
.events-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1280px) {
  .cards-section-inner {
    width: min(1120px, calc(100% - 72px));
  }

  .cards-section .card-grid {
    grid-auto-columns: calc((100% - (var(--card-gap) * 2)) / 3);
  }
}

@media (max-width: 1180px) {
  .campus-life-grid,
  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cards-section-inner {
    width: min(720px, calc(100% - 40px));
  }

  .card-management-head {
    grid-template-columns: 1fr;
  }

  .card-filterbar {
    grid-column: 1;
    justify-content: flex-start;
  }

  .cards-section .card-grid {
    --card-gap: 20px;
    grid-auto-columns: calc((100% - var(--card-gap)) / 2);
  }

  .campus-life-home,
  .events-home {
    width: min(100% - 40px, 720px);
  }
}

@media (max-width: 620px) {
  .cards-section-inner {
    width: min(100% - 28px, 420px);
  }

  .cards-section .card-grid {
    grid-auto-columns: 100%;
  }

  .campus-life-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }
}

.scroll-pop-card {
  opacity: 0;
  transform: translateY(34px) scale(0.96);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.18, 0.82, 0.24, 1),
    box-shadow 0.25s ease;
  transition-delay: var(--pop-delay, 0ms);
}

.scroll-pop-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-pop-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Modern learning-site theme inspired by the provided e-course reference. */
:root {
  --theme-ink: #17201b;
  --theme-muted: #66736d;
  --theme-canvas: #f3fbf7;
  --theme-surface: #ffffff;
  --theme-soft: #e5f5ee;
  --theme-green: #1f7a4d;
  --theme-green-dark: #0e4f35;
  --theme-teal: #1c8c97;
  --theme-coral: #ff7a59;
  --theme-yellow: #f8c84e;
  --theme-blue: #4267d5;
  --theme-line: rgba(23, 32, 27, 0.1);
  --theme-shadow: 0 22px 60px rgba(24, 62, 45, 0.12);
}

body:not(.dashboard-body):not(.portal-login-body) {
  color: var(--theme-ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(248, 200, 78, 0.28), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(28, 140, 151, 0.18), transparent 30rem),
    linear-gradient(180deg, #f8fffb 0%, var(--theme-canvas) 42%, #edf8f4 100%);
}

body:not(.dashboard-body):not(.portal-login-body)::before {
  display: none;
}

body:not(.dashboard-body):not(.portal-login-body) .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  color: var(--theme-ink);
  border-bottom: 1px solid rgba(23, 32, 27, 0.08);
  box-shadow: 0 14px 38px rgba(25, 62, 45, 0.08);
  backdrop-filter: blur(18px);
}

body:not(.dashboard-body):not(.portal-login-body) .utility-bar {
  min-height: 38px;
  color: var(--theme-muted);
  background: var(--theme-green-dark);
  border: 0;
  padding-inline: max(24px, calc((100vw - 1480px) / 2));
}

body:not(.dashboard-body):not(.portal-login-body) .utility-left,
body:not(.dashboard-body):not(.portal-login-body) .utility-right {
  color: rgba(255, 255, 255, 0.84);
}

body:not(.dashboard-body):not(.portal-login-body) .utility-right a {
  color: inherit;
  font-weight: 600;
}

body:not(.dashboard-body):not(.portal-login-body) #utility-socials a {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav {
  min-height: 82px;
  color: var(--theme-ink);
  background: transparent;
  padding-inline: max(24px, calc((100vw - 1480px) / 2));
}

body:not(.dashboard-body):not(.portal-login-body) .brand {
  gap: 12px;
}

body:not(.dashboard-body):not(.portal-login-body) .brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid var(--theme-line);
  box-shadow: 0 10px 26px rgba(31, 122, 77, 0.12);
}

body:not(.dashboard-body):not(.portal-login-body) .brand strong {
  color: var(--theme-ink);
  font-size: 1.02rem;
}

body:not(.dashboard-body):not(.portal-login-body) .brand small {
  color: var(--theme-muted);
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(23, 32, 27, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
body:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--theme-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

body:not(.dashboard-body):not(.portal-login-body) nav > a.active::after {
  display: none;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active,
body:not(.dashboard-body):not(.portal-login-body) .dropdown:hover > a,
body:not(.dashboard-body):not(.portal-login-body) .dropdown:focus-within > a {
  background: var(--theme-soft);
  color: var(--theme-green-dark);
}

body:not(.dashboard-body):not(.portal-login-body) .menu {
  top: 52px;
  min-width: 250px;
  border-radius: 22px;
  border: 1px solid rgba(23, 32, 27, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: var(--theme-ink);
  box-shadow: 0 24px 70px rgba(21, 64, 45, 0.16);
}

body:not(.dashboard-body):not(.portal-login-body) .menu a {
  color: var(--theme-muted);
}

body:not(.dashboard-body):not(.portal-login-body) .menu a:hover {
  background: var(--theme-soft);
  color: var(--theme-green-dark);
}

body:not(.dashboard-body):not(.portal-login-body) .apply-btn,
body:not(.dashboard-body):not(.portal-login-body) .hero-actions a,
body:not(.dashboard-body):not(.portal-login-body) .featured-slide a,
body:not(.dashboard-body):not(.portal-login-body) .managed-card-body strong,
body:not(.dashboard-body):not(.portal-login-body) .footer-newsletter button {
  border-radius: 999px;
  background: var(--theme-coral);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(255, 122, 89, 0.26);
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--theme-ink);
  background: var(--theme-soft);
}

body:not(.dashboard-body):not(.portal-login-body) .home-main {
  background: transparent;
}

body:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  width: min(1480px, calc(100% - 48px));
  min-height: clamp(620px, 78vh, 820px);
  margin: 26px auto 0;
  border-radius: 34px;
  box-shadow: var(--theme-shadow);
}

body:not(.dashboard-body):not(.portal-login-body) .hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 47, 33, 0.86) 0%, rgba(10, 47, 33, 0.58) 42%, rgba(255, 255, 255, 0.04) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.2));
}

body:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  width: min(650px, calc(100% - 64px));
  padding: clamp(72px, 9vw, 122px) 0 0 clamp(28px, 6vw, 82px);
}

body:not(.dashboard-body):not(.portal-login-body) .hero-copy p,
body:not(.dashboard-body):not(.portal-login-body) .eyebrow {
  color: var(--theme-coral);
  letter-spacing: 0.12em;
}

body:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
  max-width: 9ch;
  color: #ffffff;
  font-size: clamp(3.3rem, 8vw, 7.1rem);
  line-height: 0.94;
  font-weight: 800;
}

body:not(.dashboard-body):not(.portal-login-body) .hero-copy span {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
}

body:not(.dashboard-body):not(.portal-login-body) .hero-actions {
  flex-wrap: wrap;
  gap: 14px;
}

body:not(.dashboard-body):not(.portal-login-body) .hero .ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

body:not(.dashboard-body):not(.portal-login-body) .hero-stats {
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(72px, 7vw, 104px);
  width: min(590px, calc(100% - 40px));
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

body:not(.dashboard-body):not(.portal-login-body) .hero-stats article,
body:not(.dashboard-body):not(.portal-login-body) .hero-stats article:nth-child(2),
body:not(.dashboard-body):not(.portal-login-body) .hero-stats article:nth-child(3) {
  background: rgba(255, 255, 255, 0.94);
  border: 0;
}

body:not(.dashboard-body):not(.portal-login-body) .hero-stats strong {
  color: var(--theme-green-dark);
}

body:not(.dashboard-body):not(.portal-login-body) .hero-stats span {
  color: var(--theme-muted);
}

body:not(.dashboard-body):not(.portal-login-body) .explore-ribbon {
  background: var(--theme-green);
}

body:not(.dashboard-body):not(.portal-login-body) .hero-curve-transition {
  display: none;
}

body:not(.dashboard-body):not(.portal-login-body) .featured-content-section,
body:not(.dashboard-body):not(.portal-login-body) .cards-section-inner,
body:not(.dashboard-body):not(.portal-login-body) .carousel-section,
body:not(.dashboard-body):not(.portal-login-body) .campus-life-home,
body:not(.dashboard-body):not(.portal-login-body) .events-home,
body:not(.dashboard-body):not(.portal-login-body) .featured-videos-home {
  width: min(1480px, calc(100% - 64px));
}

body:not(.dashboard-body):not(.portal-login-body) .featured-content-section,
body:not(.dashboard-body):not(.portal-login-body) .carousel-section,
body:not(.dashboard-body):not(.portal-login-body) .campus-life-home,
body:not(.dashboard-body):not(.portal-login-body) .events-home,
body:not(.dashboard-body):not(.portal-login-body) .featured-videos-home {
  margin-top: clamp(58px, 8vw, 104px);
}

body:not(.dashboard-body):not(.portal-login-body) .section-head h2,
body:not(.dashboard-body):not(.portal-login-body) .center-head h2 {
  color: var(--theme-ink);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

body:not(.dashboard-body):not(.portal-login-body) .center-head p,
body:not(.dashboard-body):not(.portal-login-body) .section-head p {
  color: var(--theme-muted);
}

body:not(.dashboard-body):not(.portal-login-body) .featured-controls button,
body:not(.dashboard-body):not(.portal-login-body) .carousel-controls button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--theme-green-dark);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(14, 79, 53, 0.18);
}

body:not(.dashboard-body):not(.portal-login-body) .featured-carousel {
  border-radius: 30px;
}

body:not(.dashboard-body):not(.portal-login-body) .featured-slide {
  min-height: 430px;
  border-radius: 30px;
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow);
}

body:not(.dashboard-body):not(.portal-login-body) .featured-slide::after {
  background: linear-gradient(90deg, rgba(10, 47, 33, 0.78), rgba(10, 47, 33, 0.14));
}

body:not(.dashboard-body):not(.portal-login-body) .featured-slide div {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--theme-ink);
  backdrop-filter: blur(14px);
}

body:not(.dashboard-body):not(.portal-login-body) .featured-slide h3,
body:not(.dashboard-body):not(.portal-login-body) .featured-slide p {
  color: var(--theme-ink);
}

body:not(.dashboard-body):not(.portal-login-body) .featured-slide p {
  color: var(--theme-muted);
}

body:not(.dashboard-body):not(.portal-login-body) .featured-dots button {
  background: rgba(31, 122, 77, 0.24);
}

body:not(.dashboard-body):not(.portal-login-body) .featured-dots button.active {
  background: var(--theme-coral);
}

body:not(.dashboard-body):not(.portal-login-body) .cards-section {
  margin-top: clamp(62px, 8vw, 110px);
  padding: clamp(54px, 7vw, 86px) 0;
  background: linear-gradient(135deg, #0e4f35 0%, #15734a 52%, #1c8c97 100%);
  color: #ffffff;
}

body:not(.dashboard-body):not(.portal-login-body) .cards-section .section-head h2,
body:not(.dashboard-body):not(.portal-login-body) .cards-section .eyebrow {
  color: #ffffff;
}

body:not(.dashboard-body):not(.portal-login-body) .card-filterbar button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body:not(.dashboard-body):not(.portal-login-body) .card-filterbar button.active,
body:not(.dashboard-body):not(.portal-login-body) .card-filterbar button:hover {
  background: #ffffff;
  color: var(--theme-green-dark);
}

body:not(.dashboard-body):not(.portal-login-body) .managed-card,
body:not(.dashboard-body):not(.portal-login-body) .visual-card,
body:not(.dashboard-body):not(.portal-login-body) .news-card,
body:not(.dashboard-body):not(.portal-login-body) .campus-card,
body:not(.dashboard-body):not(.portal-login-body) .event-card,
body:not(.dashboard-body):not(.portal-login-body) .video-card {
  border: 1px solid var(--theme-line);
  border-radius: 24px;
  background: var(--theme-surface);
  color: var(--theme-ink);
  box-shadow: 0 18px 46px rgba(24, 62, 45, 0.1);
  overflow: hidden;
}

body:not(.dashboard-body):not(.portal-login-body) .managed-card:nth-child(2n),
body:not(.dashboard-body):not(.portal-login-body) .visual-card:nth-child(2n),
body:not(.dashboard-body):not(.portal-login-body) .news-card:nth-child(2n),
body:not(.dashboard-body):not(.portal-login-body) .campus-card:nth-child(2n),
body:not(.dashboard-body):not(.portal-login-body) .event-card:nth-child(2n),
body:not(.dashboard-body):not(.portal-login-body) .video-card:nth-child(2n),
body:not(.dashboard-body):not(.portal-login-body) .managed-card:nth-child(3n),
body:not(.dashboard-body):not(.portal-login-body) .visual-card:nth-child(3n),
body:not(.dashboard-body):not(.portal-login-body) .news-card:nth-child(3n),
body:not(.dashboard-body):not(.portal-login-body) .campus-card:nth-child(3n),
body:not(.dashboard-body):not(.portal-login-body) .event-card:nth-child(3n),
body:not(.dashboard-body):not(.portal-login-body) .video-card:nth-child(3n) {
  background: var(--theme-surface);
}

body:not(.dashboard-body):not(.portal-login-body) .managed-card:hover,
body:not(.dashboard-body):not(.portal-login-body) .visual-card:hover,
body:not(.dashboard-body):not(.portal-login-body) .news-card:hover,
body:not(.dashboard-body):not(.portal-login-body) .campus-card:hover,
body:not(.dashboard-body):not(.portal-login-body) .event-card:hover,
body:not(.dashboard-body):not(.portal-login-body) .video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(24, 62, 45, 0.16);
}

body:not(.dashboard-body):not(.portal-login-body) .managed-card-image {
  height: 230px;
}

body:not(.dashboard-body):not(.portal-login-body) .managed-card-image span,
body:not(.dashboard-body):not(.portal-login-body) .news-card small,
body:not(.dashboard-body):not(.portal-login-body) .event-body small,
body:not(.dashboard-body):not(.portal-login-body) .featured-slide span {
  width: fit-content;
  border-radius: 999px;
  background: #fff2dc;
  color: #9a4b17;
}

body:not(.dashboard-body):not(.portal-login-body) .managed-card-body h3,
body:not(.dashboard-body):not(.portal-login-body) .news-card h3,
body:not(.dashboard-body):not(.portal-login-body) .event-body h3,
body:not(.dashboard-body):not(.portal-login-body) .visual-card h3,
body:not(.dashboard-body):not(.portal-login-body) .campus-card h3,
body:not(.dashboard-body):not(.portal-login-body) .video-card h3,
body:not(.dashboard-body):not(.portal-login-body) .program-strip a strong {
  color: var(--theme-ink);
  font-weight: 700;
}

body:not(.dashboard-body):not(.portal-login-body) .managed-card-body p,
body:not(.dashboard-body):not(.portal-login-body) .news-card p,
body:not(.dashboard-body):not(.portal-login-body) .event-body p,
body:not(.dashboard-body):not(.portal-login-body) .visual-card p,
body:not(.dashboard-body):not(.portal-login-body) .campus-card p,
body:not(.dashboard-body):not(.portal-login-body) .video-card p,
body:not(.dashboard-body):not(.portal-login-body) .program-strip a span {
  color: var(--theme-muted);
}

body:not(.dashboard-body):not(.portal-login-body) .program-strip-section {
  width: min(1480px, calc(100% - 64px));
  align-items: stretch;
  padding: clamp(30px, 4vw, 48px);
  border: 0;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(229, 245, 238, 0.92)),
    linear-gradient(90deg, rgba(248, 200, 78, 0.26), rgba(28, 140, 151, 0.18));
  box-shadow: var(--theme-shadow);
}

body:not(.dashboard-body):not(.portal-login-body) .program-strip-header {
  align-items: flex-start;
  text-align: left;
}

body:not(.dashboard-body):not(.portal-login-body) .program-strip-header .eyebrow {
  color: var(--theme-green-dark);
}

body:not(.dashboard-body):not(.portal-login-body) .program-strip-header a {
  color: var(--theme-teal);
  font-weight: 700;
}

body:not(.dashboard-body):not(.portal-login-body) .program-strip a {
  min-height: 180px;
  border: 1px solid rgba(23, 32, 27, 0.08);
  border-radius: 24px;
  background: #ffffff;
  color: var(--theme-ink);
}

body:not(.dashboard-body):not(.portal-login-body) .program-strip a .icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--theme-soft);
  color: var(--theme-green-dark);
  filter: none;
}

body:not(.dashboard-body):not(.portal-login-body) .carousel-track,
body:not(.dashboard-body):not(.portal-login-body) .videos-grid {
  gap: 24px;
}

body:not(.dashboard-body):not(.portal-login-body) .visual-card img,
body:not(.dashboard-body):not(.portal-login-body) .news-card img,
body:not(.dashboard-body):not(.portal-login-body) .campus-card img,
body:not(.dashboard-body):not(.portal-login-body) .event-image-wrap img {
  filter: saturate(1.04) contrast(1.02);
}

body:not(.dashboard-body):not(.portal-login-body) .date-badge {
  background: var(--theme-coral);
  color: #ffffff;
}

body:not(.dashboard-body):not(.portal-login-body) .featured-videos-home {
  padding-block: clamp(44px, 6vw, 76px);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(14, 79, 53, 0.95), rgba(28, 140, 151, 0.92));
}

body:not(.dashboard-body):not(.portal-login-body) .featured-videos-home .center-head h2 {
  color: #ffffff;
}

body:not(.dashboard-body):not(.portal-login-body) .video-card {
  background: #ffffff;
}

body:not(.dashboard-body):not(.portal-login-body) .text-link {
  color: var(--theme-green-dark);
  font-weight: 800;
}

body:not(.dashboard-body):not(.portal-login-body) .site-footer {
  margin-top: clamp(70px, 8vw, 112px);
  background: #0d3f2c;
  color: rgba(255, 255, 255, 0.84);
}

body:not(.dashboard-body):not(.portal-login-body) .footer-topline {
  background: linear-gradient(90deg, var(--theme-coral), var(--theme-yellow), var(--theme-teal));
}

body:not(.dashboard-body):not(.portal-login-body) .footer-logo {
  border-radius: 18px;
}

body:not(.dashboard-body):not(.portal-login-body) .site-footer h3 {
  color: #ffffff;
  border: 0;
}

body:not(.dashboard-body):not(.portal-login-body) .site-footer .footer-column a,
body:not(.dashboard-body):not(.portal-login-body) .footer-brand p,
body:not(.dashboard-body):not(.portal-login-body) .footer-brand address,
body:not(.dashboard-body):not(.portal-login-body) .footer-newsletter p {
  color: rgba(255, 255, 255, 0.72);
}

body:not(.dashboard-body):not(.portal-login-body) .footer-newsletter {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

body:not(.dashboard-body):not(.portal-login-body) .footer-newsletter input {
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--theme-ink);
}

@media (max-width: 1180px) {
  body:not(.dashboard-body):not(.portal-login-body) .main-nav {
    gap: 16px;
  }

  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    border-radius: 22px;
  }

  body:not(.dashboard-body):not(.portal-login-body) .program-strip-section {
    flex-direction: column;
  }

  body:not(.dashboard-body):not(.portal-login-body) .program-strip-header {
    flex-basis: auto;
  }
}

@media (max-width: 900px) {
  body:not(.dashboard-body):not(.portal-login-body) .utility-bar {
    display: none;
  }

  body:not(.dashboard-body):not(.portal-login-body) .main-nav {
    min-height: 74px;
  }

  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    top: 74px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(24, 62, 45, 0.16);
  }

  body:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero,
  body:not(.dashboard-body):not(.portal-login-body) .featured-content-section,
  body:not(.dashboard-body):not(.portal-login-body) .cards-section-inner,
  body:not(.dashboard-body):not(.portal-login-body) .carousel-section,
  body:not(.dashboard-body):not(.portal-login-body) .campus-life-home,
  body:not(.dashboard-body):not(.portal-login-body) .events-home,
  body:not(.dashboard-body):not(.portal-login-body) .featured-videos-home,
  body:not(.dashboard-body):not(.portal-login-body) .program-strip-section {
    width: min(100% - 32px, 720px);
  }

  body:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    min-height: 720px;
    border-radius: 28px;
  }

  body:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    width: min(100% - 32px, 620px);
    margin-left: 0;
    padding-top: 68px;
    padding-left: 24px;
  }

  body:not(.dashboard-body):not(.portal-login-body) .hero-stats {
    left: 16px;
    right: 16px;
    bottom: 70px;
    grid-template-columns: 1fr;
  }

  body:not(.dashboard-body):not(.portal-login-body) .hero-stats article + article {
    border-top: 1px solid var(--theme-line);
    border-left: 0;
  }

  body:not(.dashboard-body):not(.portal-login-body) .section-head {
    display: grid;
    gap: 18px;
    align-items: start;
  }
}

@media (max-width: 620px) {
  body:not(.dashboard-body):not(.portal-login-body) .brand small {
    display: none;
  }

  body:not(.dashboard-body):not(.portal-login-body) .brand strong {
    font-size: 0.94rem;
  }

  body:not(.dashboard-body):not(.portal-login-body) .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  body:not(.dashboard-body):not(.portal-login-body) .apply-btn {
    padding: 11px 16px;
  }

  body:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    min-height: 700px;
  }

  body:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
    font-size: clamp(2.8rem, 17vw, 4.5rem);
  }

  body:not(.dashboard-body):not(.portal-login-body) .program-strip {
    flex-direction: column;
  }

  body:not(.dashboard-body):not(.portal-login-body) .featured-videos-home {
    border-radius: 26px;
  }
}

/* Homepage landing redesign: full-screen course-style hero from the reference. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) {
  background: #edf3f1;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 120;
  color: #ffffff;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .utility-bar {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
  width: 100%;
  min-height: 74px;
  margin: 0 auto;
  padding: 0 clamp(18px, 6vw, 120px);
  color: #ffffff;
  background: transparent;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand {
  min-width: 240px;
  color: #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand-logo {
  width: 44px;
  height: 44px;
  padding: 3px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand strong {
  color: #ffffff;
  font-size: 1.16rem;
  line-height: 1;
  font-weight: 800;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  letter-spacing: 0;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
  flex: 0 1 auto;
  justify-content: center;
  gap: 0;
  max-width: min(760px, 54vw);
  margin-inline: auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(20, 65, 69, 0.1);
  backdrop-filter: blur(16px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
  min-height: auto;
  padding: 10px clamp(14px, 1.4vw, 24px);
  border-radius: 999px;
  color: #17201b;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown:hover > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown:focus-within > a {
  background: rgba(38, 95, 79, 0.1);
  color: #123f35;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .menu {
  top: 30px;
  border-radius: 8px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions {
  gap: 12px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn {
  min-width: 180px;
  padding: 15px 28px;
  border-radius: 999px;
  background: #e98247;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions button[aria-label="Search"] {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  border-radius: 0 0 0 0;
  box-shadow: none;
  isolation: isolate;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero::after {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media img,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media video {
  object-position: center right;
  filter: saturate(1.05);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 101, 115, 0.9) 0%, rgba(13, 101, 115, 0.76) 35%, rgba(13, 101, 115, 0.48) 64%, rgba(13, 101, 115, 0.22) 100%),
    linear-gradient(90deg, rgba(13, 82, 93, 0.2), rgba(223, 126, 72, 0.1));
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  width: min(1200px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: clamp(150px, 22vh, 220px) 0 0;
  color: #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.88rem;
  font-weight: 600;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #e98247;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.36);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
  max-width: min(980px, 100%);
  margin-bottom: 34px;
  color: #ffffff;
  font-size: clamp(3.25rem, 6.2vw, 6.4rem);
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 800;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy span {
  max-width: 45rem;
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 500;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
  margin-top: 36px;
  gap: 34px;
  align-items: center;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a {
  min-width: 174px;
  padding: 15px 28px;
  border-radius: 999px;
  background: #e98247;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost {
  min-width: auto;
  position: relative;
  padding: 0 0 0 18px;
  border: 0;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #ffffff;
  transform: translateY(-50%);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats {
  left: max(24px, calc((100vw - 1200px) / 2));
  right: auto;
  bottom: 44px;
  z-index: 5;
  width: min(560px, calc(100% - 48px));
  grid-template-columns: repeat(3, 1fr);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .scroll-pop-card {
  opacity: 1;
  transform: none;
  transition: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) *,
body.home-landing:not(.dashboard-body):not(.portal-login-body) *::before,
body.home-landing:not(.dashboard-body):not(.portal-login-body) *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .program-strip a {
  text-align: center;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 24px 28px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-card h3 {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body h3 {
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-image span {
  left: 50%;
  transform: translateX(-50%);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body strong {
  margin-left: auto;
  margin-right: auto;
  background: #df7954;
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section {
  background: linear-gradient(135deg, #265f4f 0%, #2f7467 52%, #4f8e89 100%);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-filterbar button {
  background: rgba(255, 255, 255, 0.1);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-image::after,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card::after,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card::after,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-image-wrap::after {
  opacity: 0.25;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats article,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats article:nth-child(2),
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats article:nth-child(3) {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats strong,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats span {
  color: #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats strong {
  font-size: 1.28rem;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats span {
  font-size: 0.78rem;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .explore-ribbon {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-content-section {
  margin-top: clamp(62px, 7vw, 96px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-carousel {
  overflow: hidden;
  padding: 0;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 2);
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  transform: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-track::-webkit-scrollbar {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide {
  width: auto;
  min-width: 0;
  min-height: 430px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide div {
  left: 50%;
  right: auto;
  bottom: 48px;
  width: min(500px, calc(100% - 96px));
  max-width: 500px;
  padding: 28px;
  text-align: center;
  transform: translateX(-50%);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide span,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body small {
  margin-inline: auto;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide h3 {
  max-width: 13.5ch;
  margin-inline: auto;
  font-size: clamp(1.6rem, 2.2vw, 2.45rem);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide p {
  max-width: 34rem;
  margin-inline: auto;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section .card-grid {
  --card-gap: 24px;
  grid-auto-columns: calc((100% - (var(--card-gap) * 2)) / 3);
  scroll-snap-type: x mandatory;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section .managed-card {
  min-height: 430px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body {
  min-height: 220px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home {
  position: relative;
  width: min(1320px, calc(100% - 96px));
  padding: 86px clamp(28px, 5vw, 72px) 56px;
  border: 1px solid rgba(56, 61, 91, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(249,250,255,0.9)),
    linear-gradient(135deg, #d9d8ee, #eef3f8);
  box-shadow: 0 32px 70px rgba(56, 61, 91, 0.12);
  overflow: hidden;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 48px;
  background:
    radial-gradient(circle at 24px 24px, #e65d5d 0 4px, transparent 5px),
    radial-gradient(circle at 42px 24px, #f3b543 0 4px, transparent 5px),
    radial-gradient(circle at 60px 24px, #45b46a 0 4px, transparent 5px),
    linear-gradient(180deg, #ffffff, #f5f7fb);
  border-bottom: 1px solid rgba(56, 61, 91, 0.08);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home .center-head h2 {
  color: #17201b;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .videos-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 12px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .videos-grid::-webkit-scrollbar {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-card {
  min-width: 0;
  border: 1px solid rgba(56, 61, 91, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(56, 61, 91, 0.1);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-frame {
  border-radius: 8px 8px 0 0;
  background: #eef3f8;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-card h3 {
  padding: 18px 18px 22px;
  color: #17201b;
  font-size: 0.98rem;
}

@media (max-width: 1120px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    gap: clamp(10px, 1.5vw, 18px);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand {
    min-width: 190px;
  }
}

@media (max-width: 900px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
    position: absolute;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    width: 100%;
    padding-inline: 16px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    top: 70px;
    left: 16px;
    right: 16px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(8, 88, 104, 0.97);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
    padding: 12px 0;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn {
    min-width: auto;
    padding-inline: 18px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    min-height: 820px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    width: min(100% - 40px, 720px);
    padding-top: 138px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
    max-width: 11.5ch;
    font-size: clamp(3.4rem, 13vw, 5.8rem);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats {
    left: 20px;
    right: 20px;
    bottom: 34px;
    width: auto;
  }
}

@media (max-width: 620px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand {
    min-width: 0;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand small {
    display: block;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand-logo {
    width: 40px;
    height: 40px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn {
    display: none;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    min-height: 760px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    width: min(100% - 32px, 420px);
    padding-top: 122px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p {
    font-size: 0.72rem;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
    font-size: clamp(2.95rem, 15vw, 4.4rem);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
    gap: 18px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a {
    min-width: 150px;
    padding-inline: 20px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section .card-grid,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .videos-grid {
    grid-auto-columns: calc((100% - 24px) / 2);
  }
}

@media (max-width: 900px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-track,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section .card-grid,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .videos-grid {
    grid-auto-columns: 100%;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide div {
    width: min(480px, calc(100% - 40px));
    bottom: 28px;
    padding: 24px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home {
    width: min(100% - 32px, 720px);
    padding: 76px 18px 38px;
  }
}

/* Dashboard redesign: clean app shell inspired by the shared admin reference. */
.dashboard-body {
  --dash-bg: #e9eaec;
  --dash-shell: #ffffff;
  --dash-main: #f7f8fb;
  --dash-ink: #171d1a;
  --dash-muted: #8a948f;
  --dash-line: #edf0f2;
  --dash-accent: #5f63f2;
  --dash-green: #18c58c;
  --dash-orange: #f6b14f;
  --dash-danger: #ef6b73;
  --dash-shadow: 0 28px 70px rgba(27, 38, 49, 0.12);
  min-height: 100vh;
  padding: 28px;
  background: var(--dash-bg);
  color: var(--dash-ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.dashboard-body::before {
  display: none;
}

.dashboard-shell {
  width: min(1560px, calc(100vw - 56px));
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(23, 29, 26, 0.06);
  border-radius: 18px;
  background: var(--dash-shell);
  box-shadow: var(--dash-shadow);
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: calc(100vh - 56px);
  padding: 24px 16px;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
  background: #ffffff;
  border-right: 1px solid var(--dash-line);
  box-shadow: none;
}

.sidebar-brand {
  min-height: 56px;
  margin: 0 0 24px;
  padding: 0 8px;
}

.sidebar-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.sidebar-brand strong {
  color: var(--dash-ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.sidebar-brand small {
  color: var(--dash-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-sidebar button,
.dashboard-sidebar a {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8a96a3;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
}

.dashboard-sidebar button:hover,
.dashboard-sidebar a:hover {
  background: #f7f9ff;
  color: var(--dash-accent);
}

.dashboard-sidebar button.active,
.dashboard-sidebar .active {
  position: relative;
  background: #f2f6ff;
  color: var(--dash-accent);
  box-shadow: none;
}

.dashboard-sidebar button.active::after,
.dashboard-sidebar .active::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 3px;
  background: var(--dash-accent);
}

.dashboard-main {
  min-width: 0;
  padding: 24px 28px 96px;
  background: var(--dash-main);
}

.dashboard-topbar {
  min-height: 54px;
  align-items: center;
  margin: 0 0 22px;
}

.dashboard-topbar::before {
  content: "Search or type a command";
  flex: 0 1 360px;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 16px 0 38px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18px 50%, #aeb7c0 0 4px, transparent 5px),
    #ffffff;
  color: #a4acb5;
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-topbar h1 {
  margin: 0;
  color: var(--dash-ink);
  font-family: inherit;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: none;
}

.dashboard-topbar > div {
  order: -1;
  flex: 1;
}

.dashboard-topbar button,
.panel-heading button,
.dashboard-savebar button,
.action-btn,
.bulk-actions button,
.card-admin-actions button,
.admin-actions button {
  border: 0;
  border-radius: 8px;
  background: var(--dash-accent);
  color: #ffffff;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: none;
}

#dashboard-logout {
  background: #101827;
}

.dashboard-panel {
  display: none;
}

.dashboard-panel.active {
  display: block;
}

.dashboard-panel > h2,
.panel-heading > h2 {
  margin: 0 0 18px;
  color: var(--dash-ink);
  font-family: inherit;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: none;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: #ffffff;
}

.metric-grid article {
  min-height: 96px;
  padding: 22px;
  border: 0;
  border-right: 1px solid var(--dash-line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  text-align: center;
}

.metric-grid article:last-child {
  border-right: 0;
}

.metric-grid small {
  color: var(--dash-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--dash-green);
  font-size: 1.8rem;
  font-weight: 800;
}

.welcome-card,
.admin-panel,
.editor-card,
.footer-editor-card,
.long-form-card,
.card-admin-form,
.card-admin-row,
.audit-table div,
.repeat-editor > section {
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--dash-ink);
  box-shadow: none;
}

.welcome-card {
  margin-top: 18px;
  padding: 24px;
}

.welcome-card .eyebrow,
.dashboard-panel .eyebrow {
  color: var(--dash-accent);
}

.welcome-card h2 {
  color: var(--dash-ink);
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 800;
}

.welcome-card p,
.admin-panel p,
.editor-card p,
.footer-editor-card p,
.card-admin-row p,
.repeat-editor p,
.audit-table span,
.audit-table time {
  color: var(--dash-muted);
  font-weight: 600;
}

.repeat-editor {
  gap: 16px;
}

.editor-card,
.footer-editor-card,
.long-form-card {
  padding: 24px;
}

.editor-card h3,
.footer-editor-card h3,
.long-form-card h3,
.card-admin-row h3 {
  color: var(--dash-ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.admin-panel label,
.editor-card label,
.card-admin-form label,
.footer-editor-card label,
.repeat-editor label {
  color: var(--dash-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea,
.editor-card input,
.editor-card select,
.editor-card textarea,
.card-admin-form input,
.card-admin-form select,
.card-admin-form textarea,
.footer-editor-card input,
.footer-editor-card select,
.footer-editor-card textarea,
.repeat-editor input,
.repeat-editor select,
.repeat-editor textarea,
.card-admin-toolbar input,
.card-admin-toolbar select {
  border: 1px solid #e2e8ee;
  border-radius: 8px;
  background: #ffffff;
  color: var(--dash-ink);
  box-shadow: none;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-panel input:focus,
.admin-panel select:focus,
.admin-panel textarea:focus,
.editor-card input:focus,
.editor-card select:focus,
.editor-card textarea:focus,
.card-admin-form input:focus,
.card-admin-form select:focus,
.card-admin-form textarea:focus,
.footer-editor-card input:focus,
.footer-editor-card select:focus,
.footer-editor-card textarea:focus,
.repeat-editor input:focus,
.repeat-editor select:focus,
.repeat-editor textarea:focus,
.card-admin-toolbar input:focus,
.card-admin-toolbar select:focus {
  border-color: var(--dash-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(95, 99, 242, 0.1);
}

.upload-preview img {
  border-radius: 10px;
  box-shadow: none;
}

.record-tabs {
  gap: 8px;
}

.record-tabs button {
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--dash-muted);
}

.record-tabs button.active {
  background: var(--dash-accent);
  color: #ffffff;
}

.card-admin-toolbar {
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: #ffffff;
}

.card-admin-filters {
  gap: 10px;
}

.bulk-actions {
  gap: 8px;
}

.bulk-actions button:nth-child(2) {
  background: var(--dash-orange);
}

.bulk-actions button:nth-child(3),
.danger,
.card-admin-row .danger {
  background: var(--dash-danger);
  color: #ffffff;
}

.card-admin-table {
  gap: 10px;
}

.card-admin-row {
  grid-template-columns: auto 64px minmax(220px, 1fr) minmax(100px, .4fr) auto auto;
  gap: 14px;
  padding: 14px;
}

.card-admin-row img {
  width: 64px;
  height: 52px;
  border-radius: 8px;
}

.status-pill {
  border-radius: 999px;
  background: #effbf6;
  color: #15966e;
  font-size: 0.72rem;
}

.audit-table {
  gap: 10px;
}

.audit-table div {
  grid-template-columns: minmax(240px, 1fr) minmax(180px, .5fr) auto;
  padding: 14px 16px;
}

.dashboard-savebar {
  position: fixed;
  left: max(286px, calc((100vw - 1560px) / 2 + 258px));
  right: max(56px, calc((100vw - 1560px) / 2 + 28px));
  bottom: 44px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: none;
}

.dashboard-savebar > * {
  pointer-events: auto;
}

.save-status {
  margin-right: auto;
  padding: 12px 16px;
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--dash-muted);
  box-shadow: 0 16px 40px rgba(27, 38, 49, 0.08);
}

.dashboard-savebar .secondary {
  background: #ffffff;
  color: var(--dash-ink);
  border: 1px solid var(--dash-line);
}

.footer-editor-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.dashboard-login {
  background: var(--dash-bg);
}

.dashboard-login .admin-panel {
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--dash-shadow);
}

.dashboard-login .admin-panel h1,
.dashboard-login .admin-panel .eyebrow,
.dashboard-login .admin-panel label {
  color: var(--dash-ink);
}

@media (max-width: 1180px) {
  .dashboard-body {
    padding: 0;
  }

  .dashboard-shell {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }

  .dashboard-sidebar {
    height: 100vh;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid article:nth-child(2) {
    border-right: 0;
  }

  .metric-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--dash-line);
  }

  .dashboard-savebar {
    left: 258px;
    right: 24px;
    bottom: 24px;
  }
}

@media (max-width: 900px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--dash-line);
  }

  .sidebar-brand {
    flex: 0 0 190px;
    margin: 0;
  }

  .dashboard-sidebar button,
  .dashboard-sidebar a {
    flex: 0 0 auto;
  }

  .dashboard-main {
    padding: 20px 16px 112px;
  }

  .dashboard-topbar {
    display: grid;
  }

  .dashboard-topbar::before {
    order: 2;
    flex-basis: auto;
    width: 100%;
  }

  .card-admin-row,
  .audit-table div {
    grid-template-columns: 1fr;
  }

  .dashboard-savebar {
    left: 16px;
    right: 16px;
    bottom: 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .metric-grid,
  .footer-editor-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid article,
  .metric-grid article:nth-child(2),
  .metric-grid article:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--dash-line);
  }

  .metric-grid article:last-child {
    border-bottom: 0;
  }
}

/* Homepage hero redesign: keeps the existing campus background image. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) {
  background: #f4f7f5;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 120;
  padding-top: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
  width: min(1680px, calc(100% - 64px));
  min-height: 68px;
  margin: 0 auto;
  padding: 0;
  gap: 24px;
  background: transparent;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand {
  min-width: 280px;
  gap: 12px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.96);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand strong {
  color: #ffffff;
  font-size: 1.18rem;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.68rem;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
  max-width: min(780px, 58vw);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 54px rgba(11, 47, 54, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
  min-height: 42px;
  padding: 10px clamp(14px, 1.25vw, 24px);
  color: #14241f;
  font-size: 0.84rem;
  border-radius: 999px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown:hover > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown:focus-within > a {
  background: rgba(14, 85, 79, 0.12);
  color: #0e554f;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn {
  min-width: 156px;
  padding: 15px 26px;
  border-radius: 999px;
  background: #f27a3d;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 18px 34px rgba(120, 53, 24, 0.22);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media img,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media video {
  object-position: center right;
  filter: saturate(1.08) contrast(1.03);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 72, 83, 0.93) 0%, rgba(9, 101, 113, 0.78) 36%, rgba(9, 101, 113, 0.34) 67%, rgba(13, 37, 34, 0.1) 100%),
    linear-gradient(180deg, rgba(10, 33, 32, 0.22) 0%, rgba(10, 33, 32, 0.1) 52%, rgba(10, 33, 32, 0.64) 100%);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  width: min(780px, calc(100% - 80px));
  margin: 0 0 0 max(32px, calc((100vw - 1680px) / 2));
  padding: 132px 0 128px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f27a3d;
  box-shadow: 0 0 0 5px rgba(242, 122, 61, 0.16);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
  max-width: 9.5ch;
  margin: 0 0 22px;
  color: #ffffff;
  font-size: clamp(4.4rem, 8.2vw, 8.8rem);
  line-height: 0.9;
  font-weight: 900;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy span {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.35vw, 1.24rem);
  line-height: 1.72;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
  margin-top: 34px;
  gap: 18px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 168px;
  padding: 15px 26px;
  border-radius: 999px;
  background: #f27a3d;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 22px 42px rgba(85, 43, 22, 0.28);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost {
  min-width: 0;
  padding: 0 0 0 22px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost::before {
  border-left-color: #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats {
  left: max(32px, calc((100vw - 1680px) / 2));
  right: auto;
  bottom: 28px;
  width: min(660px, calc(100% - 64px));
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats article,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats article:nth-child(2),
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats article:nth-child(3) {
  padding: 22px 26px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats article:last-child {
  border-right: 0;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats strong {
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .explore-ribbon {
  display: none;
}

@media (max-width: 1120px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    width: min(100% - 32px, 920px);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 88px;
    max-width: none;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav.open {
    display: grid;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a {
    width: 100%;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    width: min(720px, calc(100% - 56px));
    margin-left: 28px;
  }
}

@media (max-width: 700px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
    padding-top: 12px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    width: min(100% - 24px, 560px);
    gap: 12px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand {
    min-width: 0;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand small {
    display: none;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn {
    display: none;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    min-height: 780px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media img,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media video {
    object-position: 66% center;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-overlay {
    background:
      linear-gradient(90deg, rgba(4, 72, 83, 0.94), rgba(9, 101, 113, 0.78)),
      linear-gradient(180deg, rgba(10, 33, 32, 0.16), rgba(10, 33, 32, 0.68));
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    width: min(100% - 32px, 480px);
    margin: 0 auto;
    padding-top: 126px;
    padding-bottom: 260px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
    max-width: 9ch;
    font-size: clamp(3.2rem, 17vw, 4.8rem);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy span {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
    display: grid;
    gap: 14px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a {
    width: 100%;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost {
    width: auto;
    justify-self: center;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats {
    left: 16px;
    right: 16px;
    bottom: 22px;
    width: auto;
    grid-template-columns: 1fr;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats article,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats article:nth-child(2),
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats article:nth-child(3) {
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats article:last-child {
    border-bottom: 0;
  }
}

/* User-requested hero wording/card adjustment. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  width: min(850px, calc(100% - 80px));
  margin-left: max(56px, calc((100vw - 1680px) / 2 + 120px));
  padding-top: clamp(250px, 50vh, 430px);
  padding-bottom: 150px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy span {
  max-width: 820px;
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.15rem, 1.55vw, 1.55rem);
  font-weight: 800;
  line-height: 1.55;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
  margin-top: 34px;
  gap: 28px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a {
  min-width: 174px;
  min-height: 52px;
  padding: 16px 28px;
  border-radius: 999px;
  background: #fb7c3f;
  font-size: 0.84rem;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost {
  min-width: 0;
  padding-left: 22px;
  background: transparent;
  color: #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats {
  display: none;
}

@media (max-width: 900px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    width: min(100% - 48px, 720px);
    margin: 0 auto;
    padding-top: 220px;
    padding-bottom: 100px;
  }
}

@media (max-width: 620px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    width: min(100% - 32px, 480px);
    padding-top: 170px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy span {
    font-size: 1.05rem;
    line-height: 1.55;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
    gap: 12px;
  }
}

/* Graduation board redesign inspired by the supplied reference. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) {
  background: #ff6540;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body)::before {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
  top: 16px;
  left: 50%;
  right: auto;
  width: min(1660px, calc(100% - 48px));
  padding: 0;
  transform: translateX(-50%);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
  width: 100%;
  min-height: 108px;
  padding: 0 138px;
  color: #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand {
  min-width: 270px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand strong {
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand small {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
  max-width: none;
  margin: 0 auto;
  padding: 0;
  gap: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
  min-height: auto;
  padding: 0;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown:hover > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown:focus-within > a {
  background: transparent;
  color: #ffd756;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions {
  min-width: 270px;
  justify-content: flex-end;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn {
  min-width: 150px;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: #ff6848;
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn::before {
  content: "Search";
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn {
  font-size: 0;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn::after {
  content: "\2315";
  float: right;
  margin-left: 30px;
  font-size: 1rem;
  font-weight: 400;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn::before {
  font-size: 0.86rem;
  font-weight: 800;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions button {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  width: min(1660px, calc(100% - 48px));
  min-height: 820px;
  margin: 16px auto 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(47, 84, 143, 0.56) 72% 100%),
    #416aa8;
  box-shadow: 0 26px 34px rgba(88, 42, 22, 0.34);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero::before {
  content: "";
  position: absolute;
  left: -48px;
  bottom: 124px;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background: rgba(47, 88, 153, 0.8);
  transform: rotate(45deg);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 148px;
  width: 220px;
  height: 54px;
  display: block;
  border-radius: 999px;
  background: rgba(71, 111, 177, 0.78);
  transform: rotate(45deg);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-overlay {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media {
  left: 140px;
  top: 292px;
  right: auto;
  bottom: auto;
  width: min(620px, 38vw);
  height: 315px;
  z-index: 3;
  overflow: visible;
  border-radius: 26px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media::before {
  content: "";
  position: absolute;
  left: 72px;
  bottom: -230px;
  width: 204px;
  height: 204px;
  border-radius: 50%;
  background: #ffd45b;
  z-index: -1;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media::after {
  content: "";
  position: absolute;
  left: 408px;
  bottom: -58px;
  width: 92px;
  height: 92px;
  border: 10px solid #ff6848;
  border-radius: 50%;
  z-index: 4;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media img,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.08);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  width: min(650px, 42vw);
  margin: 0 140px 0 auto;
  padding: 290px 0 0;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
  display: block;
  max-width: 620px;
  margin: 0 0 34px;
  color: #ffffff;
  font-size: clamp(3.4rem, 4.5vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 span {
  display: block;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 span:nth-child(2) {
  color: #ffd756;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy span,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.75;
  text-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
  margin-top: 28px;
  gap: 20px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a {
  min-width: 196px;
  min-height: 42px;
  padding: 0 28px;
  border-radius: 999px;
  background: #ffffff;
  color: #416aa8;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost {
  min-width: 196px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost::before {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor-dots {
  left: 640px;
  top: 208px;
  width: 36px;
  height: 48px;
  background:
    radial-gradient(circle, #ffd756 0 4px, transparent 5px) 0 0 / 22px 22px,
    radial-gradient(circle, #ffd756 0 4px, transparent 5px) 11px 11px / 22px 22px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor-circle {
  left: 238px;
  top: 276px;
  width: 38px;
  height: 38px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor-circle::before,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor-circle::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  width: 9px;
  height: 38px;
  border-radius: 999px;
  background: #46d0bd;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor-circle::after {
  transform: rotate(90deg);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor-ring {
  right: 120px;
  bottom: 126px;
  width: 40px;
  height: 40px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor-ring::before,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor-ring::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  width: 10px;
  height: 40px;
  border-radius: 999px;
  background: #46d0bd;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor-ring::after {
  transform: rotate(90deg);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .explore-ribbon {
  display: none;
}

@media (max-width: 1180px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    width: min(100% - 28px, 960px);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    padding: 0 44px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    display: none;
    position: absolute;
    left: 28px;
    right: 28px;
    top: 92px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav.open {
    display: grid;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
    color: #203456;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions button {
    display: inline-grid;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    min-height: 900px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media {
    left: 56px;
    top: 250px;
    width: min(460px, calc(100% - 112px));
    height: 260px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media::after {
    left: auto;
    right: 52px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    width: min(620px, calc(100% - 112px));
    margin: 0 auto;
    padding-top: 560px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor-dots {
    left: auto;
    right: 90px;
  }
}

@media (max-width: 700px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    width: min(100% - 16px, 560px);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    min-height: 86px;
    padding: 0 18px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand strong {
    font-size: 1rem;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn {
    display: none;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    min-height: 840px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media {
    left: 24px;
    top: 150px;
    width: calc(100% - 48px);
    height: 210px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media::before {
    left: 22px;
    bottom: -110px;
    width: 132px;
    height: 132px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media::after {
    right: 34px;
    bottom: -42px;
    width: 70px;
    height: 70px;
    border-width: 8px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    width: calc(100% - 48px);
    padding-top: 420px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
    font-size: clamp(2.65rem, 12vw, 3.6rem);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
    grid-template-columns: 1fr;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost {
    width: 100%;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor {
    display: none;
  }
}

/* Calm color pass: stop the orange from flooding the page. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) {
  background: #eef3ef;
  color: #13211c;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .home-main {
  background:
    linear-gradient(180deg, #eef3ef 0, #f7f8f4 900px, #eef3ef 100%);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(41, 78, 125, 0.42) 72% 100%),
    #355f8f;
  box-shadow: 0 24px 42px rgba(31, 53, 73, 0.2);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a {
  background: #e7683d;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a {
  color: #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost {
  background: transparent;
  color: #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 span:nth-child(2) {
  color: #f2cf63;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor-dots {
  background:
    radial-gradient(circle, #f2cf63 0 4px, transparent 5px) 0 0 / 22px 22px,
    radial-gradient(circle, #f2cf63 0 4px, transparent 5px) 11px 11px / 22px 22px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media::before {
  background: #e8c85f;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media::after {
  border-color: #e7683d;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home {
  background: #ffffff;
  box-shadow: 0 24px 58px rgba(26, 43, 55, 0.1);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .events-home,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news {
  width: 100%;
  max-width: none;
  margin-top: clamp(64px, 7vw, 100px);
  padding: clamp(54px, 6vw, 86px) max(32px, calc((100vw - 1500px) / 2));
  background: #f7f8f4;
  border: 0;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-head,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .events-home .center-head {
  color: #13211c;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-head .eyebrow,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .events-home .eyebrow {
  color: #426d64;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .carousel-controls button,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-controls button {
  background: #285f52;
  color: #ffffff;
}

@media (max-width: 700px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .events-home,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .news {
    padding-inline: 18px;
  }
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 620px;
  margin: 0;
  padding: clamp(72px, 8vw, 112px) max(32px, calc((100vw - 1500px) / 2));
  color: #111d19;
  background: #edf2ef;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/hero-campus.jpg") center / cover no-repeat;
  filter: grayscale(0.15) saturate(0.82);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(244, 247, 245, 0.94), rgba(244, 247, 245, 0.9)),
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.7), transparent 34%);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head {
  max-width: 860px;
  margin: 0 auto clamp(58px, 7vw, 92px);
  text-align: center;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head .eyebrow {
  margin-bottom: 18px;
  color: #111d19;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head h2 {
  max-width: 760px;
  margin: 0 auto 20px;
  color: #111d19;
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  line-height: 1.08;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head span {
  display: block;
  width: 46px;
  height: 4px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: #e7683d;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head p:last-child {
  max-width: 760px;
  margin: 0 auto;
  color: #233c35;
  font-weight: 700;
  line-height: 1.75;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 76px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid article {
  display: grid;
  justify-items: center;
  text-align: center;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid #e7683d;
  border-radius: 50%;
  color: #e7683d;
  font-size: 0.82rem;
  font-weight: 900;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid h3 {
  margin: 0 0 10px;
  color: #111d19;
  font-size: 1rem;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid p {
  max-width: 320px;
  margin: 0;
  color: #33443f;
  font-weight: 600;
  line-height: 1.75;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid a {
  min-width: 86px;
  margin-top: 28px;
  padding: 11px 18px;
  border-radius: 6px;
  background: #e7683d;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid {
    grid-template-columns: 1fr;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid p {
    max-width: 520px;
  }
}

@media (max-width: 620px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-section {
    padding-inline: 18px;
  }
}

/* Calm homepage typography below the landing hero. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-content-section,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .program-strip-section,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .carousel-section,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-life-home,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .events-home,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news {
  --home-section-title: clamp(1.75rem, 2.6vw, 3rem);
  --home-card-title: clamp(1.25rem, 1.75vw, 2rem);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .section-head {
  margin-bottom: clamp(24px, 4vw, 44px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .section-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .center-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-management-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .program-strip-header h2 {
  max-width: 720px;
  font-size: var(--home-section-title);
  line-height: 1.12;
  letter-spacing: 0;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .section-head .eyebrow,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .center-head .eyebrow,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-management-head .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body h3 {
  font-size: var(--home-card-title);
  line-height: 1.16;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide h3 {
  max-width: 18ch;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body p {
  font-size: 0.95rem;
  line-height: 1.65;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide div {
  width: min(440px, calc(100% - 80px));
  padding: 24px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-content-section {
  margin-top: clamp(48px, 6vw, 82px);
}

@media (max-width: 700px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-content-section,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .program-strip-section,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .carousel-section,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-life-home,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .events-home,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .news {
    --home-section-title: clamp(1.55rem, 8vw, 2.15rem);
    --home-card-title: clamp(1.15rem, 6vw, 1.55rem);
  }
}

/* Global homepage heading reduction pass. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) {
  --home-section-title: clamp(1.35rem, 2vw, 2.15rem);
  --home-card-title: clamp(1.05rem, 1.25vw, 1.38rem);
  --home-small-title: clamp(0.95rem, 1.05vw, 1.18rem);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) main h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .section-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .center-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-management-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head h2 {
  font-size: var(--home-section-title);
  line-height: 1.14;
  max-width: 760px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head h2 {
  max-width: 640px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .program-strip-header h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .program-strip-header .eyebrow {
  font-size: clamp(1.25rem, 1.9vw, 2rem);
  line-height: 1.12;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-card h3 {
  font-size: var(--home-card-title);
  line-height: 1.16;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body h3 {
  max-width: 18rem;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .program-strip a strong {
  font-size: var(--home-small-title);
  line-height: 1.2;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .eyebrow,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .section-head .eyebrow,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-management-head .eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

@media (max-width: 700px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) {
    --home-section-title: clamp(1.25rem, 6.4vw, 1.8rem);
    --home-card-title: clamp(1rem, 5vw, 1.28rem);
    --home-small-title: clamp(0.95rem, 4.5vw, 1.1rem);
  }
}

/* Edge-to-edge landing page pass. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) {
  background: #355f8f;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  transform: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
  width: min(1500px, calc(100% - 96px));
  margin: 0 auto;
  padding: 0;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media {
  left: max(64px, calc((100vw - 1500px) / 2));
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  margin-right: max(64px, calc((100vw - 1500px) / 2));
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero::before {
  left: -52px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero::after {
  right: -34px;
}

@media (max-width: 1180px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    width: 100%;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    width: calc(100% - 48px);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media {
    left: 56px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 700px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    width: 100%;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    width: calc(100% - 28px);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media {
    left: 24px;
  }
}

/* Sitewide font and modest type scale. */
:root {
  --site-font: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  --type-h1: clamp(1.9rem, 3.2vw, 3rem);
  --type-h2: clamp(1.45rem, 2.2vw, 2.15rem);
  --type-h3: clamp(1.05rem, 1.35vw, 1.35rem);
  --type-body: 0.96rem;
}

body,
button,
input,
select,
textarea {
  font-family: var(--site-font);
  font-size: var(--type-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand strong,
nav,
.apply-btn,
.visual-card h3,
.news-card h3,
.event-body h3,
.managed-card-body h3,
.video-card h3,
.campus-card h3,
.program-strip a strong {
  font-family: var(--site-font);
  letter-spacing: 0;
}

h1,
.subpage h1,
.portal-hero h1,
.managed-page-intro h1 {
  font-size: var(--type-h1);
  line-height: 1.12;
  font-weight: 800;
}

h2,
.section-head h2,
.center-head h2,
.card-management-head h2,
.dashboard-panel > h2,
.panel-heading > h2 {
  font-size: var(--type-h2);
  line-height: 1.16;
  font-weight: 800;
}

h3,
.visual-card h3,
.news-card h3,
.event-body h3,
.managed-card-body h3,
.video-card h3,
.campus-card h3,
.program-strip a strong,
.site-footer h3 {
  font-size: var(--type-h3);
  line-height: 1.22;
  font-weight: 800;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
  font-family: var(--site-font);
  font-size: clamp(2.6rem, 3.7vw, 4.2rem);
  line-height: 1.02;
  font-weight: 800;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy span,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle {
  font-family: var(--site-font);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.65;
  font-weight: 600;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) {
  --home-section-title: clamp(1.25rem, 1.8vw, 1.85rem);
  --home-card-title: clamp(1rem, 1.12vw, 1.2rem);
  --home-small-title: clamp(0.92rem, 1vw, 1.05rem);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) main h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .section-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .center-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-management-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head h2 {
  font-size: var(--home-section-title);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-card h3 {
  font-size: var(--home-card-title);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .program-strip a strong {
  font-size: var(--home-small-title);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .program-strip-header h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .program-strip-header .eyebrow {
  font-size: clamp(1.15rem, 1.55vw, 1.6rem);
}

@media (max-width: 700px) {
  :root {
    --type-h1: clamp(1.6rem, 7vw, 2.2rem);
    --type-h2: clamp(1.25rem, 5.8vw, 1.65rem);
    --type-h3: clamp(1rem, 4.8vw, 1.18rem);
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }
}

/* Final compact typography pass. */
:root {
  --type-h1: clamp(1.55rem, 2.4vw, 2.35rem);
  --type-h2: clamp(1.18rem, 1.7vw, 1.55rem);
  --type-h3: clamp(0.95rem, 1.05vw, 1.12rem);
  --type-body: 0.9rem;
}

body {
  font-size: var(--type-body);
}

.main-nav nav > a,
.dropdown > a,
.apply-btn,
.hero-actions a,
.managed-card-body strong,
.card-filterbar button,
.filters button,
.program-strip a span,
.text-link {
  font-size: 0.82rem;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) {
  --home-section-title: clamp(1.1rem, 1.45vw, 1.42rem);
  --home-card-title: clamp(0.92rem, 1vw, 1.08rem);
  --home-small-title: clamp(0.86rem, 0.95vw, 0.98rem);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
  font-size: clamp(2.15rem, 3vw, 3.25rem);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy span,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head p:last-child,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid p {
  font-size: 0.86rem;
  line-height: 1.55;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) main h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .section-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .center-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-management-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home .center-head h2 {
  font-size: var(--home-section-title);
  line-height: 1.18;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-card h3 {
  font-size: var(--home-card-title);
  line-height: 1.2;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body h3 {
  max-width: 18rem;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body small,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide span,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-image span,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card small {
  font-size: 0.66rem;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body {
  padding: 22px 18px 24px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .events-grid {
  gap: 20px;
}

@media (max-width: 700px) {
  :root {
    --type-h1: clamp(1.35rem, 6vw, 1.85rem);
    --type-h2: clamp(1.08rem, 5vw, 1.35rem);
    --type-h3: clamp(0.92rem, 4.4vw, 1.05rem);
    --type-body: 0.88rem;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) {
    --home-section-title: clamp(1.05rem, 5.2vw, 1.3rem);
    --home-card-title: clamp(0.92rem, 4.8vw, 1.04rem);
  }
}

/* Match homepage sections to the restrained Why Choose Us scale. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-content-section .section-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section .card-management-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .carousel-section .section-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-life-home .center-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .events-home .center-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home .center-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news .section-head h2 {
  font-size: clamp(1.1rem, 1.45vw, 1.42rem) !important;
  line-height: 1.18 !important;
  font-weight: 800;
  max-width: 560px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section .managed-card-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .school-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-card h3 {
  font-size: clamp(0.92rem, 1vw, 1.08rem) !important;
  line-height: 1.22 !important;
  font-weight: 800;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section .managed-card-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-card h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card h3 {
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-content-section .eyebrow,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section .eyebrow,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .carousel-section .eyebrow,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news .eyebrow {
  font-size: 0.62rem !important;
  letter-spacing: 0.13em;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card span,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-life-home p {
  font-size: 0.84rem !important;
  line-height: 1.55;
}

@media (max-width: 700px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-content-section .section-head h2,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section .card-management-head h2,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .carousel-section .section-head h2,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-life-home .center-head h2,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .events-home .center-head h2,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home .center-head h2,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .news .section-head h2 {
    font-size: clamp(1rem, 5vw, 1.25rem) !important;
  }
}

/* Faded landing image and About Us section. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  background:
    linear-gradient(90deg, rgba(35, 78, 124, 0.9), rgba(35, 78, 124, 0.82)),
    linear-gradient(135deg, transparent 0 72%, rgba(26, 54, 91, 0.42) 72% 100%),
    url("../assets/hero-campus.jpg") center / cover no-repeat;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero::before {
  background: rgba(35, 78, 124, 0.5);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero::after {
  background: rgba(88, 124, 181, 0.48);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 0.9fr);
  gap: clamp(46px, 8vw, 112px);
  align-items: center;
  width: 100%;
  padding: clamp(74px, 8vw, 118px) max(48px, calc((100vw - 1320px) / 2));
  background: #eef7f5;
  color: #20344d;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-media {
  margin: 0;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 560px;
  object-fit: cover;
  border-radius: 22px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-copy {
  max-width: 560px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-kicker {
  margin: 0 0 24px;
  color: #18314a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-copy h2 {
  margin: 0 0 22px;
  color: #20344d;
  font-size: clamp(1.45rem, 2.4vw, 2.4rem);
  line-height: 1.22;
  font-weight: 800;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-copy p {
  margin: 0 0 18px;
  color: #40546e;
  font-size: 0.92rem;
  line-height: 1.75;
  font-weight: 500;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 18px;
  padding: 0 28px;
  border: 1px solid #20344d;
  border-radius: 999px;
  color: #20344d;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-section {
    grid-template-columns: 1fr;
    padding-inline: 24px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-copy {
    max-width: 680px;
  }
}

@media (max-width: 620px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-media img {
    aspect-ratio: 4 / 3;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-copy h2 {
    font-size: clamp(1.2rem, 6vw, 1.55rem);
  }
}

/* Subpage readability pass: avoid pale text on pale backgrounds. */
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) {
  background: #eef7f4;
  color: #14231f;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage {
  width: min(1180px, calc(100% - 48px));
  color: #14231f;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .eyebrow,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) #page-eyebrow {
  color: #d85f3a;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage h1,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage h2,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage h3 {
  color: #14231f;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .page-body,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections p,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage p {
  color: #40524d;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid a,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 35, 31, 0.1);
  color: #14231f;
  box-shadow: 0 18px 44px rgba(23, 48, 42, 0.08);
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid a:hover {
  background: #ffffff;
  color: #0f554a;
}

/* Header search card. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 188px;
  height: 44px;
  padding: 0 10px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(14, 34, 58, 0.16);
}

.site-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #13231f;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.site-search input::placeholder {
  color: #536862;
  opacity: 1;
}

.site-search button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e7683d;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.85rem;
}

.site-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 200;
  width: min(320px, 82vw);
  display: none;
  padding: 8px;
  border: 1px solid rgba(20, 35, 31, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(14, 34, 58, 0.2);
}

.site-search.search-open .site-search-results {
  display: grid;
  gap: 4px;
}

.site-search-results a {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #13231f;
  text-decoration: none;
}

.site-search-results a:hover {
  background: #eef7f4;
}

.site-search-results strong {
  font-size: 0.82rem;
}

.site-search-results span,
.site-search-results p {
  margin: 0;
  color: #52655f;
  font-size: 0.74rem;
  line-height: 1.4;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search {
  background: rgba(255, 255, 255, 0.96);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn {
  display: none;
}

@media (max-width: 700px) {
  .site-search {
    width: 150px;
    height: 40px;
  }
}

/* Landing-adjacent programmes catalogue. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .program-strip-duplicate {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes {
  width: min(1180px, calc(100% - 48px));
  margin: -34px auto 0;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  border: 1px solid rgba(29, 82, 71, 0.1);
  border-radius: 18px;
  background: rgba(240, 250, 247, 0.96);
  box-shadow: 0 22px 54px rgba(24, 59, 52, 0.12);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip-header {
  padding: 0;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip-header h2 {
  margin: 0 0 12px;
  color: #075949;
  font-size: clamp(1.05rem, 1.4vw, 1.45rem) !important;
  line-height: 1.1;
  letter-spacing: 0;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip-header a {
  color: #08716f;
  font-size: 0.82rem;
  line-height: 1.45;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip a {
  min-height: 130px;
  padding: 22px 18px;
  border: 1px solid rgba(29, 82, 71, 0.08);
  border-radius: 16px;
  background: #ffffff;
  color: #14231f;
  box-shadow: 0 14px 34px rgba(24, 59, 52, 0.08);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip a .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e0f4ed;
  font-size: 1.35rem;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip a strong {
  color: #14231f;
  font-size: 0.92rem !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip a span {
  color: #52655f;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip {
    grid-template-columns: 1fr;
  }
}

/* Give the landing catalogue breathing room below the hero. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes {
  margin-top: 46px;
  margin-bottom: 56px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-section {
  padding-top: clamp(86px, 9vw, 128px);
}

@media (max-width: 900px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes {
    margin-top: 30px;
    margin-bottom: 42px;
  }
}

/* Full-page admin dashboard shell. */
.dashboard-body {
  min-height: 100vh;
  padding: 0 !important;
  margin: 0;
  background: #f5f6fa;
  overflow-x: hidden;
}

.dashboard-body::before {
  display: none;
}

.dashboard-shell {
  width: 100% !important;
  min-height: 100vh !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff;
  box-shadow: none !important;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh !important;
  padding: 28px 18px;
  border-right: 1px solid #e8edf2;
  background: #ffffff;
  overflow-y: auto;
}

.dashboard-main {
  min-width: 0;
  min-height: 100vh;
  padding: 34px 42px 112px !important;
  background: #f6f7fb;
}

.dashboard-topbar {
  max-width: 1540px;
  margin-inline: auto;
}

.dashboard-panel.active {
  max-width: 1540px;
  margin-inline: auto;
}

.metric-grid,
.welcome-card,
.admin-panel,
.card-admin-toolbar,
.card-admin-row,
.repeat-editor > section,
.editor-card,
.footer-editor-card,
.long-form-card {
  border-color: #e5ebf0;
}

.dashboard-savebar {
  left: 290px !important;
  right: 42px !important;
  bottom: 28px !important;
  max-width: none;
}

@media (max-width: 900px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto !important;
  }

  .dashboard-main {
    padding: 24px 18px 120px !important;
  }

  .dashboard-savebar {
    left: 18px !important;
    right: 18px !important;
  }
}

/* Use the full dashboard width for content-heavy management panels. */
.dashboard-panel.active {
  width: 100%;
}

#panel-pages .repeat-editor,
#panel-home #dashboard-hero-stats-editor,
#panel-news .repeat-editor,
#panel-events .repeat-editor,
#panel-campus .repeat-editor,
#panel-videos .repeat-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 18px;
  align-items: start;
}

#panel-pages .editor-card,
#panel-home .editor-card,
#panel-news .editor-card,
#panel-events .editor-card,
#panel-campus .editor-card,
#panel-videos .editor-card,
#dashboard-schools-editor .editor-card {
  width: 100%;
  max-width: none;
  margin: 0;
}

#panel-home #dashboard-program-strip-editor {
  margin-top: 18px;
}

#panel-home #dashboard-program-strip-editor .editor-card {
  width: 100%;
  max-width: none;
}

#dashboard-schools-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.home-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.compact-editor-block {
  padding: 14px;
  border: 1px solid #e5ebf0;
  border-radius: 14px;
  background: #f9fbfc;
}

.compact-editor-block textarea {
  min-height: 92px;
}

.font-size-controls {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #e5ebf0;
  border-radius: 14px;
  background: #f8fbff;
}

.font-size-controls h4 {
  margin: 0 0 10px;
  color: #22313f;
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  #panel-pages .repeat-editor,
  #panel-home #dashboard-hero-stats-editor,
  #panel-news .repeat-editor,
  #panel-events .repeat-editor,
  #panel-campus .repeat-editor,
  #panel-videos .repeat-editor,
  .home-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* Uploaded landing images should keep their original color and only fit the frame. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media img,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none !important;
}

/* Landing sub-header and clearer background photo. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  background:
    linear-gradient(90deg, rgba(35, 78, 124, 0.78), rgba(35, 78, 124, 0.66)),
    linear-gradient(135deg, transparent 0 72%, rgba(26, 54, 91, 0.3) 72% 100%),
    url("../assets/hero-campus.jpg") center / cover no-repeat;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero::before {
  background: rgba(35, 78, 124, 0.3);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-subheader {
  display: block;
  max-width: 560px;
  margin: 0 0 12px;
  color: #ffd756;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle {
  display: block;
}

/* Final landing polish: bigger logo, less dead space, editable subheader sizing. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand-logo,
body:not(.dashboard-body):not(.portal-login-body) .brand-logo {
  width: 58px;
  height: 58px;
  padding: 5px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand strong {
  font-size: clamp(1.22rem, 1.7vw, 1.72rem);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes {
  margin-bottom: 26px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-section {
  padding-top: clamp(34px, 4vw, 62px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-subheader {
  font-size: 13px;
}

@media (max-width: 700px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand-logo,
  body:not(.dashboard-body):not(.portal-login-body) .brand-logo {
    width: 48px;
    height: 48px;
  }
}

/* Programme catalogue icons must keep uploaded color and only fit the icon tile. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip a .icon,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip a .icon img,
body:not(.dashboard-body):not(.portal-login-body) .program-strip a .icon,
body:not(.dashboard-body):not(.portal-login-body) .program-strip a .icon img {
  filter: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip a .icon img,
body:not(.dashboard-body):not(.portal-login-body) .program-strip a .icon img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  object-position: center;
}

/* Avoid flashing fallback text/images before dashboard content hydrates. */
body.home-landing.content-loading .program-strip,
body.home-landing.content-loading #hero-media,
body.home-landing.content-loading .why-choose-grid,
body.home-landing.content-loading .about-home-media img,
body.home-landing.content-loading #schools-track,
body.home-landing.content-loading #news-track,
body.home-landing.content-loading #events-grid,
body.home-landing.content-loading #campus-life-grid {
  opacity: 0;
}

body.home-landing .program-strip,
body.home-landing #hero-media,
body.home-landing .why-choose-grid,
body.home-landing .about-home-media img,
body.home-landing #schools-track,
body.home-landing #news-track,
body.home-landing #events-grid,
body.home-landing #campus-life-grid {
  transition: opacity 0.18s ease;
}

/* Green card category/header pills across the public site. */
body:not(.dashboard-body):not(.portal-login-body) .managed-card-image span,
body:not(.dashboard-body):not(.portal-login-body) .card-grid .managed-card-image span,
body:not(.dashboard-body):not(.portal-login-body) .news-card small,
body:not(.dashboard-body):not(.portal-login-body) .event-body small,
body:not(.dashboard-body):not(.portal-login-body) .featured-slide span,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-image span,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card small,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-body small,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-slide span {
  background: #e4f5e9 !important;
  color: #0f6f3d !important;
  border: 1px solid rgba(15, 111, 61, 0.16);
}

/* Featured videos: cleaner in-page player cards. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home {
  width: min(1240px, calc(100% - 48px));
  margin: clamp(52px, 7vw, 92px) auto;
  padding: clamp(34px, 5vw, 62px);
  border: 1px solid rgba(15, 111, 61, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(232, 246, 239, 0.96), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 12% 0%, rgba(15, 111, 61, 0.12), transparent 34%);
  box-shadow: 0 28px 70px rgba(24, 62, 45, 0.12);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home::before {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home .center-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home .center-head h2 {
  margin: 0;
  color: #123f22;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .videos-grid {
  display: grid;
  grid-auto-flow: initial;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  overflow: visible;
  padding: 0;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 111, 61, 0.1);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(24, 62, 45, 0.1);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(24, 62, 45, 0.15);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #0f2f25;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-frame iframe,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-message {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #d9efe3;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 800;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-card h3 {
  margin: 0;
  padding: 16px 18px 20px;
  color: #14231f;
  font-size: clamp(0.92rem, 1vw, 1.08rem);
  line-height: 1.28;
}

@media (max-width: 980px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .videos-grid {
    grid-template-columns: 1fr;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home {
    width: calc(100% - 28px);
    padding: 22px;
    border-radius: 20px;
  }
}

/* Android/mobile polish pass. */
@media (max-width: 760px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) {
    background: #f6faf8;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
    position: absolute;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    width: calc(100% - 24px);
    min-height: 62px;
    margin: 10px auto 0;
    padding: 8px 10px;
    gap: 10px;
    border-radius: 18px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand {
    min-width: 0;
    gap: 9px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand-logo,
  body:not(.dashboard-body):not(.portal-login-body) .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    padding: 4px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand strong {
    max-width: 150px;
    font-size: 0.92rem;
    line-height: 1.05;
    white-space: normal;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand small {
    display: none;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search {
    width: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 999px;
    overflow: hidden;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search input {
    width: 0;
    padding: 0;
    opacity: 0;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    min-height: auto;
    padding: 102px 16px 34px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    background:
      linear-gradient(180deg, rgba(35, 78, 124, 0.7), rgba(35, 78, 124, 0.78)),
      url("../assets/hero-campus.jpg") center / cover no-repeat;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero::before,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero::after,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media::before,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media::after,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor {
    display: none;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    height: clamp(210px, 58vw, 280px);
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media img,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media video {
    border-radius: 20px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    order: 2;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
    max-width: 100%;
    margin: 0 0 12px;
    font-size: clamp(1.95rem, 10vw, 2.75rem) !important;
    line-height: 1.02;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-subheader {
    max-width: 100%;
    margin-bottom: 10px;
    font-size: clamp(0.72rem, 3.2vw, 0.86rem) !important;
    letter-spacing: 0.08em;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle {
    max-width: 100%;
    font-size: clamp(0.86rem, 3.8vw, 0.98rem) !important;
    line-height: 1.55;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
    width: 100%;
    margin-top: 18px;
    gap: 10px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost {
    min-width: 0;
    flex: 1 1 0;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes {
    width: calc(100% - 24px);
    margin: 22px auto 24px;
    padding: 18px;
    grid-template-columns: 1fr;
    gap: 16px;
    border-radius: 18px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip-header h2 {
    font-size: 1.12rem !important;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip a {
    min-height: 94px;
    padding: 16px;
    grid-template-columns: 44px 1fr;
    align-items: center;
    text-align: left;
    column-gap: 12px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip a .icon {
    margin: 0;
    width: 44px;
    height: 44px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes .program-strip a span {
    grid-column: 2;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-section,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-content-section,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .carousel-section,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-life-home,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .events-home,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .news,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-section {
    padding-top: 38px;
    padding-bottom: 46px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head h2,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) main h2,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .section-head h2,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .center-head h2,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-management-head h2 {
    font-size: clamp(1.35rem, 7vw, 1.85rem) !important;
    line-height: 1.12;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-grid,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .events-grid,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 52px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-media img,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card img,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-card img,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-card img,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card img {
    height: 210px;
    object-fit: cover;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section .card-grid,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) #schools-track,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) #news-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    overflow: visible;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-card,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-card,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-card {
    width: 100%;
    min-width: 0;
    border-radius: 18px;
  }
}

/* Landing page navbar refresh inspired by the supplied reference. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 200;
  padding: 0;
  background: #2f4197;
  border-bottom: 1px solid rgba(255, 204, 17, 0.42);
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .utility-bar,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
  width: min(1240px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: transparent;
  color: #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
  flex: 1 1 auto;
  max-width: none;
  padding: 0;
  gap: clamp(22px, 3.2vw, 42px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
  min-height: 72px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 0;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown:hover > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown:focus-within > a {
  background: transparent;
  color: #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 19px;
  height: 2px;
  background: #ffcc11;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .menu {
  top: 60px;
  border-radius: 8px;
  background: rgba(25, 38, 103, 0.98);
  box-shadow: 0 20px 46px rgba(8, 12, 34, 0.28);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions {
  flex: 0 0 auto;
  gap: 18px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn.landing-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: #ffcc11;
  color: #111111;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search {
  width: 28px;
  min-width: 28px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search input,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search-results {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search button,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions > button {
  position: relative;
  width: 28px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 0;
  backdrop-filter: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) #menu-toggle::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 13px;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 7px 0 #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) #menu-toggle::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 27px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search button::before,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions > button[aria-label="Search"]::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 15px;
  height: 15px;
  border: 3px solid #ffffff;
  border-radius: 999px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search button::after,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions > button[aria-label="Search"]::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 25px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
  transform: rotate(45deg);
  transform-origin: left center;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions > button[aria-label="Search"] {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  min-height: 100vh;
  padding-top: 72px;
}

@media (max-width: 1120px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    width: calc(100% - 28px);
    gap: 16px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    padding: 14px;
    border-radius: 0 0 14px 14px;
    background: #2f4197;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav.open {
    display: grid;
    gap: 0;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
    width: 100%;
    min-height: 46px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active::after {
    bottom: 6px;
    right: auto;
    width: 44px;
  }
}

@media (max-width: 700px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
    position: absolute;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    min-height: 64px;
    margin: 0 auto;
    padding: 0;
    border-radius: 0;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn.landing-apply-btn {
    min-width: 68px;
    min-height: 36px;
    padding: 0 16px;
    font-size: 0.88rem;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    padding-top: 84px;
  }
}

/* USIU-inspired landing hero slider. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  min-height: 100vh;
  padding-top: 72px;
  display: grid;
  align-items: center;
  isolation: isolate;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media {
  background: #16265f;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media.is-changing img,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media.is-changing video {
  animation: heroSlideFade 520ms ease both;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media img,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media video {
  object-position: center center;
  transform: scale(1.01);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 27, 76, 0.91) 0%, rgba(26, 43, 113, 0.78) 42%, rgba(25, 35, 83, 0.28) 72%, rgba(12, 17, 40, 0.24) 100%),
    linear-gradient(180deg, rgba(10, 14, 35, 0.18) 0%, rgba(10, 14, 35, 0.34) 100%);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  width: min(820px, calc(100% - 104px));
  margin: 0 0 0 max(48px, calc((100vw - 1240px) / 2));
  padding: 64px 0 100px;
  transform: translateY(12px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffcc11;
  font-size: 0.82rem !important;
  letter-spacing: 0.16em;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p::before {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: clamp(3.2rem, 6.2vw, 6.8rem) !important;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-subheader {
  display: inline-flex;
  width: auto;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-left: 4px solid #ffcc11;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  letter-spacing: 0.12em;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.35vw, 1.22rem) !important;
  line-height: 1.65;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
  margin-top: 32px;
  gap: 14px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: #ffcc11;
  color: #111111;
  font-weight: 900;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .explore-ribbon,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-curve-transition {
  display: none;
}

.hero-slider-controls {
  position: absolute;
  right: max(36px, calc((100vw - 1240px) / 2));
  bottom: 58px;
  z-index: 3;
  display: grid;
  grid-template-columns: 52px auto 52px;
  align-items: center;
  gap: 14px;
  color: #ffffff;
}

.hero-slide-arrow {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.35rem;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-slide-arrow:hover,
.hero-slide-arrow:focus-visible {
  border-color: #ffcc11;
  background: #ffcc11;
  color: #111111;
  transform: translateY(-2px);
}

.hero-slide-status {
  min-width: 112px;
  display: grid;
  grid-template-columns: auto 38px auto;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.hero-slide-status strong,
.hero-slide-status small {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  color: #ffffff;
}

.hero-slide-status span {
  height: 2px;
  background: rgba(255, 255, 255, 0.62);
}

.hero-slide-dots {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  gap: 9px;
}

.hero-slide-dots button {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-slide-dots button.active {
  background: #ffcc11;
}

@keyframes heroSlideFade {
  from {
    opacity: 0.35;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1.01);
  }
}

@media (max-width: 900px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 54px 0 150px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
    font-size: clamp(2.5rem, 12vw, 4.8rem) !important;
  }

  .hero-slider-controls {
    left: 20px;
    right: auto;
    bottom: 42px;
  }
}

@media (max-width: 620px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    min-height: 100vh;
    padding: 84px 16px 34px;
    display: grid;
    align-items: end;
    background: none;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    width: 100%;
    padding: 0 0 126px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p {
    font-size: 0.7rem !important;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
    font-size: clamp(2.2rem, 13vw, 3.35rem) !important;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost {
    width: 100%;
    min-height: 44px;
  }

  .hero-slider-controls {
    left: 16px;
    bottom: 28px;
    grid-template-columns: 44px auto 44px;
    gap: 10px;
  }

  .hero-slide-arrow {
    width: 44px;
    height: 44px;
  }

  .hero-slide-status {
    min-width: 94px;
    grid-template-columns: auto 26px auto;
  }
}

/* Landing nav/action correction: logo left, separate apply/search tabs, background-only hero image. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
  background: #2f4197;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
  width: min(1500px, calc(100% - 48px));
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand {
  display: inline-flex;
  min-width: 0;
  flex: 0 0 auto;
  gap: 10px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  padding: 3px;
  background: #ffffff;
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.05;
  text-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.62rem;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
  justify-content: center;
  min-width: 0;
  gap: clamp(18px, 2.3vw, 34px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn.landing-apply-btn,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search {
  min-height: 40px;
  border-radius: 999px;
  background: #ffcc11;
  color: #111111;
  box-shadow: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn.landing-apply-btn {
  min-width: 82px;
  padding: 0 22px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search {
  width: 190px;
  min-width: 190px;
  padding: 0 10px 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  overflow: visible;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0;
  border: 0;
  outline: 0;
  opacity: 1;
  background: transparent;
  color: #111111;
  font-weight: 800;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search input::placeholder {
  color: #111111;
  opacity: 1;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search button {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 38px;
  background: transparent;
  color: #111111;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search button::before,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search button::after {
  border-color: #111111;
  background: #111111;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions > button[aria-label="Search"] {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  padding-top: 72px;
  display: grid;
  align-items: center;
  background: #16265f;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  order: initial;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media img,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media video {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 1180px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    grid-template-columns: auto auto;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    justify-content: start;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 1120px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    left: 0;
    right: 0;
    top: 72px;
  }
}

@media (max-width: 760px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    width: calc(100% - 24px);
    min-height: 64px;
    grid-template-columns: auto auto;
    gap: 10px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand-logo,
  body:not(.dashboard-body):not(.portal-login-body) .brand-logo {
    width: 40px;
    height: 40px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand strong,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand small {
    display: none;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions {
    gap: 8px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn.landing-apply-btn {
    min-width: 64px;
    min-height: 36px;
    padding: 0 14px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search {
    width: 132px;
    min-width: 132px;
    height: 36px;
    min-height: 36px;
    padding-left: 12px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search input {
    height: 34px;
    font-size: 0.82rem;
  }
}

@media (max-width: 520px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search {
    width: 42px;
    min-width: 42px;
    padding: 0 7px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search input {
    width: 0;
    opacity: 0;
  }
}

/* Final homepage polish: glass blur, compact nav, separated Apply/Search, visible hero copy. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
  background: rgba(47, 65, 151, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
  width: min(1420px, calc(100% - 72px));
  min-height: 64px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  margin-left: max(28px, calc((100vw - 1420px) / 2));
  margin-right: auto;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand {
  gap: 9px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand strong {
  font-size: 0.94rem;
  max-width: 165px;
  white-space: nowrap;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand small {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
  justify-content: flex-start;
  gap: clamp(14px, 1.7vw, 26px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
  min-height: 64px;
  font-size: 0.88rem;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active::after {
  bottom: 15px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions {
  justify-self: start;
  margin-left: 4px;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: visible;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .apply-btn.landing-apply-btn {
  order: 1;
  flex: 0 0 auto;
  display: inline-flex;
  min-width: 66px;
  min-height: 34px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffcc11;
  color: #111111;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search {
  order: 2;
  flex: 0 0 118px;
  width: 118px;
  min-width: 118px;
  max-width: 118px;
  height: 34px;
  min-height: 34px;
  padding: 0 9px 0 14px;
  border-radius: 999px;
  background: #ffcc11;
  overflow: hidden;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search input {
  display: block;
  width: 72px;
  height: 32px;
  padding: 0;
  opacity: 1;
  color: #111111;
  font-size: 0.8rem;
  font-weight: 900;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search input::placeholder {
  color: transparent;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search::before {
  content: "Search";
  position: absolute;
  left: 16px;
  top: 50%;
  color: #111111;
  font-size: 0.8rem;
  font-weight: 900;
  transform: translateY(-50%);
  pointer-events: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search:focus-within::before {
  display: none;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search button {
  flex: 0 0 22px;
  width: 22px;
  height: 32px;
  margin-left: auto;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search button::before {
  left: 4px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-width: 2px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search button::after {
  left: 14px;
  top: 21px;
  width: 7px;
  height: 2px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) #menu-toggle {
  order: 3;
  width: 28px;
  height: 34px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions > button[aria-label="Search"] {
  display: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  min-height: 100vh;
  padding-top: 64px;
  align-items: center;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media {
  z-index: 0;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media img,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media video {
  filter: saturate(1.04) contrast(1.02) blur(1.2px);
  transform: scale(1.025);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(22, 34, 94, 0.76) 0%, rgba(22, 34, 94, 0.54) 46%, rgba(22, 34, 94, 0.18) 100%),
    linear-gradient(180deg, rgba(10, 14, 36, 0.06) 0%, rgba(10, 14, 36, 0.36) 100%);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  position: relative;
  z-index: 4;
  width: min(760px, calc(100% - 96px));
  margin: 0 0 0 max(48px, calc((100vw - 1420px) / 2));
  padding: 0;
  transform: none;
  opacity: 1;
  visibility: visible;
  color: #ffffff;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p {
  display: block;
  margin-bottom: 14px;
  color: #ffcc11;
  font-size: 0.78rem !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
  display: block;
  max-width: 760px;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(3rem, 5.4vw, 5.7rem) !important;
  line-height: 0.96;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-subheader {
  display: inline-flex;
  margin-bottom: 12px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle {
  display: block;
  max-width: 590px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
  display: flex;
  margin-top: 28px;
  gap: 12px;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a {
  min-width: 170px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 0;
  background: #ffcc11;
  color: #111111;
  font-size: 0.88rem;
  font-weight: 900;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-slider-controls {
  z-index: 5;
  right: max(34px, calc((100vw - 1420px) / 2));
  bottom: 44px;
}

@media (max-width: 1260px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    width: calc(100% - 36px);
    margin-left: 18px;
    gap: 16px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand strong {
    display: none;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    gap: 16px;
  }
}

@media (max-width: 1120px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 64px;
    background: rgba(47, 65, 151, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

@media (max-width: 760px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    width: calc(100% - 20px);
    min-height: 58px;
    margin-left: 10px;
    grid-template-columns: auto 1fr;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions {
    justify-self: end;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding-bottom: 104px;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem) !important;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a {
    width: 100%;
    min-width: 0;
  }
}

/* Unified navigation theme across home and inner pages. */
body:not(.dashboard-body):not(.portal-login-body) .site-header {
  background: rgba(47, 65, 151, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 10px 32px rgba(18, 30, 87, 0.16) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

body:not(.dashboard-body):not(.portal-login-body):not(.home-landing) .site-header {
  position: relative !important;
  inset: auto !important;
  z-index: 200 !important;
  padding: 0 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .utility-bar {
  display: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav {
  width: min(1420px, calc(100% - 72px)) !important;
  min-height: 64px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 22px !important;
  background: transparent !important;
  color: #ffffff !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand {
  display: inline-flex !important;
  min-width: 0 !important;
  gap: 9px !important;
  color: #ffffff !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand-logo {
  width: 42px !important;
  height: 42px !important;
  padding: 3px !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand strong {
  color: #ffffff !important;
  max-width: 175px !important;
  font-size: 0.94rem !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand small {
  display: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  gap: clamp(14px, 1.7vw, 26px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
body:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
  min-height: 64px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active,
body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a:hover,
body:not(.dashboard-body):not(.portal-login-body) .dropdown:hover > a,
body:not(.dashboard-body):not(.portal-login-body) .dropdown:focus-within > a {
  background: transparent !important;
  color: #ffffff !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 15px !important;
  height: 2px !important;
  background: #ffcc11 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
}

body:not(.dashboard-body):not(.portal-login-body) .apply-btn,
body:not(.dashboard-body):not(.portal-login-body) .apply-btn.landing-apply-btn,
body:not(.dashboard-body):not(.portal-login-body) .site-search {
  flex: 0 0 auto !important;
  min-height: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background: #ffcc11 !important;
  color: #111111 !important;
  box-shadow: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .apply-btn,
body:not(.dashboard-body):not(.portal-login-body) .apply-btn.landing-apply-btn {
  order: 1 !important;
  min-width: 66px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search {
  order: 2 !important;
  position: relative !important;
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  padding: 0 9px 0 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 0 !important;
  overflow: hidden !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search::before {
  content: none !important;
  display: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search input {
  display: block !important;
  width: 66px !important;
  min-width: 0 !important;
  height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  opacity: 1 !important;
  background: transparent !important;
  color: #111111 !important;
  font-size: 0.8rem !important;
  font-weight: 900 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search input::placeholder {
  color: #111111 !important;
  opacity: 1 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search button {
  position: relative !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 32px !important;
  margin-left: auto !important;
  border: 0 !important;
  background: transparent !important;
  color: #111111 !important;
  font-size: 0 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search button::before {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 10px !important;
  width: 9px !important;
  height: 9px !important;
  border: 2px solid #111111 !important;
  border-radius: 999px !important;
  background: transparent !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search button::after {
  content: "" !important;
  position: absolute !important;
  left: 14px !important;
  top: 21px !important;
  width: 7px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #111111 !important;
  transform: rotate(45deg) !important;
}

body:not(.dashboard-body):not(.portal-login-body) #menu-toggle {
  order: 3 !important;
  position: relative !important;
  width: 28px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 0 !important;
}

body:not(.dashboard-body):not(.portal-login-body) #menu-toggle::before {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 10px !important;
  width: 17px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 7px 0 #ffffff !important;
}

body:not(.dashboard-body):not(.portal-login-body) #menu-toggle::after {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 24px !important;
  width: 8px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions > button[aria-label="Search"] {
  display: none !important;
}

@media (max-width: 1260px) {
  body:not(.dashboard-body):not(.portal-login-body) .main-nav {
    width: calc(100% - 36px) !important;
    gap: 16px !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .brand strong {
    display: none !important;
  }
}

@media (max-width: 1120px) {
  body:not(.dashboard-body):not(.portal-login-body) .main-nav {
    grid-template-columns: auto auto !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    position: absolute !important;
    left: 18px !important;
    right: 18px !important;
    top: 64px !important;
    display: none !important;
    padding: 12px 14px !important;
    border-radius: 0 0 12px 12px !important;
    background: rgba(47, 65, 151, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav.open {
    display: grid !important;
    gap: 0 !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
  body:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
    width: 100% !important;
    min-height: 44px !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .nav-actions {
    justify-self: end !important;
  }
}

@media (max-width: 760px) {
  body:not(.dashboard-body):not(.portal-login-body) .main-nav {
    width: calc(100% - 20px) !important;
    min-height: 58px !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .brand-logo {
    width: 40px !important;
    height: 40px !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .site-search {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
  }
}

/* SearchApply action label and Strathmore-inspired About page. */
body:not(.dashboard-body):not(.portal-login-body) .apply-btn,
body:not(.dashboard-body):not(.portal-login-body) .apply-btn.landing-apply-btn {
  min-width: 112px !important;
  padding: 0 18px !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search {
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search input {
  width: 58px !important;
}

body[data-page="about"] {
  background: #f2f6fb !important;
}

body[data-page="about"] .managed-page {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
  padding: 86px 0 96px;
}

body[data-page="about"] .managed-page-intro {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 54px;
  padding: 58px;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(47, 65, 151, 0.96), rgba(24, 40, 112, 0.88));
  color: #ffffff;
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 80px rgba(22, 34, 94, 0.18);
}

body[data-page="about"] .managed-page-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(255, 204, 17, 0.22), transparent 28%), radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.16), transparent 34%);
  pointer-events: none;
}

body[data-page="about"] .managed-page-intro > * {
  position: relative;
  z-index: 1;
}

body[data-page="about"] #page-eyebrow {
  color: #ffcc11 !important;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

body[data-page="about"] #page-title {
  color: #ffffff !important;
  max-width: 720px;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 0.96;
  margin-bottom: 22px;
}

body[data-page="about"] #page-body {
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 660px;
  font-size: 1.08rem;
  line-height: 1.85;
}

body[data-page="about"] .managed-page-media {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

body[data-page="about"] .managed-page-media img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 0;
}

body[data-page="about"] .managed-page-sections {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body[data-page="about"] .managed-page-sections article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(47, 65, 151, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(22, 34, 94, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body[data-page="about"] .managed-page-sections h2 {
  color: #1d2f7f !important;
  font-size: 1.25rem;
  line-height: 1.1;
  margin-bottom: 14px;
}

body[data-page="about"] .managed-page-sections p {
  color: #33415c !important;
  font-size: 0.96rem;
  line-height: 1.72;
}

body[data-page="about"] .link-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body[data-page="about"] .link-grid a {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: #ffcc11 !important;
  color: #111111 !important;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(255, 204, 17, 0.18);
}

body[data-page="about"] .managed-page-gallery {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
}

body[data-page="about"] .managed-page-gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 20px 48px rgba(22, 34, 94, 0.12);
}

@media (max-width: 980px) {
  body[data-page="about"] .managed-page-intro,
  body[data-page="about"] .managed-page-sections,
  body[data-page="about"] .link-grid,
  body[data-page="about"] .managed-page-gallery {
    grid-template-columns: 1fr;
  }

  body[data-page="about"] .managed-page-intro {
    padding: 34px;
  }

  body[data-page="about"] .managed-page-media img,
  body[data-page="about"] .managed-page-gallery img {
    height: 240px;
  }
}

/* Correct action labels: Apply tab plus separate active search only. */
body:not(.dashboard-body):not(.portal-login-body) .apply-btn,
body:not(.dashboard-body):not(.portal-login-body) .apply-btn.landing-apply-btn {
  min-width: 66px !important;
  width: auto !important;
  padding: 0 16px !important;
  font-size: 0.82rem !important;
  color: #111111 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search {
  width: 108px !important;
  min-width: 108px !important;
  max-width: 108px !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search::before,
body:not(.dashboard-body):not(.portal-login-body) .site-search::after,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search::before,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-search::after {
  content: none !important;
  display: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search input {
  width: 62px !important;
  color: #111111 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search input::placeholder {
  color: #111111 !important;
  opacity: 1 !important;
}

/* Calmer About page redesign after review. */
body[data-page="about"] {
  background: #f4f7fb !important;
}

body[data-page="about"] .managed-page {
  width: min(1180px, calc(100% - 56px)) !important;
  padding: 58px 0 82px !important;
}

body[data-page="about"] .managed-page-intro {
  min-height: auto !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr) !important;
  gap: 40px !important;
  padding: 42px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: #14213f !important;
  border: 1px solid rgba(47, 65, 151, 0.1) !important;
  box-shadow: 0 22px 60px rgba(22, 34, 94, 0.1) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

body[data-page="about"] .managed-page-intro::before {
  background: linear-gradient(90deg, rgba(47, 65, 151, 0.08), transparent 46%) !important;
}

body[data-page="about"] #page-eyebrow {
  color: #2f4197 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.16em !important;
  margin-bottom: 12px !important;
}

body[data-page="about"] #page-title {
  color: #13245e !important;
  max-width: 560px !important;
  font-size: clamp(2.1rem, 3.2vw, 3.5rem) !important;
  line-height: 1.02 !important;
  margin-bottom: 18px !important;
}

body[data-page="about"] #page-body {
  color: #3d4b68 !important;
  max-width: 620px !important;
  font-size: 1rem !important;
  line-height: 1.72 !important;
}

body[data-page="about"] .managed-page-media {
  border-radius: 0 !important;
  box-shadow: 0 18px 46px rgba(22, 34, 94, 0.14) !important;
}

body[data-page="about"] .managed-page-media img {
  height: 330px !important;
  object-position: center center !important;
}

body[data-page="about"] .managed-page-sections {
  margin-top: 30px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

body[data-page="about"] .managed-page-sections article {
  min-height: 190px !important;
  padding: 24px !important;
  background: #ffffff !important;
  border: 1px solid rgba(47, 65, 151, 0.1) !important;
  box-shadow: 0 12px 34px rgba(22, 34, 94, 0.06) !important;
}

body[data-page="about"] .managed-page-sections h2 {
  color: #1d2f7f !important;
  font-size: 1.08rem !important;
  margin-bottom: 10px !important;
}

body[data-page="about"] .managed-page-sections p {
  color: #42506a !important;
  font-size: 0.9rem !important;
  line-height: 1.62 !important;
}

body[data-page="about"] .link-grid {
  margin-top: 24px !important;
}

body[data-page="about"] .link-grid a {
  min-height: 50px !important;
  font-size: 0.9rem !important;
}

body[data-page="about"] .managed-page-gallery {
  margin-top: 30px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body[data-page="about"] .managed-page-gallery img {
  height: 210px !important;
}

@media (max-width: 980px) {
  body[data-page="about"] .managed-page-intro,
  body[data-page="about"] .managed-page-sections,
  body[data-page="about"] .link-grid,
  body[data-page="about"] .managed-page-gallery {
    grid-template-columns: 1fr !important;
  }

  body[data-page="about"] .managed-page-intro {
    padding: 26px !important;
  }

  body[data-page="about"] .managed-page-media img,
  body[data-page="about"] .managed-page-gallery img {
    height: 220px !important;
  }
}

/* Slightly fade the landing page hero image for better text contrast. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media img,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media video {
  filter: saturate(0.98) contrast(0.96) brightness(0.78) blur(1.2px) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-overlay {
  background:
    linear-gradient(90deg, rgba(22, 34, 94, 0.82) 0%, rgba(22, 34, 94, 0.62) 44%, rgba(22, 34, 94, 0.34) 100%),
    linear-gradient(180deg, rgba(10, 14, 36, 0.18) 0%, rgba(10, 14, 36, 0.42) 100%) !important;
}

/* USIU history-inspired subpage layout: contained image, text-first content, no full-page photo. */
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) {
  background: #f5f7fb !important;
  color: #18233f !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page {
  width: min(1180px, calc(100% - 56px)) !important;
  margin: 0 auto !important;
  padding: 64px 0 88px !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px) !important;
  gap: 44px !important;
  align-items: center !important;
  min-height: 0 !important;
  padding: 34px 0 42px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #18233f !important;
  overflow: visible !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro::before,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro::after {
  display: none !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro > * {
  position: relative !important;
  z-index: 1 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) #page-eyebrow,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro .eyebrow {
  margin: 0 0 14px !important;
  color: #ffbf00 !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) #page-title,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro h1 {
  max-width: 680px !important;
  margin: 0 0 18px !important;
  color: #101a3d !important;
  font-size: clamp(2rem, 3.2vw, 3.45rem) !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) #page-body,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .page-body,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro p:not(.eyebrow) {
  max-width: 680px !important;
  color: #46536e !important;
  font-size: 1rem !important;
  line-height: 1.78 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-media {
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #dfe7f2 !important;
  box-shadow: 0 18px 48px rgba(16, 26, 61, 0.14) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-media img {
  width: 100% !important;
  height: 300px !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections {
  margin-top: 16px !important;
  display: grid !important;
  grid-template-columns: 0.42fr 1fr !important;
  gap: 18px !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article {
  min-height: 0 !important;
  padding: 24px 26px !important;
  border: 1px solid rgba(47, 65, 151, 0.1) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 12px 34px rgba(16, 26, 61, 0.06) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article:nth-child(1) {
  grid-row: span 2 !important;
  background: #2f4197 !important;
  color: #ffffff !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article:nth-child(1) h2,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article:nth-child(1) p {
  color: #ffffff !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections h2 {
  margin: 0 0 10px !important;
  color: #1d2f7f !important;
  font-size: 1.08rem !important;
  line-height: 1.2 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections p {
  margin: 0 !important;
  color: #46536e !important;
  font-size: 0.94rem !important;
  line-height: 1.72 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid {
  margin-top: 28px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid a {
  min-height: 52px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  border: 1px solid rgba(47, 65, 151, 0.12) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #13245e !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(16, 26, 61, 0.05) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid a:hover {
  background: #ffcc11 !important;
  color: #111111 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-gallery {
  margin-top: 34px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-gallery img {
  width: 100% !important;
  height: 210px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  box-shadow: 0 12px 34px rgba(16, 26, 61, 0.09) !important;
}

@media (max-width: 900px) {
  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page {
    width: min(100% - 28px, 760px) !important;
    padding-top: 38px !important;
  }

  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro,
  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections,
  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid,
  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-gallery {
    grid-template-columns: 1fr !important;
  }

  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article:nth-child(1) {
    grid-row: auto !important;
  }

  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-media img,
  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-gallery img {
    height: 220px !important;
  }
}

/* Final unified blue bar: identical home and subpage navigation. */
body:not(.dashboard-body):not(.portal-login-body) .site-header {
  position: relative !important;
  inset: auto !important;
  z-index: 300 !important;
  padding: 0 !important;
  background: #2f4197 !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
  position: absolute !important;
  inset: 0 0 auto !important;
}

body:not(.dashboard-body):not(.portal-login-body) .utility-bar {
  display: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav {
  width: 100% !important;
  min-height: 66px !important;
  margin: 0 !important;
  padding: 0 55px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 26px !important;
  background: #2f4197 !important;
  color: #ffffff !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
  gap: 10px !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand-logo {
  width: 42px !important;
  height: 42px !important;
  padding: 3px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  max-width: none !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand small {
  display: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(20px, 2vw, 34px) !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .dropdown {
  position: relative !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
body:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
  min-height: 66px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #ffffff !important;
  font-size: 0.94rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active::after {
  content: none !important;
  display: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .dropdown > a::after {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  margin-top: -4px !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  transform: rotate(45deg) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .menu {
  top: 58px !important;
  left: 0 !important;
  min-width: 250px !important;
  padding: 16px !important;
  border-radius: 8px !important;
  background: rgba(25, 38, 103, 0.98) !important;
  box-shadow: 0 20px 50px rgba(8, 12, 34, 0.32) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .menu a {
  min-height: 0 !important;
  padding: 10px 10px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

body:not(.dashboard-body):not(.portal-login-body) .apply-btn,
body:not(.dashboard-body):not(.portal-login-body) .apply-btn.landing-apply-btn,
body:not(.dashboard-body):not(.portal-login-body) .site-search {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  background: #ffcc11 !important;
  color: #111111 !important;
  box-shadow: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .apply-btn,
body:not(.dashboard-body):not(.portal-login-body) .apply-btn.landing-apply-btn {
  min-width: 70px !important;
  padding: 0 17px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.84rem !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search {
  position: relative !important;
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  padding: 0 9px 0 15px !important;
  display: flex !important;
  align-items: center !important;
  border: 0 !important;
  overflow: hidden !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search input {
  width: 68px !important;
  height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  opacity: 1 !important;
  background: transparent !important;
  color: #111111 !important;
  font-size: 0.84rem !important;
  font-weight: 900 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search input::placeholder {
  color: #111111 !important;
  opacity: 1 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search button {
  position: relative !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 32px !important;
  margin-left: auto !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 0 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search::before,
body:not(.dashboard-body):not(.portal-login-body) .site-search::after {
  content: none !important;
  display: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search button::before {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 9px !important;
  width: 11px !important;
  height: 11px !important;
  border: 2px solid #111111 !important;
  border-radius: 999px !important;
  background: transparent !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search button::after {
  content: "" !important;
  position: absolute !important;
  left: 16px !important;
  top: 22px !important;
  width: 8px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #111111 !important;
  transform: rotate(45deg) !important;
}

body:not(.dashboard-body):not(.portal-login-body) #menu-toggle {
  position: relative !important;
  width: 30px !important;
  height: 34px !important;
  border: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 0 !important;
}

body:not(.dashboard-body):not(.portal-login-body) #menu-toggle::before {
  content: "" !important;
  position: absolute !important;
  left: 7px !important;
  top: 10px !important;
  width: 17px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 7px 0 #ffffff !important;
}

body:not(.dashboard-body):not(.portal-login-body) #menu-toggle::after {
  content: "" !important;
  position: absolute !important;
  left: 7px !important;
  top: 24px !important;
  width: 9px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions > button[aria-label="Search"] {
  display: none !important;
}

@media (max-width: 1120px) {
  body:not(.dashboard-body):not(.portal-login-body) .main-nav {
    padding: 0 18px !important;
    grid-template-columns: auto auto !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 66px !important;
    display: none !important;
    padding: 12px 18px !important;
    background: #2f4197 !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav.open {
    display: grid !important;
  }
}

/* Online Courses inspired global theme: readable, bright, consistent. */
:root {
  --course-ink: #101828;
  --course-muted: #566176;
  --course-paper: #fbf7ef;
  --course-surface: #ffffff;
  --course-soft: #f4eadb;
  --course-blue: #263f95;
  --course-blue-dark: #172b74;
  --course-yellow: #ffcc11;
  --course-line: rgba(16, 24, 40, 0.1);
  --course-shadow: 0 22px 60px rgba(31, 44, 86, 0.12);
}

body:not(.dashboard-body):not(.portal-login-body) {
  background: var(--course-paper) !important;
  color: var(--course-ink) !important;
  font-family: "Plus Jakarta Sans", "Manrope", Arial, sans-serif !important;
}

body:not(.dashboard-body):not(.portal-login-body) h1,
body:not(.dashboard-body):not(.portal-login-body) h2,
body:not(.dashboard-body):not(.portal-login-body) h3,
body:not(.dashboard-body):not(.portal-login-body) h4,
body:not(.dashboard-body):not(.portal-login-body) .brand strong,
body:not(.dashboard-body):not(.portal-login-body) nav {
  font-family: "Outfit", "Plus Jakarta Sans", Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

/* Shared header in the course-demo spirit. */
body:not(.dashboard-body):not(.portal-login-body) .site-header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08) !important;
  box-shadow: 0 12px 40px rgba(31, 44, 86, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
  position: absolute !important;
  inset: 18px 0 auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav {
  width: min(1320px, calc(100% - 48px)) !important;
  min-height: 74px !important;
  margin: 0 auto !important;
  padding: 0 18px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 24px !important;
  align-items: center !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--course-ink) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand {
  color: var(--course-ink) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand-logo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 28px rgba(38, 63, 149, 0.14) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand strong {
  color: var(--course-ink) !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
  justify-content: center !important;
  gap: clamp(18px, 2vw, 32px) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
body:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
  min-height: 74px !important;
  color: var(--course-ink) !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .dropdown > a::after {
  border-color: currentColor !important;
}

body:not(.dashboard-body):not(.portal-login-body) .menu {
  top: 66px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid var(--course-line) !important;
  box-shadow: var(--course-shadow) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .menu a {
  color: var(--course-muted) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .menu a:hover {
  background: #fff7d6 !important;
  color: var(--course-ink) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .apply-btn,
body:not(.dashboard-body):not(.portal-login-body) .apply-btn.landing-apply-btn,
body:not(.dashboard-body):not(.portal-login-body) .site-search {
  background: var(--course-yellow) !important;
  color: #111111 !important;
  border-radius: 999px !important;
}

/* Landing page like a course platform hero. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  min-height: 100vh !important;
  padding-top: 112px !important;
  background: var(--course-paper) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media img,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media video {
  filter: saturate(0.95) contrast(0.95) brightness(0.72) !important;
  transform: scale(1.015) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-overlay {
  background:
    linear-gradient(90deg, rgba(251, 247, 239, 0.96) 0%, rgba(251, 247, 239, 0.86) 36%, rgba(251, 247, 239, 0.38) 72%, rgba(251, 247, 239, 0.16) 100%),
    linear-gradient(180deg, rgba(251, 247, 239, 0.08), rgba(251, 247, 239, 0.42)) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  width: min(680px, calc(100% - 96px)) !important;
  margin-left: max(48px, calc((100vw - 1320px) / 2 + 24px)) !important;
  color: var(--course-ink) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p {
  color: var(--course-blue) !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
  color: var(--course-ink) !important;
  font-size: clamp(3rem, 5vw, 5.8rem) !important;
  line-height: 0.98 !important;
  text-shadow: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-subheader {
  border-left-color: var(--course-yellow) !important;
  background: rgba(255, 204, 17, 0.18) !important;
  color: var(--course-blue-dark) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle {
  color: var(--course-muted) !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid a:hover {
  border-radius: 999px !important;
  background: var(--course-yellow) !important;
  color: #111111 !important;
  box-shadow: 0 14px 34px rgba(255, 204, 17, 0.22) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost {
  border: 1px solid rgba(38, 63, 149, 0.22) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: var(--course-blue-dark) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-section,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-content-section,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .carousel-section,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-life-home,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .events-home,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-section {
  background: var(--course-paper) !important;
  color: var(--course-ink) !important;
}

body:not(.dashboard-body):not(.portal-login-body) main h2,
body:not(.dashboard-body):not(.portal-login-body) .section-head h2,
body:not(.dashboard-body):not(.portal-login-body) .center-head h2,
body:not(.dashboard-body):not(.portal-login-body) .card-management-head h2 {
  color: var(--course-ink) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .eyebrow,
body:not(.dashboard-body):not(.portal-login-body) #page-eyebrow {
  color: var(--course-blue) !important;
  font-weight: 900 !important;
}

body:not(.dashboard-body):not(.portal-login-body) p,
body:not(.dashboard-body):not(.portal-login-body) .page-body {
  color: var(--course-muted) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .program-strip a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-card,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid a {
  border-radius: 22px !important;
  border: 1px solid var(--course-line) !important;
  background: var(--course-surface) !important;
  color: var(--course-ink) !important;
  box-shadow: 0 16px 42px rgba(31, 44, 86, 0.08) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro {
  padding: 56px 0 42px !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) #page-title,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro h1 {
  color: var(--course-ink) !important;
  font-size: clamp(2.4rem, 4vw, 4.4rem) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-media {
  border-radius: 24px !important;
  box-shadow: var(--course-shadow) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-media img,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-gallery img {
  border-radius: 24px !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article:nth-child(1) {
  background: var(--course-blue) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article:nth-child(1) p,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article:nth-child(1) h2 {
  color: #ffffff !important;
}

footer,
.site-footer {
  background: #111827 !important;
  color: #ffffff !important;
}

@media (max-width: 1120px) {
  body:not(.dashboard-body):not(.portal-login-body) .main-nav {
    border-radius: 22px !important;
    grid-template-columns: auto auto !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    top: 78px !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: var(--course-shadow) !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
  body:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
    color: var(--course-ink) !important;
  }
}

@media (max-width: 760px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    width: calc(100% - 32px) !important;
    margin: 0 auto !important;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem) !important;
  }
}

/* Visibility and full-width header correction. */
body:not(.dashboard-body):not(.portal-login-body) .site-header,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  padding: 0 !important;
  background: #2f4197 !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
  position: absolute !important;
  inset: 0 0 auto !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
  width: 100% !important;
  max-width: none !important;
  min-height: 66px !important;
  margin: 0 !important;
  padding: 0 56px !important;
  border-radius: 0 !important;
  background: #2f4197 !important;
  box-shadow: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand strong,
body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
body:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
  color: #ffffff !important;
}

body:not(.dashboard-body):not(.portal-login-body) .dropdown > a::after {
  border-color: #ffffff !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 10, 30, 0.68) 0%, rgba(5, 10, 30, 0.46) 42%, rgba(5, 10, 30, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 10, 30, 0.16) 0%, rgba(5, 10, 30, 0.38) 100%) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media img,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media video {
  filter: saturate(0.98) contrast(1.02) brightness(0.76) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  padding: 18px 22px 22px !important;
  border-radius: 18px !important;
  background: rgba(8, 14, 38, 0.32) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-subheader {
  color: #ffcc11 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle {
  color: #ffffff !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle {
  font-weight: 700 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #13245e !important;
  border-color: transparent !important;
}

.hero-slider-controls {
  padding: 12px 14px !important;
  border-radius: 999px !important;
  background: rgba(8, 14, 38, 0.34) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.hero-slide-status strong,
.hero-slide-status small {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
}

.hero-slide-status span {
  background: rgba(255, 255, 255, 0.82) !important;
}

.hero-slide-arrow {
  background: #ffffff !important;
  color: #13245e !important;
  border-color: #ffffff !important;
}

.hero-slide-dots button {
  background: rgba(255, 255, 255, 0.72) !important;
}

.hero-slide-dots button.active {
  background: #ffcc11 !important;
}

@media (max-width: 760px) {
  body:not(.dashboard-body):not(.portal-login-body) .main-nav,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    padding: 0 14px !important;
  }
}

/* Move Campus Life cards from home into the Student Life tab. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-life-home {
  display: none !important;
}

body[data-page="studentLife"] .managed-campus-life-block {
  margin-top: 34px;
  padding: 34px 0 10px;
  background: transparent;
}

body[data-page="studentLife"] .managed-campus-life-block .center-head {
  text-align: center;
  margin-bottom: 28px;
}

body[data-page="studentLife"] .managed-campus-life-block .center-head h2 {
  margin: 0 0 10px;
  color: var(--course-ink, #101828) !important;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
}

body[data-page="studentLife"] .managed-campus-life-block .center-head p {
  margin: 0 auto;
  max-width: 680px;
  color: var(--course-muted, #566176) !important;
}

body[data-page="studentLife"] .managed-campus-life-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

body[data-page="studentLife"] .managed-campus-life-grid .campus-card {
  overflow: hidden;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 1px solid rgba(16, 24, 40, 0.1) !important;
  box-shadow: 0 16px 42px rgba(31, 44, 86, 0.08) !important;
}

body[data-page="studentLife"] .managed-campus-life-grid .campus-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

body[data-page="studentLife"] .managed-campus-life-grid .campus-card img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
}

body[data-page="studentLife"] .managed-campus-life-grid .campus-card h3 {
  margin: 0;
  padding: 20px 18px 22px;
  color: var(--course-ink, #101828) !important;
  font-size: 1.05rem;
  text-align: center;
}

@media (max-width: 900px) {
  body[data-page="studentLife"] .managed-campus-life-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact hero copy card and separate Search / Apply tabs. */
body:not(.dashboard-body):not(.portal-login-body) .nav-actions {
  gap: 8px !important;
}

body:not(.dashboard-body):not(.portal-login-body) .search-action-tab,
body:not(.dashboard-body):not(.portal-login-body) .apply-action-tab {
  height: 34px !important;
  min-height: 34px !important;
  min-width: 76px !important;
  width: auto !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #ffcc11 !important;
  color: #111111 !important;
  font-size: 0.84rem !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-search {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  width: fit-content !important;
  max-width: min(680px, calc(100% - 96px)) !important;
  min-height: 0 !important;
  padding: 28px 30px !important;
  display: inline-block !important;
  align-self: center !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p {
  margin-bottom: 14px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
  margin-bottom: 14px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle {
  max-width: 620px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
  margin-top: 24px !important;
}

/* Definitive nav action fix: visible Search and Apply only. */
body:not(.dashboard-body):not(.portal-login-body) .nav-actions .site-search,
body:not(.dashboard-body):not(.portal-login-body) .nav-actions .site-search-results,
body:not(.dashboard-body):not(.portal-login-body) .nav-actions > button[aria-label="Search"]:not(.search-action-tab) {
  display: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions .nav-tab,
body:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab,
body:not(.dashboard-body):not(.portal-login-body) .nav-actions .apply-action-tab {
  width: auto !important;
  min-width: 76px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ffcc11 !important;
  color: #111111 !important;
  font-size: 0.84rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions .nav-tab::before,
body:not(.dashboard-body):not(.portal-login-body) .nav-actions .nav-tab::after,
body:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab::before,
body:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab::after,
body:not(.dashboard-body):not(.portal-login-body) .nav-actions .apply-action-tab::before,
body:not(.dashboard-body):not(.portal-login-body) .nav-actions .apply-action-tab::after {
  content: none !important;
  display: none !important;
}

/* Hero panel should fit only the visible wording and buttons. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  width: min(560px, calc(100% - 64px)) !important;
  max-width: 560px !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 24px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) #hero-title {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  line-height: 0 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-subheader {
  margin: 0 0 12px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle {
  margin: 0 !important;
  max-width: 500px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
  margin-top: 22px !important;
}

/* Position hero wording card slightly lower and further left. */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  margin-left: max(28px, calc((100vw - 1320px) / 2 + 8px)) !important;
  transform: translateY(34px) !important;
}

@media (max-width: 760px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    margin-left: 16px !important;
    transform: translateY(18px) !important;
  }
}
/* Subpage Manager and managed page design options */
.panel-note {
  margin: 6px 0 0;
  color: #5b6475;
  font-size: 0.95rem;
  max-width: 760px;
}

.subpage-manager-editor {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: start;
}

.page-editor-card {
  border: 1px solid rgba(12, 24, 52, 0.1);
  box-shadow: 0 16px 34px rgba(12, 24, 52, 0.08);
}

.page-manager-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6f8fc;
}

.page-manager-head small {
  display: block;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-manager-head strong {
  color: #12204a;
  font-size: 0.95rem;
}

.page-editor-card .upload-preview {
  min-height: 84px;
  background: #f7fafc;
}

.page-editor-card .upload-preview img {
  max-height: 190px;
  object-fit: cover;
  border-radius: 14px;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page {
  max-width: 1180px;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page--story .managed-page-intro {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  background: #fffdf7;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page--story .managed-page-sections {
  grid-template-columns: minmax(0, 1fr);
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page--story .managed-page-sections article {
  max-width: 820px;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page--cards .managed-page-intro {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
  background: #f7fbff;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page--cards .managed-page-intro > div {
  max-width: 860px;
  margin: 0 auto;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page--cards .managed-page-media {
  display: none;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page--cards .managed-page-sections {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page--gallery .managed-page-intro {
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  background: #f7f1e8;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page--gallery .managed-page-media img {
  min-height: 430px;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page--gallery .managed-page-gallery {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 760px) {
  .subpage-manager-editor {
    grid-template-columns: 1fr;
  }

  .page-manager-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* Nyamira University College green landing theme */
body.home-landing:not(.dashboard-body):not(.portal-login-body) {
  background: #f5faf6 !important;
  color: #061f14 !important;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  width: 100% !important;
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(3, 54, 28, 0.08) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .utility-bar {
  min-height: 34px !important;
  width: 100% !important;
  padding: 0 clamp(22px, 5vw, 96px) !important;
  background: linear-gradient(90deg, #006b32, #014922) !important;
  color: #ffffff !important;
  border: 0 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .utility-left,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .utility-right {
  gap: 18px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .utility-right a {
  color: #ffffff !important;
  font-size: 0.8rem !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) #utility-socials a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .utility-socials a {
  width: 26px !important;
  height: 26px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border-radius: 50% !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
  width: 100% !important;
  max-width: none !important;
  min-height: 82px !important;
  margin: 0 !important;
  padding: 0 clamp(22px, 5vw, 96px) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #071b12 !important;
  box-shadow: none !important;
  border: 0 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand {
  min-width: 255px !important;
  color: #004b25 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand-logo {
  width: 58px !important;
  height: 58px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand strong {
  color: #00632d !important;
  font-size: 1rem !important;
  line-height: 1.05 !important;
  text-transform: uppercase !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand small {
  display: block !important;
  color: #071b12 !important;
  font-size: 0.82rem !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
  flex: 1 1 auto !important;
  justify-content: center !important;
  gap: clamp(12px, 1.6vw, 28px) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
  color: #071b12 !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  padding: 10px 0 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown:hover > a {
  color: #009640 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active::after {
  background: #009640 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .menu {
  background: #ffffff !important;
  border: 1px solid rgba(0, 100, 45, 0.14) !important;
  box-shadow: 0 20px 46px rgba(4, 41, 23, 0.16) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .menu a {
  color: #193728 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions {
  gap: 10px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab {
  width: 46px !important;
  min-width: 46px !important;
  padding: 0 !important;
  color: transparent !important;
  background: #ffffff !important;
  border: 1px solid rgba(3, 54, 28, 0.12) !important;
  box-shadow: 0 10px 28px rgba(3, 54, 28, 0.08) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab::before {
  content: "" !important;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid #071b12 !important;
  border-radius: 50% !important;
  display: block !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab::after {
  content: "" !important;
  width: 7px !important;
  height: 2px !important;
  background: #071b12 !important;
  display: block !important;
  transform: rotate(45deg) translate(8px, 3px) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions .apply-action-tab {
  min-width: 132px !important;
  height: 48px !important;
  padding: 0 26px !important;
  border-radius: 999px !important;
  background: #008f3a !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 12px 24px rgba(0, 128, 55, 0.22) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions .apply-action-tab::before {
  content: "" !important;
  width: 18px !important;
  height: 13px !important;
  margin-right: 8px !important;
  background: #ffffff !important;
  clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%) !important;
  display: inline-block !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) #menu-toggle {
  display: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  min-height: calc(100vh - 116px) !important;
  height: auto !important;
  padding: clamp(42px, 7vw, 92px) clamp(22px, 5vw, 96px) 126px !important;
  background: linear-gradient(90deg, #ffffff 0%, #f4faf6 42%, #dff2e8 100%) !important;
  overflow: hidden !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.95) 28%, rgba(255,255,255,0.28) 53%, rgba(255,255,255,0.02) 100%) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media img,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 72% center !important;
  filter: saturate(1.05) contrast(1.02) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-overlay,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-decor {
  display: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  position: relative !important;
  z-index: 3 !important;
  width: min(510px, 92vw) !important;
  max-width: 510px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p {
  display: inline-block !important;
  margin: 0 0 16px !important;
  padding: 8px 14px !important;
  border-left: 4px solid #f6c400 !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: #006b32 !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 {
  margin: 0 0 20px !important;
  color: #061f14 !important;
  font-size: clamp(3rem, 6vw, 5.8rem) !important;
  line-height: 0.94 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 span {
  display: block !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy h1 span:nth-child(2) {
  color: #007a35 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-subheader {
  display: block !important;
  margin: 0 0 18px !important;
  color: #061f14 !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle {
  display: block !important;
  max-width: 440px !important;
  color: #182c22 !important;
  font-size: 1.05rem !important;
  line-height: 1.72 !important;
  font-weight: 600 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
  margin-top: 28px !important;
  display: flex !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a {
  min-width: 160px !important;
  height: 52px !important;
  padding: 0 26px !important;
  border-radius: 6px !important;
  background: #008a3b !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  box-shadow: 0 16px 24px rgba(0, 105, 45, 0.22) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a.ghost {
  background: #ffffff !important;
  color: #061f14 !important;
  border: 1px solid rgba(6, 31, 20, 0.16) !important;
  box-shadow: 0 12px 24px rgba(4, 41, 23, 0.08) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 4 !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0 !important;
  max-width: none !important;
  width: 100% !important;
  padding: 18px clamp(22px, 5vw, 96px) !important;
  background: linear-gradient(90deg, #006b32, #004a24) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats article {
  min-height: 58px !important;
  padding: 4px 22px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.22) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats strong {
  color: #ffffff !important;
  font-size: 0.96rem !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats span {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .explore-ribbon,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-curve-transition {
  display: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-footer {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(90deg, #005f2d 0%, #00451f 62%, #006d35 100%) !important;
  color: #ffffff !important;
  padding: 0 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-footer::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 0 0 auto !important;
  width: min(34vw, 480px) !important;
  background: linear-gradient(90deg, rgba(0, 79, 37, 0.96), rgba(0, 79, 37, 0.42)), url("../assets/nyamira-campus-hero-hd.png") center / cover no-repeat !important;
  opacity: 0.95 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-shell {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: none !important;
  padding: 28px clamp(22px, 5vw, 96px) 22px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-topline {
  display: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-grid {
  display: grid !important;
  grid-template-columns: minmax(230px, 1.15fr) minmax(420px, 2.3fr) minmax(250px, 0.95fr) !important;
  gap: 28px !important;
  align-items: start !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-brand,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-column,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-newsletter {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-logo-row {
  gap: 12px !important;
  align-items: center !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-logo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-logo-row strong,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-footer h3 {
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-logo-row small,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-brand p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-brand address,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-brand a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-newsletter p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-column a {
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: 0.78rem !important;
  line-height: 1.65 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-links {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-column {
  border-left: 1px solid rgba(255, 255, 255, 0.22) !important;
  padding-left: 22px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-socials a {
  width: 24px !important;
  height: 24px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border-radius: 50% !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-newsletter form {
  display: flex !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-newsletter input {
  min-width: 0 !important;
  height: 38px !important;
  border-radius: 4px !important;
  border: 0 !important;
  padding: 0 12px !important;
  background: #ffffff !important;
  color: #061f14 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-newsletter button {
  height: 38px !important;
  border-radius: 4px !important;
  background: #009640 !important;
  color: #ffffff !important;
  padding: 0 16px !important;
  border: 0 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-bottom {
  margin-top: 24px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: 0.75rem !important;
}

@media (max-width: 980px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    display: none !important;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) #menu-toggle {
    display: inline-flex !important;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-media::before {
    background: linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.72)) !important;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-grid,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .footer-links {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 620px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .utility-bar,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .utility-right {
    display: none !important;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    min-height: 74px !important;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand {
    min-width: 0 !important;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand strong {
    font-size: 0.82rem !important;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
    min-height: 760px !important;
    padding-bottom: 260px !important;
  }

  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-stats {
    grid-template-columns: 1fr !important;
  }
}

/* Unified Nyamira green theme across all public pages */
body:not(.dashboard-body):not(.portal-login-body) {
  background: #f5faf6 !important;
  color: #071b12 !important;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  width: 100% !important;
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(3, 54, 28, 0.08) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .utility-bar {
  min-height: 34px !important;
  width: 100% !important;
  padding: 0 clamp(22px, 5vw, 96px) !important;
  background: linear-gradient(90deg, #006b32, #014922) !important;
  color: #ffffff !important;
  border: 0 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .utility-left,
body:not(.dashboard-body):not(.portal-login-body) .utility-right {
  gap: 18px !important;
}

body:not(.dashboard-body):not(.portal-login-body) .utility-right a {
  color: #ffffff !important;
}

body:not(.dashboard-body):not(.portal-login-body) #utility-socials a,
body:not(.dashboard-body):not(.portal-login-body) .utility-socials a {
  width: 26px !important;
  height: 26px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border-radius: 50% !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav {
  width: 100% !important;
  max-width: none !important;
  min-height: 82px !important;
  margin: 0 !important;
  padding: 0 clamp(22px, 5vw, 96px) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #071b12 !important;
  box-shadow: none !important;
  border: 0 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand {
  min-width: 255px !important;
  color: #004b25 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand-logo {
  width: 58px !important;
  height: 58px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand strong {
  color: #00632d !important;
  font-size: 1rem !important;
  line-height: 1.05 !important;
  text-transform: uppercase !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand small {
  color: #071b12 !important;
  font-size: 0.82rem !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
  flex: 1 1 auto !important;
  justify-content: center !important;
  gap: clamp(12px, 1.6vw, 28px) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
body:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
  color: #071b12 !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  padding: 10px 0 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active,
body:not(.dashboard-body):not(.portal-login-body) .dropdown:hover > a,
body:not(.dashboard-body):not(.portal-login-body) .dropdown:focus-within > a {
  color: #009640 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active::after {
  background: #009640 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .menu {
  background: #ffffff !important;
  border: 1px solid rgba(0, 100, 45, 0.14) !important;
  box-shadow: 0 20px 46px rgba(4, 41, 23, 0.16) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .menu a {
  color: #193728 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions {
  gap: 10px !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab {
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  color: transparent !important;
  background: #ffffff !important;
  border: 1px solid rgba(3, 54, 28, 0.12) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 28px rgba(3, 54, 28, 0.08) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab::before {
  content: "" !important;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid #071b12 !important;
  border-radius: 50% !important;
  display: block !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab::after {
  content: "" !important;
  width: 7px !important;
  height: 2px !important;
  background: #071b12 !important;
  display: block !important;
  transform: rotate(45deg) translate(8px, 3px) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions .apply-action-tab,
body:not(.dashboard-body):not(.portal-login-body) .apply-btn,
body:not(.dashboard-body):not(.portal-login-body) .landing-apply-btn {
  min-width: 132px !important;
  height: 48px !important;
  padding: 0 26px !important;
  border-radius: 999px !important;
  background: #008f3a !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 12px 24px rgba(0, 128, 55, 0.22) !important;
}

body:not(.dashboard-body):not(.portal-login-body) #menu-toggle {
  background: #e8f6ee !important;
  color: #071b12 !important;
  border-radius: 50% !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) main,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage {
  background: #f5faf6 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page {
  max-width: 1180px !important;
  padding: clamp(52px, 7vw, 96px) clamp(18px, 4vw, 42px) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro {
  background: #ffffff !important;
  border: 1px solid rgba(0, 100, 45, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 50px rgba(4, 41, 23, 0.08) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) #page-eyebrow,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .eyebrow {
  color: #008f3a !important;
  letter-spacing: 0.12em !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) #page-title,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) h1,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) h2,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) h3 {
  color: #061f14 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) p,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .page-body {
  color: #284336 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-media img,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-gallery img {
  border-radius: 18px !important;
  box-shadow: 0 18px 42px rgba(4, 41, 23, 0.12) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid a,
body:not(.dashboard-body):not(.portal-login-body) .managed-card,
body:not(.dashboard-body):not(.portal-login-body) .visual-card,
body:not(.dashboard-body):not(.portal-login-body) .news-card,
body:not(.dashboard-body):not(.portal-login-body) .campus-card,
body:not(.dashboard-body):not(.portal-login-body) .event-card,
body:not(.dashboard-body):not(.portal-login-body) .video-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 100, 45, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(4, 41, 23, 0.08) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid a:hover,
body:not(.dashboard-body):not(.portal-login-body) .text-link,
body:not(.dashboard-body):not(.portal-login-body) a {
  color: #007a35;
}

body:not(.dashboard-body):not(.portal-login-body) .site-footer {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(90deg, #005f2d 0%, #00451f 62%, #006d35 100%) !important;
  color: #ffffff !important;
  padding: 0 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .site-footer::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 0 0 auto !important;
  width: min(34vw, 480px) !important;
  background: linear-gradient(90deg, rgba(0, 79, 37, 0.96), rgba(0, 79, 37, 0.42)), url("../assets/nyamira-campus-hero-hd.png") center / cover no-repeat !important;
  opacity: 0.95 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .footer-shell {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: none !important;
  padding: 28px clamp(22px, 5vw, 96px) 22px !important;
}

body:not(.dashboard-body):not(.portal-login-body) .footer-grid {
  grid-template-columns: minmax(230px, 1.15fr) minmax(420px, 2.3fr) minmax(250px, 0.95fr) !important;
  gap: 28px !important;
}

body:not(.dashboard-body):not(.portal-login-body) .footer-links {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

body:not(.dashboard-body):not(.portal-login-body) .footer-brand,
body:not(.dashboard-body):not(.portal-login-body) .footer-column,
body:not(.dashboard-body):not(.portal-login-body) .footer-newsletter {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .footer-column {
  border-left: 1px solid rgba(255, 255, 255, 0.22) !important;
  padding-left: 22px !important;
}

body:not(.dashboard-body):not(.portal-login-body) .footer-logo-row strong,
body:not(.dashboard-body):not(.portal-login-body) .site-footer h3 {
  color: #ffffff !important;
  text-transform: uppercase !important;
}

body:not(.dashboard-body):not(.portal-login-body) .footer-logo-row small,
body:not(.dashboard-body):not(.portal-login-body) .footer-brand p,
body:not(.dashboard-body):not(.portal-login-body) .footer-brand address,
body:not(.dashboard-body):not(.portal-login-body) .footer-brand a,
body:not(.dashboard-body):not(.portal-login-body) .footer-newsletter p,
body:not(.dashboard-body):not(.portal-login-body) .footer-column a,
body:not(.dashboard-body):not(.portal-login-body) .footer-bottom {
  color: rgba(255, 255, 255, 0.84) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .footer-newsletter input {
  background: #ffffff !important;
  color: #061f14 !important;
  border: 0 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .footer-newsletter button {
  background: #009640 !important;
  color: #ffffff !important;
  border: 0 !important;
}

@media (max-width: 980px) {
  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    display: none !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav.open {
    display: flex !important;
    background: #ffffff !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .footer-grid,
  body:not(.dashboard-body):not(.portal-login-body) .footer-links {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 620px) {
  body:not(.dashboard-body):not(.portal-login-body) .utility-bar,
  body:not(.dashboard-body):not(.portal-login-body) .utility-right {
    display: none !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .main-nav {
    min-height: 74px !important;
  }

  body:not(.dashboard-body):not(.portal-login-body) .brand {
    min-width: 0 !important;
  }
}

/* Readable homepage hero wording card */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  width: min(560px, calc(100vw - 44px)) !important;
  max-width: 560px !important;
  margin: clamp(18px, 5vw, 52px) 0 0 clamp(18px, 5vw, 72px) !important;
  padding: clamp(22px, 3vw, 34px) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 24px 60px rgba(4, 41, 23, 0.18) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy p {
  background: rgba(246, 196, 0, 0.18) !important;
  color: #005f2d !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-subheader,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle {
  color: #071b12 !important;
  text-shadow: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
  margin-top: 24px !important;
}

@media (max-width: 620px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
    margin: 20px auto 0 !important;
    padding: 22px !important;
  }
}

/* Keep homepage sections in the green Nyamira theme */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .home-main,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .landing-programmes,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-content-section,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .cards-section,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .carousel-section,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .events-home,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .featured-videos-home,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news {
  background: #f5faf6 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-section {
  background:
    radial-gradient(circle at top left, rgba(0, 150, 64, 0.12), transparent 34%),
    linear-gradient(135deg, #eef8f1 0%, #ffffff 56%, #e3f3e8 100%) !important;
  border-top: 1px solid rgba(0, 100, 45, 0.12) !important;
  border-bottom: 1px solid rgba(0, 100, 45, 0.12) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-media {
  background: #ffffff !important;
  border: 1px solid rgba(0, 100, 45, 0.14) !important;
  box-shadow: 0 22px 55px rgba(4, 41, 23, 0.14) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-media img {
  border-radius: 18px !important;
  filter: saturate(1.08) contrast(1.02) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-copy {
  padding: clamp(22px, 3vw, 36px) !important;
  border-left: 5px solid #009640 !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 18px 44px rgba(4, 41, 23, 0.08) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-kicker,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .section-head .eyebrow,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .center-head .eyebrow {
  color: #008f3a !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-copy h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .section-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .center-head h2 {
  color: #061f14 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-copy p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .section-head p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .center-head p {
  color: #284336 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .about-home-copy a {
  border-color: #008f3a !important;
  background: #008f3a !important;
  color: #ffffff !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-section {
  background:
    linear-gradient(90deg, rgba(0, 74, 36, 0.94), rgba(0, 107, 50, 0.84)),
    url("../assets/nyamira-students-campus-green.png") center / cover no-repeat !important;
  color: #ffffff !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid p {
  color: #ffffff !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid article {
  background: rgba(255, 255, 255, 0.11) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .program-strip a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .visual-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .news-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .campus-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .event-card,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .video-card {
  background: #ffffff !important;
  border-color: rgba(0, 100, 45, 0.14) !important;
  box-shadow: 0 18px 40px rgba(4, 41, 23, 0.08) !important;
}

/* Visible card filters and green card action buttons */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-filterbar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: flex-end !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-filterbar button {
  opacity: 1 !important;
  visibility: visible !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 100, 45, 0.22) !important;
  background: #ffffff !important;
  color: #064523 !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  box-shadow: 0 10px 24px rgba(4, 41, 23, 0.08) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-filterbar button.active,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-filterbar button:hover,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-filterbar button:focus-visible {
  background: #008f3a !important;
  border-color: #008f3a !important;
  color: #ffffff !important;
  outline: none !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body strong,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-grid .managed-card-body strong {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  background: #008f3a !important;
  color: #ffffff !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  box-shadow: 0 12px 22px rgba(0, 128, 55, 0.24) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body h3,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-grid .managed-card-body h3 {
  color: #061f14 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .managed-card-body p,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .card-grid .managed-card-body p {
  color: #304b3e !important;
}

/* Compact hero card, visible Why Choose section, and course-demo subpage cards */
body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy {
  width: fit-content !important;
  max-width: min(470px, calc(100vw - 44px)) !important;
  margin: clamp(16px, 4vw, 44px) 0 0 clamp(18px, 5vw, 64px) !important;
  padding: clamp(18px, 2.4vw, 26px) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 20px 46px rgba(4, 41, 23, 0.18) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-subheader {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  margin-bottom: 14px !important;
  padding: 8px 12px 8px 14px !important;
  border-left: 4px solid #f4c400 !important;
  background: rgba(246, 196, 0, 0.16) !important;
  color: #082416 !important;
  line-height: 1.25 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-copy #hero-subtitle {
  max-width: 390px !important;
  color: #10291b !important;
  font-weight: 700 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions {
  margin-top: 20px !important;
  gap: 12px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero-actions a {
  min-width: 150px !important;
  height: 48px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-section {
  position: relative !important;
  min-height: 620px !important;
  padding: clamp(64px, 8vw, 100px) clamp(22px, 5vw, 96px) !important;
  background: url("../assets/nyamira-students-campus-green.png") center / cover no-repeat !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-section::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(90deg, rgba(0, 61, 29, 0.88), rgba(0, 93, 43, 0.78)) !important;
  z-index: 0 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-inner {
  position: relative !important;
  z-index: 1 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head {
  max-width: 760px !important;
  margin: 0 auto 46px !important;
  text-align: center !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head .eyebrow,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head h2,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-head p {
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.22) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 24px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid article {
  min-height: auto !important;
  padding: 30px 26px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(10px) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid h3 {
  color: #052114 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid p {
  color: #304b3e !important;
  font-weight: 650 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-icon {
  border-color: #009640 !important;
  color: #008f3a !important;
  background: #eef8f1 !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid a {
  background: #008f3a !important;
  color: #ffffff !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page {
  max-width: 1120px !important;
  padding-top: clamp(44px, 6vw, 76px) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px) !important;
  gap: clamp(28px, 5vw, 64px) !important;
  align-items: center !important;
  padding: clamp(34px, 6vw, 62px) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) #page-title {
  font-size: clamp(2.7rem, 5.4vw, 4.6rem) !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) #page-body {
  max-width: 620px !important;
  font-size: 1.04rem !important;
  line-height: 1.8 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-media img {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  min-height: 0 !important;
  object-fit: cover !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 24px !important;
  margin-top: 42px !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article {
  min-height: auto !important;
  padding: 28px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 100, 45, 0.12) !important;
  box-shadow: 0 18px 38px rgba(4, 41, 23, 0.08) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article::before {
  content: "" !important;
  display: block !important;
  width: 42px !important;
  height: 4px !important;
  margin-bottom: 18px !important;
  border-radius: 999px !important;
  background: #009640 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections h2 {
  font-size: 1.2rem !important;
  line-height: 1.25 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections p {
  color: #304b3e !important;
}

@media (max-width: 820px) {
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .why-choose-grid,
  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro {
    grid-template-columns: 1fr !important;
  }
}

/* Footer readability over any uploaded footer/background image */
body:not(.dashboard-body):not(.portal-login-body) .footer-bottom {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-top: 22px !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(0, 50, 24, 0.82) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16) !important;
  backdrop-filter: blur(8px) saturate(1.08) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .footer-bottom,
body:not(.dashboard-body):not(.portal-login-body) .footer-bottom span,
body:not(.dashboard-body):not(.portal-login-body) .footer-bottom a {
  color: #ffffff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .footer-bottom a {
  font-weight: 800 !important;
  text-decoration: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .footer-bottom a:hover {
  color: #f4c400 !important;
}

@media (max-width: 720px) {
  body:not(.dashboard-body):not(.portal-login-body) .footer-bottom {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}

/* Final unified green subpage opening and card system */
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) {
  background:
    linear-gradient(90deg, #f4f8f6 0, #eef8f1 23%, #f8f5ee 50%, #eef8f1 77%, #f4f8f6 100%) !important;
  color: #061f14 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .site-header,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .shared-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(0, 95, 45, 0.08) !important;
  box-shadow: 0 18px 44px rgba(0, 65, 31, 0.08) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: clamp(54px, 6vw, 84px) clamp(18px, 4vw, 36px) clamp(70px, 8vw, 110px) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 440px) !important;
  gap: clamp(30px, 5vw, 70px) !important;
  align-items: center !important;
  min-height: 0 !important;
  padding: clamp(38px, 5.6vw, 70px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 91, 43, 0.13) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 83% 18%, rgba(0, 150, 64, 0.08), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #ffffff 60%, #f4faf6 100%) !important;
  box-shadow: 0 26px 80px rgba(0, 73, 35, 0.12) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro::before,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro::after {
  display: none !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro > div {
  max-width: 660px !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro .eyebrow {
  display: inline-flex !important;
  width: fit-content !important;
  margin: 0 0 22px !important;
  color: #008f3a !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro h1,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) #page-title {
  max-width: 650px !important;
  margin: 0 !important;
  color: #062617 !important;
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif !important;
  font-size: clamp(3.4rem, 6.3vw, 5.35rem) !important;
  font-weight: 900 !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro p:not(.eyebrow),
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) #page-body {
  max-width: 560px !important;
  margin-top: 22px !important;
  color: #405775 !important;
  font-size: clamp(1rem, 1.3vw, 1.12rem) !important;
  font-weight: 600 !important;
  line-height: 1.75 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-media {
  margin: 0 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-media img {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 60px rgba(3, 38, 20, 0.14) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: 18px !important;
  margin: clamp(34px, 5vw, 54px) 0 0 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid a {
  position: relative !important;
  min-height: 0 !important;
  padding: 22px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 95, 45, 0.12) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px rgba(0, 73, 35, 0.08) !important;
  color: #082416 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article::before {
  content: "" !important;
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 0 16px !important;
  border: 1px solid rgba(0, 150, 64, 0.22) !important;
  border-radius: 10px !important;
  background:
    linear-gradient(135deg, rgba(0, 150, 64, 0.16), rgba(244, 196, 0, 0.13)),
    #f2fbf5 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article h2 {
  margin: 0 0 10px !important;
  color: #082416 !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article p {
  margin: 0 !important;
  color: #3f5649 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.65 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: 18px !important;
  margin-top: 18px !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-height: 70px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid a::after {
  content: "->" !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 auto !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: #008f3a !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .link-grid a:hover,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-sections article:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(0, 150, 64, 0.28) !important;
  box-shadow: 0 24px 54px rgba(0, 73, 35, 0.13) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .footer-bottom,
body:not(.dashboard-body):not(.portal-login-body) .footer-bottom * {
  color: #ffffff !important;
  opacity: 1 !important;
}

@media (max-width: 920px) {
  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro {
    grid-template-columns: 1fr !important;
    padding: clamp(28px, 7vw, 42px) !important;
  }

  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page-intro h1,
  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) #page-title {
    font-size: clamp(2.45rem, 12vw, 4rem) !important;
  }
}

/* V82 screenshot-style subpage design: wide green visual hero, white cards, clean section separation */
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) {
  background: #f6faf7 !important;
  color: #13251b !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) main.subpage,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 72px !important;
  overflow: hidden !important;
}

.subpage-visual-hero {
  position: relative !important;
  isolation: isolate !important;
  min-height: clamp(310px, 34vw, 430px) !important;
  display: flex !important;
  align-items: stretch !important;
  overflow: hidden !important;
  background: #063b20 !important;
  color: #ffffff !important;
  border-radius: 0 !important;
  box-shadow: 0 22px 70px rgba(0, 48, 24, 0.14) !important;
}

.subpage-visual-hero__image {
  position: absolute !important;
  inset: 0 0 0 auto !important;
  width: min(64%, 980px) !important;
  background-size: cover !important;
  background-position: center !important;
  transform: scale(1.01) !important;
  z-index: -3 !important;
}

.subpage-visual-hero__overlay {
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(90deg, rgba(0, 73, 36, 0.98) 0%, rgba(0, 73, 36, 0.93) 31%, rgba(0, 73, 36, 0.70) 47%, rgba(0, 73, 36, 0.18) 68%, rgba(0, 73, 36, 0.08) 100%),
    radial-gradient(circle at 28% 78%, rgba(244, 196, 0, 0.22), transparent 24%) !important;
  z-index: -2 !important;
}

.subpage-visual-hero__copy {
  width: min(1180px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
  padding: clamp(44px, 6.2vw, 90px) 0 clamp(38px, 5.5vw, 76px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.subpage-breadcrumb {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 18px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
  text-transform: none !important;
}

.subpage-breadcrumb a {
  color: #ffffff !important;
  text-decoration: none !important;
}

.subpage-breadcrumb span {
  opacity: 0.58 !important;
}

.subpage-visual-hero h1,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-hero #page-title {
  max-width: 560px !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2.5rem, 4.85vw, 4.95rem) !important;
  font-weight: 800 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.24) !important;
}

.subpage-title-line {
  width: 72px !important;
  height: 5px !important;
  margin: 20px 0 24px !important;
  border-radius: 999px !important;
  background: #f4c400 !important;
}

.subpage-visual-hero p:not(.subpage-breadcrumb),
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-hero #page-body {
  max-width: 520px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(0.98rem, 1.25vw, 1.16rem) !important;
  font-weight: 600 !important;
  line-height: 1.75 !important;
}

.subpage-visual-body,
.subpage-visual-simple > :not(.subpage-visual-hero) {
  width: min(1180px, calc(100% - 48px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.subpage-visual-section {
  width: min(1180px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
  padding-top: clamp(34px, 5vw, 58px) !important;
}

.subpage-section-head {
  margin: 0 0 20px !important;
}

.subpage-section-head h2,
.subpage-panel-card h2,
.subpage-cta-band h2 {
  margin: 0 0 6px !important;
  color: #17243a !important;
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif !important;
  font-size: clamp(1.3rem, 2vw, 1.85rem) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
}

.subpage-section-head p,
.subpage-panel-card > p,
.subpage-cta-band p {
  max-width: 720px !important;
  margin: 0 !important;
  color: #42564a !important;
  font-size: 0.95rem !important;
  font-weight: 650 !important;
  line-height: 1.65 !important;
}

.subpage-card-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: 16px !important;
}

.subpage-card-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.subpage-card-grid--six {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.subpage-info-card,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-info-card {
  position: relative !important;
  min-height: 184px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 24px !important;
  border: 1px solid rgba(0, 96, 47, 0.12) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #17243a !important;
  text-decoration: none !important;
  box-shadow: 0 16px 44px rgba(8, 49, 25, 0.075) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
  overflow: hidden !important;
}

.subpage-info-card::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 0 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #006b34, #f4c400) !important;
  transform: scaleX(0) !important;
  transform-origin: left !important;
  transition: transform 0.22s ease !important;
}

.subpage-info-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(0, 123, 58, 0.28) !important;
  box-shadow: 0 24px 60px rgba(8, 49, 25, 0.12) !important;
}

.subpage-info-card:hover::after {
  transform: scaleX(1) !important;
}

.subpage-card-icon {
  width: 43px !important;
  height: 43px !important;
  display: inline-grid !important;
  place-items: center !important;
  color: #006b34 !important;
  background: #f1faf4 !important;
  border: 1px solid rgba(0, 107, 52, 0.16) !important;
  border-radius: 10px !important;
}

.subpage-card-icon svg {
  width: 29px !important;
  height: 29px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.subpage-info-card h3 {
  margin: 2px 0 0 !important;
  color: #17243a !important;
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif !important;
  font-size: 1.02rem !important;
  font-weight: 900 !important;
  line-height: 1.28 !important;
}

.subpage-info-card p {
  margin: 0 !important;
  color: #485b50 !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
}

.subpage-info-card strong {
  margin-top: auto !important;
  color: #006b34 !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
}

.subpage-info-card strong span {
  display: inline-block !important;
  padding-left: 3px !important;
}

.subpage-image-strip {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 14px !important;
}

.subpage-photo-card {
  overflow: hidden !important;
  border: 1px solid rgba(0, 96, 47, 0.10) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 38px rgba(8, 49, 25, 0.075) !important;
}

.subpage-photo-card img {
  display: block !important;
  width: 100% !important;
  height: 138px !important;
  object-fit: cover !important;
}

.subpage-photo-card h3 {
  margin: 12px 14px 4px !important;
  color: #17243a !important;
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

.subpage-photo-card p {
  margin: 0 14px 14px !important;
  color: #4d6257 !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

.subpage-cta-band {
  width: min(1180px, calc(100% - 48px)) !important;
  min-height: 154px !important;
  margin: clamp(34px, 5vw, 58px) auto 0 !important;
  display: grid !important;
  grid-template-columns: 1fr minmax(240px, 470px) !important;
  align-items: stretch !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 96, 47, 0.10) !important;
  background:
    linear-gradient(90deg, #ecf8ef 0%, #f8fbf4 48%, rgba(255,255,255,0.84) 100%) !important;
  box-shadow: 0 18px 54px rgba(8, 49, 25, 0.09) !important;
}

.subpage-cta-band > div {
  padding: 26px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

.subpage-cta-band a,
.subpage-green-box a,
.subpage-text-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 16px !important;
  padding: 11px 18px !important;
  border-radius: 8px !important;
  background: #006b34 !important;
  color: #ffffff !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.subpage-cta-band img {
  width: 100% !important;
  height: 100% !important;
  min-height: 154px !important;
  object-fit: cover !important;
}

.subpage-split-panel {
  width: min(1180px, calc(100% - 48px)) !important;
  margin: clamp(30px, 4.5vw, 48px) auto 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 24px !important;
}

.subpage-panel-card {
  padding: 24px !important;
  border: 1px solid rgba(0, 96, 47, 0.10) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 54px rgba(8, 49, 25, 0.08) !important;
}

.subpage-highlight-list {
  display: grid !important;
  gap: 12px !important;
  margin-top: 18px !important;
}

.subpage-highlight-list article {
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
}

.subpage-highlight-list img {
  width: 112px !important;
  height: 74px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}

.subpage-highlight-list h3 {
  margin: 0 0 4px !important;
  color: #17243a !important;
  font-size: 0.96rem !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

.subpage-highlight-list p {
  margin: 0 0 3px !important;
  color: #52665b !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
}

.subpage-highlight-list a {
  color: #006b34 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.subpage-impact-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0 !important;
  margin: 20px 0 !important;
  border: 1px solid rgba(0, 96, 47, 0.10) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

.subpage-impact-grid strong {
  min-height: 82px !important;
  display: grid !important;
  place-items: center !important;
  padding: 14px 10px !important;
  color: #006b34 !important;
  font-size: 1.5rem !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  border-right: 1px solid rgba(0, 96, 47, 0.10) !important;
  border-bottom: 1px solid rgba(0, 96, 47, 0.10) !important;
}

.subpage-impact-grid strong span {
  display: block !important;
  margin-top: 4px !important;
  color: #52665b !important;
  font-size: 0.67rem !important;
  font-weight: 750 !important;
}

.subpage-green-box {
  padding: 18px !important;
  border-radius: 10px !important;
  background: #006b34 !important;
  color: #ffffff !important;
}

.subpage-green-box h3 {
  margin: 0 0 4px !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
}

.subpage-green-box p {
  margin: 0 !important;
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
}

.subpage-green-box a {
  background: #ffffff !important;
  color: #006b34 !important;
}

/* Apply the same visual system to older subpages like News, Events and Schools without breaking their dynamic grids. */
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-simple {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 72px !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-simple .news-page-grid,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-simple .schools-page-grid,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-simple .events-page-grid {
  padding-top: clamp(34px, 5vw, 58px) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-simple .visual-card,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-simple .news-card,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-simple .event-card {
  border: 1px solid rgba(0, 96, 47, 0.12) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 44px rgba(8, 49, 25, 0.075) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-simple .visual-card h3,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-simple .news-card h3,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-simple .event-card h3 {
  color: #17243a !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-simple .visual-card p,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-simple .news-card p,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-simple .event-card p {
  color: #4d6257 !important;
}

@media (max-width: 1160px) {
  .subpage-card-grid--five,
  .subpage-card-grid--six {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 840px) {
  .subpage-visual-hero {
    min-height: auto !important;
  }

  .subpage-visual-hero__image {
    width: 100% !important;
    opacity: 0.34 !important;
  }

  .subpage-visual-hero__overlay {
    background: linear-gradient(90deg, rgba(0,73,36,0.98), rgba(0,73,36,0.82)) !important;
  }

  .subpage-visual-hero__copy,
  .subpage-visual-section,
  .subpage-visual-body,
  .subpage-visual-simple > :not(.subpage-visual-hero),
  .subpage-cta-band,
  .subpage-split-panel {
    width: min(100% - 32px, 1180px) !important;
  }

  .subpage-visual-hero h1,
  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-hero #page-title {
    font-size: clamp(2.18rem, 12vw, 3.6rem) !important;
  }

  .subpage-card-grid,
  .subpage-card-grid--five,
  .subpage-card-grid--six,
  .subpage-image-strip,
  .subpage-split-panel,
  .subpage-cta-band {
    grid-template-columns: 1fr !important;
  }

  .subpage-cta-band img {
    min-height: 180px !important;
  }

  .subpage-impact-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 520px) {
  .subpage-highlight-list article {
    grid-template-columns: 88px minmax(0, 1fr) !important;
  }

  .subpage-highlight-list img {
    width: 88px !important;
    height: 70px !important;
  }

  .subpage-impact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* V84: same landing-page navigation on every public page + screenshot-style subpages */
body:not(.dashboard-body):not(.portal-login-body) .site-header {
  position: relative !important;
  top: auto !important;
  inset: auto !important;
  z-index: 1000 !important;
  width: 100% !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 75, 38, 0.10) !important;
  box-shadow: 0 12px 34px rgba(0, 45, 22, 0.08) !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .site-header {
  position: relative !important;
  inset: auto !important;
  background: #ffffff !important;
}

body:not(.dashboard-body):not(.portal-login-body) .utility-bar,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .utility-bar {
  display: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
  width: 100% !important;
  max-width: none !important;
  min-height: 78px !important;
  margin: 0 !important;
  padding: 0 clamp(18px, 4vw, 58px) !important;
  display: grid !important;
  grid-template-columns: minmax(250px, 1fr) auto minmax(170px, 1fr) !important;
  align-items: center !important;
  gap: 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 13px !important;
  text-decoration: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand-logo,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand-logo {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(0, 75, 38, 0.10) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand strong,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand strong {
  color: #005f2d !important;
  font-size: clamp(0.92rem, 1.2vw, 1.05rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

body:not(.dashboard-body):not(.portal-login-body) .brand small,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand small {
  display: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: clamp(16px, 2vw, 30px) !important;
  width: auto !important;
  min-width: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
body:not(.dashboard-body):not(.portal-login-body) .dropdown > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
  min-height: 78px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #050505 !important;
  font-size: 0.93rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a:hover,
body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active,
body:not(.dashboard-body):not(.portal-login-body) .dropdown:hover > a,
body:not(.dashboard-body):not(.portal-login-body) .dropdown:focus-within > a,
body:not(.dashboard-body):not(.portal-login-body) .dropdown.active > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a:hover,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown:hover > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown:focus-within > a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown.active > a {
  color: #008f3a !important;
}

body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active::after,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a.active::after {
  content: none !important;
  display: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .dropdown,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown {
  position: relative !important;
}

body:not(.dashboard-body):not(.portal-login-body) .dropdown > a::after,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a::after {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  margin-top: -4px !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  transform: rotate(45deg) !important;
}

body:not(.dashboard-body):not(.portal-login-body) .menu,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .menu {
  display: none !important;
  position: absolute !important;
  top: 68px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  min-width: 290px !important;
  padding: 16px !important;
  border: 1px solid rgba(0, 95, 45, 0.14) !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 70px rgba(0, 45, 22, 0.18) !important;
  z-index: 1200 !important;
}

body:not(.dashboard-body):not(.portal-login-body) .dropdown:hover .menu,
body:not(.dashboard-body):not(.portal-login-body) .dropdown:focus-within .menu,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown:hover .menu,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown:focus-within .menu {
  display: block !important;
}

body:not(.dashboard-body):not(.portal-login-body) .menu a,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .menu a {
  display: block !important;
  min-height: 0 !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  color: #21362b !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .menu a:hover,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .menu a:hover {
  background: #f0faf3 !important;
  color: #008f3a !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions {
  justify-self: end !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #eaf8ef !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: none !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab::before,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab::before {
  content: "" !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  border: 3px solid #008f3a !important;
  border-radius: 999px !important;
  margin: 10px 0 0 10px !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab::after,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab::after {
  content: "" !important;
  display: block !important;
  width: 10px !important;
  height: 3px !important;
  background: #008f3a !important;
  border-radius: 999px !important;
  transform: rotate(45deg) !important;
  margin: -2px 0 0 25px !important;
}

body:not(.dashboard-body):not(.portal-login-body) .nav-actions .apply-action-tab,
body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions .apply-action-tab {
  width: auto !important;
  min-width: 132px !important;
  height: 48px !important;
  padding: 0 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #008f3a !important;
  color: #ffffff !important;
  font-size: 0.94rem !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 34px rgba(0, 143, 58, 0.22) !important;
}

body:not(.dashboard-body):not(.portal-login-body) #menu-toggle,
body.home-landing:not(.dashboard-body):not(.portal-login-body) #menu-toggle {
  display: none !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #eaf8ef !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: none !important;
  position: relative !important;
}

body:not(.dashboard-body):not(.portal-login-body) #menu-toggle::before,
body.home-landing:not(.dashboard-body):not(.portal-login-body) #menu-toggle::before {
  content: "" !important;
  position: absolute !important;
  left: 13px !important;
  top: 14px !important;
  width: 18px !important;
  height: 12px !important;
  border-top: 3px solid #008f3a !important;
  border-bottom: 3px solid #008f3a !important;
}

body:not(.dashboard-body):not(.portal-login-body) #menu-toggle::after,
body.home-landing:not(.dashboard-body):not(.portal-login-body) #menu-toggle::after {
  content: "" !important;
  position: absolute !important;
  left: 13px !important;
  top: 21px !important;
  width: 18px !important;
  height: 3px !important;
  background: #008f3a !important;
  border-radius: 999px !important;
}

body.home-landing:not(.dashboard-body):not(.portal-login-body) .hero.full-bleed-hero {
  padding-top: 0 !important;
}

/* Make every subpage open with the reference design: green image hero first, then content downward. */
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) main.subpage,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 72px !important;
  background: #f6faf7 !important;
  overflow: hidden !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-hero {
  width: 100% !important;
  min-height: clamp(310px, 32vw, 440px) !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #004d27 !important;
  box-shadow: 0 18px 48px rgba(0, 59, 30, 0.14) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-hero__image {
  inset: 0 0 0 auto !important;
  width: min(65%, 1040px) !important;
  background-size: cover !important;
  background-position: center !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-hero__overlay {
  background:
    linear-gradient(90deg, rgba(0, 75, 38, 0.98) 0%, rgba(0, 75, 38, 0.94) 28%, rgba(0, 75, 38, 0.70) 48%, rgba(0, 75, 38, 0.20) 70%, rgba(0, 75, 38, 0.08) 100%),
    radial-gradient(circle at 28% 78%, rgba(244, 196, 0, 0.22), transparent 24%) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-hero__copy {
  width: min(1180px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
  padding: clamp(50px, 6vw, 86px) 0 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-hero h1,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-hero #page-title {
  max-width: 560px !important;
  color: #ffffff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2.55rem, 4.8vw, 4.95rem) !important;
  font-weight: 800 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-hero p:not(.subpage-breadcrumb),
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-hero #page-body {
  max-width: 520px !important;
  color: rgba(255, 255, 255, 0.93) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-body,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-simple > :not(.subpage-visual-hero) {
  width: min(1180px, calc(100% - 48px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Fallback for old cached page-content.js: style the old managed-page intro as the same visual hero. */
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 72px !important;
  background: #f6faf7 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) .managed-page-intro {
  position: relative !important;
  isolation: isolate !important;
  width: 100% !important;
  min-height: clamp(310px, 32vw, 440px) !important;
  margin: 0 !important;
  padding: clamp(50px, 6vw, 86px) max(24px, calc((100% - 1180px) / 2)) !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #004d27 !important;
  box-shadow: 0 18px 48px rgba(0, 59, 30, 0.14) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) .managed-page-intro::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background:
    linear-gradient(90deg, rgba(0, 75, 38, 0.98) 0%, rgba(0, 75, 38, 0.94) 28%, rgba(0, 75, 38, 0.70) 48%, rgba(0, 75, 38, 0.20) 70%, rgba(0, 75, 38, 0.08) 100%),
    radial-gradient(circle at 28% 78%, rgba(244, 196, 0, 0.22), transparent 24%) !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) .managed-page-intro > div {
  width: min(560px, 100%) !important;
  max-width: 560px !important;
  z-index: 2 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) .managed-page-media {
  display: block !important;
  position: absolute !important;
  inset: 0 0 0 auto !important;
  width: min(65%, 1040px) !important;
  height: 100% !important;
  margin: 0 !important;
  z-index: -2 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) .managed-page-media img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) #page-eyebrow,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) .eyebrow {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) #page-title {
  max-width: 560px !important;
  color: #ffffff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2.55rem, 4.8vw, 4.95rem) !important;
  font-weight: 800 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) #page-body {
  max-width: 520px !important;
  color: rgba(255, 255, 255, 0.93) !important;
  font-weight: 650 !important;
}

body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) .managed-page-sections,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) .link-grid,
body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) .managed-page-gallery {
  width: min(1180px, calc(100% - 48px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1180px) {
  body:not(.dashboard-body):not(.portal-login-body) .main-nav,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    grid-template-columns: minmax(230px, 1fr) auto auto !important;
    gap: 14px !important;
    padding: 0 18px !important;
  }
  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    gap: 16px !important;
  }
  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
  body:not(.dashboard-body):not(.portal-login-body) .dropdown > a,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 980px) {
  body:not(.dashboard-body):not(.portal-login-body) .main-nav,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav {
    grid-template-columns: 1fr auto !important;
    min-height: 74px !important;
  }
  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav {
    display: none !important;
    position: absolute !important;
    left: 14px !important;
    right: 14px !important;
    top: 74px !important;
    z-index: 1100 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 12px !important;
    border: 1px solid rgba(0, 95, 45, 0.12) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 24px 60px rgba(0, 45, 22, 0.18) !important;
  }
  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav.open,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav.open {
    display: flex !important;
  }
  body:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
  body:not(.dashboard-body):not(.portal-login-body) .dropdown > a,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .main-nav nav > a,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown > a {
    min-height: 44px !important;
    padding: 0 12px !important;
    color: #082416 !important;
  }
  body:not(.dashboard-body):not(.portal-login-body) .dropdown .menu,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .dropdown .menu {
    position: static !important;
    transform: none !important;
    min-width: 0 !important;
    display: block !important;
    margin: 4px 0 8px 12px !important;
    padding: 6px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    background: #f6faf7 !important;
  }
  body:not(.dashboard-body):not(.portal-login-body) .menu a,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .menu a {
    padding: 10px 12px !important;
  }
  body:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions .search-action-tab {
    display: none !important;
  }
  body:not(.dashboard-body):not(.portal-login-body) #menu-toggle,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) #menu-toggle {
    display: inline-flex !important;
  }
  body:not(.dashboard-body):not(.portal-login-body) .nav-actions .apply-action-tab,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions .apply-action-tab {
    min-width: 96px !important;
    height: 42px !important;
    padding: 0 20px !important;
  }
}

@media (max-width: 840px) {
  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-hero__image,
  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) .managed-page-media {
    width: 100% !important;
    opacity: 0.33 !important;
  }
  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .subpage-visual-hero__overlay,
  body:not(.home-landing):not(.dashboard-body):not(.portal-login-body) .managed-page:not(.subpage-visual-page) .managed-page-intro::after {
    background: linear-gradient(90deg, rgba(0,75,38,0.98), rgba(0,75,38,0.84)) !important;
  }
}

@media (max-width: 560px) {
  body:not(.dashboard-body):not(.portal-login-body) .brand-logo,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand-logo {
    width: 50px !important;
    height: 50px !important;
  }
  body:not(.dashboard-body):not(.portal-login-body) .brand strong,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .brand strong {
    font-size: 0.75rem !important;
    white-space: normal !important;
  }
  body:not(.dashboard-body):not(.portal-login-body) .nav-actions .apply-action-tab,
  body.home-landing:not(.dashboard-body):not(.portal-login-body) .nav-actions .apply-action-tab {
    display: none !important;
  }
}
