/* =============================================================================
   BUSITEMA UNIVERSITY — DGSRI THEME
   Refactored & Optimized CSS | Modern, Accessible, Performant
   ============================================================================= */

/* =============================================================================
   1. DESIGN TOKENS & CSS CUSTOM PROPERTIES
   ============================================================================= */

:root {
  /* Brand Colors */
  --color-primary:        #1558a8;
  --color-primary-dark:   #0d3b6e;
  --color-primary-light:  #1e73be;
  --color-secondary:      #fcc200;
  --color-secondary-dark: #e6af00;
  --color-secondary-light:#ffe790;

  /* Neutrals */
  --color-ink:            #0a0f1e;
  --color-ink-secondary:  #2d3748;
  --color-ink-muted:      #4f5665;
  --color-ink-subtle:     #6b7280;
  --color-surface:        #ffffff;
  --color-surface-alt:    #f4f7fb;
  --color-surface-warm:   #fbfaf6;
  --color-border:         rgba(21, 88, 168, 0.12);
  --color-border-subtle:  rgba(21, 88, 168, 0.06);

  /* Semantic */
  --color-heading:        #10243a;
  --color-body:           #2d3748;
  --color-link:           var(--color-primary);
  --color-link-hover:     var(--color-primary-dark);

  /* Typography */
  --font-sans:    'Aptos', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Source Sans Variable', 'Source Sans Pro', 'Calibri', 'Open Sans', Arial, sans-serif;
  --font-serif:   Georgia, 'Times New Roman', serif;
  --font-ui:      'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --text-xs:   0.78rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.08rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  clamp(1.9rem, 2.8vw, 2.4rem);
  --text-3xl:  clamp(2.1rem, 3.7vw, 3.35rem);
  --text-hero: clamp(2rem, 6vw, 3.2rem);

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-pill:999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(21,88,168,.06);
  --shadow-md:  0 4px 16px rgba(21,88,168,.10), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 32px rgba(21,88,168,.14), 0 2px 8px rgba(0,0,0,.06);
  --shadow-xl:  0 20px 48px rgba(21,88,168,.16), 0 4px 16px rgba(0,0,0,.08);

  /* Layout */
  --container:  1220px;
  --container-wide: 1380px;

  /* Transitions */
  --ease-out:   cubic-bezier(.22,.61,.36,1);
  --ease-spring:cubic-bezier(.25,.8,.25,1.2);
  --duration-fast:  .15s;
  --duration-base:  .25s;
  --duration-slow:  .4s;
}

/* =============================================================================
   2. RESET & BASE
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  zoom: 90%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--color-surface-warm) 0%, var(--color-surface-alt) 100%);
  color: var(--color-body);
  font-family: var(--font-sans);
  font-size: clamp(.98rem, .45vw + .88rem, 1.06rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html, body, .page-wrapper, .site-shell {
  max-width: 100%;
}

img, video, iframe, embed, object {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe, embed, object { display: block; }
table { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }

a {
  color: var(--color-link);
  text-decoration-thickness: .08em;
  text-underline-offset: .15em;
  transition: color var(--duration-fast) ease;
}

a:hover, a:focus-visible { color: var(--color-link-hover); }

::selection {
  background: rgba(252, 194, 0, .28);
  color: var(--color-ink);
}

/* =============================================================================
   3. LAYOUT UTILITIES
   ============================================================================= */

.site-container {
  width: min(calc(100% - clamp(1rem, 4vw, 2rem)), var(--container));
  margin: 0 auto;
}

.page-wrapper--front .site-container {
  width: min(calc(100% - clamp(1rem, 4vw, 2.5rem)), var(--container));
}

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

/* =============================================================================
   4. SITE HEADER
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface-warm);
  border-top: 3px solid var(--color-primary);
  border-bottom: 2px solid var(--color-secondary);
  box-shadow: 0 2px 20px rgba(21, 88, 168, .10);
}

.site-header .site-container {
  width: min(calc(100% - 1.5rem), 1260px);
}

/* Top bar: logo + tools */
.site-header__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-5) 0 var(--space-4);
}

.site-header__home {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-ink);
  text-decoration: none;
}

.site-header__logo {
  width: auto;
  max-width: 178px;
  max-height: 54px;
  object-fit: contain;
}

.site-header__title-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-header__kicker {
  font-size: var(--text-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  line-height: 1.2;
}

.site-header__title {
  font-family: var(--font-display) !important;
  font-size: clamp(.95rem, 1.6vw, 2rem) !important;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading);
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

/* Bottom nav bar */
.site-header__bottom {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  border-top: 0;
}

.site-header__nav-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-primary);
  min-height: 54px;
  padding: 0 var(--space-6) !important;
  border-bottom: 0;
  box-shadow: none;
  overflow: visible;
}

/* =============================================================================
   5. NAVIGATION
   ============================================================================= */

.site-navigation {
  display: block !important;
  width: 100% !important;
  overflow: visible !important;
}

.site-navigation__primary {
  width: 100% !important;
  overflow: visible !important;
}

/* Primary menu */
.menu--main,
.menu--footer,
.site-navigation .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu--main.menu-level--0,
.site-header .header-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 2rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

.menu-item { position: relative; }

.menu-item__row,
.site-header .header-menu__row {
  display: block !important;
}

/* Top-level links */
.site-header .menu--main > .menu-item > .menu-item__row > .menu-link,
.site-header .site-navigation__primary ul.menu a,
.site-header .header-menu__link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 54px !important;
  padding: .9rem 0 !important;
  color: #fff !important;
  background: transparent !important;
  text-decoration: none !important;
  font-size: .97rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  border-bottom: 3px solid transparent;
  transition: border-color var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

.site-header .menu--main > .menu-item > .menu-item__row > .menu-link:hover,
.site-header .menu--main > .menu-item > .menu-item__row > .menu-link:focus-visible,
.site-header .header-menu__link:hover,
.site-header .header-menu__link:focus-visible,
.site-header .menu-item--active-trail > .menu-item__row > .menu-link {
  color: var(--color-secondary) !important;
  background: transparent !important;
  border-bottom-color: var(--color-secondary);
  opacity: 1 !important;
}

/* Dropdown menus */
.site-header .menu--main .menu-level--1,
.site-header .menu--main .menu-level--2,
.site-header .menu--main .menu-level--3,
.site-header .menu--main .menu-level--4 {
  display: none !important;
  position: absolute !important;
  min-width: 280px !important;
  margin: 0 !important;
  padding: var(--space-2) !important;
  list-style: none !important;
  background: var(--color-primary) !important;
  border: 0 !important;
  border-top: 3px solid var(--color-secondary) !important;
  border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
  box-shadow: var(--shadow-xl) !important;
  overflow: visible !important;
  z-index: 80 !important;
}

.site-header .menu--main .menu-level--1 {
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.site-header .menu--main .menu-level--2,
.site-header .menu--main .menu-level--3,
.site-header .menu--main .menu-level--4 {
  top: -3px !important;
  left: 100% !important;
  transform: none !important;
  background: var(--color-primary-dark) !important;
}

.site-header .menu--main .menu-level .menu-item {
  display: block !important;
  width: 100% !important;
}

.site-header .menu--main .menu-level .menu-item__row {
  display: block !important;
}

.site-header .menu--main .menu-level .menu-link {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: .8rem var(--space-4) !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: var(--radius-sm) !important;
  color: rgba(255,255,255,.9) !important;
  background: transparent !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  white-space: normal !important;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.site-header .menu--main .menu-level .menu-link:hover,
.site-header .menu--main .menu-level .menu-link:focus-visible,
.site-header .menu--main .menu-level .menu-item--active-trail > .menu-item__row > .menu-link {
  background: rgba(255,255,255,.12) !important;
  color: var(--color-secondary) !important;
}

.site-header .menu--main .menu-item:hover > .menu-level,
.site-header .menu--main .menu-item:focus-within > .menu-level,
.site-header .menu--main .menu-item.is-open > .menu-level {
  display: block !important;
}

/* Header submenu (alt structure) */
.site-header .header-submenu {
  display: none !important;
  position: absolute !important;
  top: calc(100% + .1rem) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  min-width: 280px !important;
  padding: var(--space-2) !important;
  list-style: none !important;
  background: var(--color-primary) !important;
  border-top: 3px solid var(--color-secondary) !important;
  border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
  box-shadow: var(--shadow-xl) !important;
  z-index: 50 !important;
}

.site-header .header-submenu__item { margin: 0 !important; padding: 0 !important; list-style: none !important; }

.site-header .header-submenu__link {
  display: block !important;
  padding: .8rem var(--space-4) !important;
  color: rgba(255,255,255,.9) !important;
  text-decoration: none !important;
  border-radius: var(--radius-sm) !important;
  white-space: normal !important;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.site-header .header-submenu__link:hover,
.site-header .header-submenu__link:focus-visible {
  background: rgba(255,255,255,.12) !important;
  color: var(--color-secondary) !important;
}

.site-header .header-menu__item:hover > .header-submenu,
.site-header .header-menu__item:focus-within > .header-submenu {
  display: block !important;
}

/* Submenu toggle arrow */
.submenu-toggle {
  width: 2rem; height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: none;
}

.submenu-toggle::before { content: "▼"; font-size: .6rem; }
.submenu-toggle[aria-expanded="true"]::before { content: "▲"; }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: .7rem .9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--duration-fast) ease;
}

.menu-toggle:hover { background: rgba(255,255,255,.25); }

/* Secondary nav links */
.site-header .site-navigation__secondary .menu {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0; padding: 0;
  list-style: none;
}

.site-header .site-navigation__secondary a {
  color: var(--color-primary);
  font-size: var(--text-sm);
  text-decoration: underline;
  text-underline-offset: .16em;
  white-space: nowrap;
}

/* Search */
.site-navigation__search { flex: 0 1 280px; }

.site-navigation__search .block {
  width: 100%; margin: 0; padding: 0;
  background: transparent; border: 0; box-shadow: none;
}

.site-header .site-navigation__search--top { width: auto; min-width: 250px; }

.site-header .site-navigation__search--top form {
  display: grid;
  grid-template-columns: minmax(140px, 170px) auto;
  gap: var(--space-2);
  align-items: center;
}

.site-header .site-navigation__search--top .form-search,
.site-header .header-search-placeholder__form input[type="search"] {
   min-height: 28px;
  padding: 0.5rem 0.1rem;
  border: 1px solid #c7d7e5;
  border-radius: 999px;
  background: #fff;
}

.site-header .site-navigation__search--top .form-search::placeholder { color: rgba(255,255,255,.6); }

.site-header .site-navigation__search--top .form-search:focus,
.site-header .header-search-placeholder__form input[type="search"]:focus {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.6);
}

.site-header .site-navigation__search--top .form-submit,
.site-header .header-search-placeholder__form button {
  min-height: 36px;
  padding: .5rem var(--space-4);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  font: inherit;
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.site-header .site-navigation__search--top .form-submit:hover,
.site-header .header-search-placeholder__form button:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-1px);
}

/* =============================================================================
   6. HERO SECTION
   ============================================================================= */

.front-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  width: 100%;
  overflow: clip;
}

.front-hero__slider {
  position: relative;
  min-height: clamp(28rem, 58vw, 44rem);
}

.front-hero__slide {
  display: none;
  min-height: clamp(28rem, 58vw, 44rem);
  padding: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.front-hero__slide.is-active { display: block; }

.front-hero__slide-link {
  display: block;
  min-height: inherit;
  color: inherit;
  text-decoration: none;
}

.front-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr);
  gap: var(--space-8);
  align-items: center;
  min-height: clamp(28rem, 58vw, 44rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.front-hero__content {
  width: min(100%, 48rem);
  padding: clamp(1.15rem, 3vw, 2rem);
  border-left: 5px solid var(--color-secondary);
  background: rgba(10, 15, 30, .45);
  backdrop-filter: blur(4px);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.front-hero h1,
.front-hero h1 a {
  margin: 0 0 var(--space-4);
  color: #fff;
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.front-hero__summary {
  margin: 0 0 var(--space-6);
  max-width: 46rem;
  color: rgba(255,255,255,.9);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-secondary);
}

/* Hero dots */
.front-hero__controls {
  position: absolute;
  right: 0; bottom: var(--space-8); left: 0;
  z-index: 2;
}

.front-hero__controls-inner {
  display: flex;
  justify-content: center;
}

.front-hero__dots {
  display: inline-flex;
  gap: var(--space-3);
  align-items: center;
}

.front-hero__dot {
  width: .9rem; height: .9rem;
  padding: 0; border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background var(--duration-base) ease, transform var(--duration-base) ease;
}

.front-hero__dot.is-active,
.front-hero__dot:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: scale(1.25);
}

/* Hero action buttons */
.front-hero__actions {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
}

.button,
.section-link,
.front-hero a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-sm);
  transition: all var(--duration-base) var(--ease-out);
}

.button--primary {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}

.button--primary:hover { background: var(--color-secondary-dark); transform: translateY(-2px); }

.button--ghost {
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
  background: transparent;
}

.button--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* =============================================================================
   7. INNOVATION / FEATURE SECTION
   ============================================================================= */

.front-innovation {
  padding: var(--space-16) 0;
  background: #fff;
  width: 100%;
  overflow: clip;
}

.front-innovation > .site-container { width: min(calc(100% - .75rem), var(--container-wide)); }

.front-innovation__feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.45fr);
  align-items: stretch;
  min-height: 500px;
  gap: 0;
}

.front-innovation__panel {
  position: relative;
  z-index: 2;
  width: min(100%, 540px);
  padding: clamp(1.6rem, 3vw, 2.8rem);
  background: var(--color-surface);
  border-bottom: 4px solid var(--color-primary);
  border-radius: 0 0 var(--radius-md) 0;
  box-shadow: var(--shadow-xl);
}

.front-innovation__eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 var(--space-5);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .02em;
}

.front-innovation__eyebrow::after {
  content: "";
  display: block;
  width: 32px; height: 3px;
  margin-top: var(--space-2);
  background: var(--color-secondary);
  border-radius: 2px;
}

.front-innovation__panel h2 {
  margin: 0 0 var(--space-4);
  color: var(--color-heading);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.front-innovation__panel p:not(.front-innovation__eyebrow) {
  margin: 0;
  max-width: 34rem;
  color: var(--color-ink-secondary);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.75;
}

.front-innovation__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-8);
}

.front-innovation__button,
.front-innovation__partner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .82rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
}

.front-innovation__button {
  background: var(--color-primary);
  color: #fff;
}

.front-innovation__button:hover { background: var(--color-primary-dark); transform: translateY(-2px); color: #fff; }

.front-innovation__partner {
  background: var(--color-secondary-light);
  color: var(--color-heading);
}

.front-innovation__partner::after { content: "→"; margin-left: .5rem; }

.front-innovation__partner:hover { background: var(--color-secondary); color: var(--color-heading); }

.front-innovation__media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(74%, 980px);
  overflow: hidden;
  background: var(--color-surface-alt);
}

.front-innovation__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.front-innovation__media:hover img { transform: scale(1.03); }

/* =============================================================================
   8. STATISTICS / NUMBERS
   ============================================================================= */

.front-numbers {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--color-surface);
}

.front-numbers > .site-container { width: min(calc(100% - .75rem), var(--container-wide)); }

.front-numbers__intro {
  max-width: 860px;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.front-numbers__eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.front-numbers__intro h2 {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.front-numbers__intro p:not(.front-numbers__eyebrow) {
  margin: var(--space-4) auto 0;
  max-width: 760px;
  color: var(--color-ink-secondary);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.7;
}

.front-numbers__rotator {
  position: relative;
  min-height: 150px;
  overflow: hidden;
}

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

.front-numbers__grid--panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  animation: dgrsiStatPanelFade 20s infinite;
}

.front-numbers__grid--panel:nth-child(2) { animation-delay: 10s; }

.front-numbers__item {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 145px;
  padding: var(--space-2) clamp(1rem, 3vw, 2.4rem);
  text-align: center;
  transition: background var(--duration-base) ease;
}

.front-numbers__item + .front-numbers__item {
  border-left: 1px solid rgba(21, 88, 168, .12);
}

.front-numbers__item:hover {
  background: rgba(21, 88, 168, .03);
}

.front-numbers__value {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  font-size: clamp(2.35rem, 4.3vw, 3.7rem);
  font-weight: 900;
  line-height: 1.05;
}

.front-numbers__item p {
  margin: 0 auto;
  max-width: 31rem;
  color: var(--color-ink-secondary);
  font-size: clamp(.98rem, 1.25vw, 1.1rem);
  font-weight: 500;
  line-height: 1.5;
}

@keyframes dgrsiStatPanelFade {
  0%, 48% { opacity: 1; transform: translateY(0); }
  53%, 95% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =============================================================================
   9. NEWS SECTION
   ============================================================================= */

.front-news {
  padding: 3.5rem 0 var(--space-4);
  background: var(--color-surface);
  width: 100%; overflow: clip;
}

.page-wrapper--front .front-news > .site-container,
.page-wrapper--front .front-programs > .site-container,
.page-wrapper--front .front-events > .site-container,
.page-wrapper--front .front-dual-sections > .site-container {
  width: min(calc(100% - .75rem), var(--container-wide));
}

.front-news__heading,
.front-programs__heading,
.front-events__heading {
  display: flex;
  gap: var(--space-4);
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.front-news__heading h2,
.front-programs__heading h2,
.front-events__heading h2 {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 300;
  line-height: 1.15;
}

/* "View all" links — shared CTA style */
.front-news__all-link,
.front-programs__all-link,
.front-events__all-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: .85rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  color: var(--color-heading);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-sm);
  transition: background var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.front-news__all-link::after,
.front-programs__all-link::after,
.front-events__all-link::after { content: "→"; font-size: 1.1rem; }

.front-news__all-link:hover,
.front-programs__all-link:hover,
.front-events__all-link:hover,
.front-news__all-link:focus-visible,
.front-programs__all-link:focus-visible,
.front-events__all-link:focus-visible {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Headlines grid */
.front-news-headlines {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr);
  gap: clamp(2rem, 4.2vw, 3.8rem);
  align-items: start;
}

.front-news-headlines__featured { min-width: 0; }

.front-news-headlines__featured-media,
.front-news-headlines__thumb {
  display: block;
  overflow: hidden;
  background: var(--color-surface-alt);
  text-decoration: none;
}

.front-news-headlines__featured-media {
  height: clamp(310px, 34vw, 500px);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-md);
}

.front-news-headlines__featured-media img,
.front-news-headlines__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-base) var(--ease-out);
}

.front-news-headlines__featured:hover img,
.front-news-headlines__item:hover img { transform: scale(1.04); }

.front-news-headlines__featured-body { display: grid; gap: var(--space-2); }

.front-news-headlines__label {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.front-news-headlines h3 { margin: 0; }

.front-news-headlines h3 a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.front-news-headlines h3 a:hover,
.front-news-headlines h3 a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: .16em;
}

.front-news-headlines__featured h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 2.15vw, 1.95rem);
  font-weight: 400;
  line-height: 1.28;
}

.front-news-headlines__date {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.front-news-headlines__list { display: grid; gap: clamp(1.15rem, 2.4vw, 1.65rem); }

.front-news-headlines__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, .72fr);
  gap: clamp(1rem, 1.8vw, 1.45rem);
  align-items: start;
  min-width: 0;
}

.front-news-headlines__item h3 {
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: clamp(1.08rem, 1.45vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.front-news-headlines__thumb {
  height: clamp(130px, 12vw, 190px);
  border-radius: var(--radius-sm);
}

/* News card */
.front-news-card {
  display: grid;
  grid-template-rows: 240px minmax(0, auto) 76px;
  overflow: hidden;
  min-height: 470px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) ease, transform var(--duration-base) ease;
}

.front-news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.front-news-card__image-link {
  display: block;
  height: 240px;
  overflow: hidden;
}

.front-news-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-base) var(--ease-out);
}

.front-news-card:hover .front-news-card__image { transform: scale(1.04); }

.front-news-card__body {
  padding: 1.2rem 1.55rem var(--space-4);
  background: var(--color-surface);
}

.front-news-card__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.45;
}

.front-news-card__title a {
  display: -webkit-box;
  color: var(--color-heading);
  text-decoration: none;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  transition: color var(--duration-fast) ease;
}

.front-news-card__title a:hover { color: var(--color-primary); }

.front-news-card__meta {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: .9rem 1.35rem;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-size: var(--text-sm);
  font-weight: 700;
}

.front-news-card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: .6rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--duration-fast) ease;
}

.front-news-card__more::after { content: "→"; }
.front-news-card__more:hover { background: var(--color-secondary-dark); }

/* News slider controls */
.front-news__slider { position: relative; padding: 0 .25rem; }
.front-news__viewport { overflow: hidden; }

.front-news__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.25rem) / 3);
  gap: 1.125rem;
  transition: transform var(--duration-slow) ease;
  will-change: transform;
}

.front-news__arrow {
  position: absolute;
  top: 50%; z-index: 3;
  width: 40px; height: 40px;
  padding: 0; border: 0;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--duration-fast) ease, transform var(--duration-fast) var(--ease-spring);
}

.front-news__arrow:hover { background: var(--color-primary); color: #fff; transform: translateY(-50%) scale(1.1); }
.front-news__arrow--prev { left: -20px; }
.front-news__arrow--next { right: -20px; }
.front-news__arrow--prev::before { content: "‹"; }
.front-news__arrow--next::before { content: "›"; }
.front-news__arrow[disabled] { opacity: .4; cursor: not-allowed; }
.front-news__arrow[disabled]:hover { background: var(--color-secondary); color: var(--color-primary-dark); transform: translateY(-50%); }

/* =============================================================================
   10. PROGRAMS SECTION
   ============================================================================= */

.front-programs {
  padding: var(--space-12) 0 var(--space-2);
  background: var(--color-surface);
  width: 100%; overflow: clip;
}

.front-programs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.front-program-card { min-width: 0; }

.front-program-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--space-5);
  overflow: hidden;
  background: var(--color-surface-alt);
  text-decoration: none;
  border-radius: var(--radius-md);
}

.front-program-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-base) var(--ease-out);
}

.front-program-card:hover .front-program-card__media img { transform: scale(1.04); }

.front-program-card__body { display: grid; gap: var(--space-3); }

.front-program-card__body h3 {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
}

.front-program-card__body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  max-width: 34rem;
  color: var(--color-ink-secondary);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.front-program-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: none;
  transition: gap var(--duration-fast) ease, color var(--duration-fast) ease;
}

.front-program-card__link::after { content: "›"; font-size: 1.25rem; line-height: 1; }
.front-program-card__link:hover { color: var(--color-primary-dark); gap: .6rem; text-decoration: underline; text-underline-offset: .18em; }

/* =============================================================================
   11. EVENTS SECTION
   ============================================================================= */

.front-events {
  padding: var(--space-12) 0 var(--space-4);
  background: var(--color-surface-alt);
  width: 100%; overflow: clip;
}

.front-events--deadlines { background: var(--color-surface); }

/* Events showcase */
.front-events__showcase {
  position: relative;
  min-height: clamp(300px, 34vw, 430px);
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.front-events__showcase::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
}

.front-events__showcase-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: var(--space-5);
  width: min(420px, 82%);
  min-height: inherit;
  padding: clamp(2rem, 5vw, 4.2rem);
  color: #fff;
  background: linear-gradient(to right, rgba(10,20,40,.7), transparent);
}

.front-events__eyebrow {
  margin: 0;
  color: var(--color-secondary);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.front-events__showcase h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(2.35rem, 4.8vw, 4.2rem);
  font-weight: 300;
  line-height: 1.03;
}

.front-events__showcase-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  min-height: 46px;
  padding: .75rem 1.2rem;
  border: 1.5px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  transition: all var(--duration-base) ease;
}

.front-events__showcase-link::after { content: "→"; color: var(--color-secondary); }
.front-events__showcase-link:hover { background: var(--color-secondary); border-color: var(--color-secondary); color: var(--color-heading); }

/* Events slider */
.front-events__slider { position: relative; }

.front-events:not(.front-events--deadlines) .front-events__slider {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), 1180px);
  margin: -1.65rem auto 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.front-events__viewport { overflow: hidden; }

.front-events__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.25rem) / 3);
  gap: 1.125rem;
  transition: transform var(--duration-slow) ease;
  will-change: transform;
}

.front-events:not(.front-events--deadlines) .front-events__track {
  grid-auto-columns: calc(100% / 3);
  gap: 0;
}

/* Event card */
.front-event-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  min-height: 300px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) ease, transform var(--duration-base) ease;
  overflow-wrap: anywhere;
}

.front-event-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Inline (non-deadline) event card */
.front-events:not(.front-events--deadlines) .front-event-card {
  min-height: 275px;
  border: 0;
  border-right: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.front-events:not(.front-events--deadlines) .front-event-card:hover {
  box-shadow: inset 0 4px 0 var(--color-secondary);
  border-color: var(--color-border);
  transform: none;
}

.front-event-card__date-block {
  position: relative;
  display: grid;
  place-items: center;
  gap: .05rem;
  min-height: 98px;
  padding: var(--space-4) 1.25rem 1.25rem;
  text-align: center;
}

.front-event-card__date-block::after {
  content: "";
  position: absolute;
  right: 1.2rem; bottom: 0; left: 1.2rem;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

.front-events:not(.front-events--deadlines) .front-event-card__date-block {
  min-height: 82px;
  padding: 1.6rem 1.25rem .85rem;
}

.front-events:not(.front-events--deadlines) .front-event-card__date-block::after {
  right: 2rem; left: 2rem;
  height: 2px;
  background: var(--color-border);
}

.front-event-card__month,
.front-event-card__day {
  display: block;
  font-weight: 800;
  line-height: 1;
}

.front-event-card__month { font-size: 1.18rem; color: var(--color-ink); }
.front-event-card__day { font-size: 1.9rem; color: var(--color-primary); }

.front-events:not(.front-events--deadlines) .front-event-card__month,
.front-events:not(.front-events--deadlines) .front-event-card__day {
  display: inline;
  font-size: 1.05rem;
  color: var(--color-heading);
  letter-spacing: .08em;
}

.front-events:not(.front-events--deadlines) .front-event-card__month::after { content: "."; }

.front-event-card__body {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: 1.45rem 1.45rem var(--space-4);
  text-align: center;
}

.front-events:not(.front-events--deadlines) .front-event-card__body {
  gap: .9rem;
  padding: 1.4rem 1.8rem .8rem;
  text-align: center;
}

.front-event-card__date {
  margin: 0;
  color: var(--color-ink-subtle);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .01em;
}

.front-events:not(.front-events--deadlines) .front-event-card__date {
  color: var(--color-ink-secondary);
  font-size: .95rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front-event-card__title {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-sans);
  font-size: clamp(1.08rem, 1.55vw, 1rem);
  font-weight: 700;
  line-height: 1.32;
}

.front-events:not(.front-events--deadlines) .front-event-card__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 400;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.front-event-card__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem 1.35rem;
}

.front-events:not(.front-events--deadlines) .front-event-card__actions {
  padding: 0 1.2rem 1.6rem;
}

.front-event-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 42px;
  padding: .65rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}

.front-event-card__link::after { content: "→"; }
.front-event-card__link:hover { background: var(--color-primary); color: #fff; }

.front-events:not(.front-events--deadlines) .front-event-card__link {
  min-height: 40px;
  padding: .6rem 1.05rem;
  background: transparent;
  color: var(--color-primary);
}

.front-events:not(.front-events--deadlines) .front-event-card__link:hover {
  background: rgba(21, 88, 168, .08);
  color: var(--color-primary-dark);
}

/* =============================================================================
   12. DUAL SECTIONS
   ============================================================================= */

.front-dual-sections {
  padding: var(--space-12) 0 var(--space-2);
  background: var(--color-surface);
  width: 100%; overflow: clip;
}

.front-dual-sections__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.front-dual-sections__column { min-width: 0; }

/* List card */
.front-list-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.front-list-card__list { margin: 0; padding: 0; list-style: none; }

.front-list-card__item { padding: 1.35rem 1.45rem; }

.front-list-card__item + .front-list-card__item {
  border-top: 1px solid var(--color-border);
}

.front-list-card__date {
  margin: 0 0 var(--space-2);
  color: var(--color-secondary-dark);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .01em;
}

.front-list-card__title {
  margin: 0 0 var(--space-3);
  color: var(--color-heading);
  font-family: var(--font-sans);
  font-size: 1.16rem;
  font-weight: 400;
  line-height: 1.45;
}

.front-list-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  transition: gap var(--duration-fast) ease;
}

.front-list-card__link::after { content: "→"; }
.front-list-card__link:hover { gap: .6rem; text-decoration: underline; }

/* =============================================================================
   13. NEWS FEATURE SECTION
   ============================================================================= */

.front-news-feature { display: grid; gap: var(--space-6); }

.front-news-feature__main {
  position: relative;
  min-height: 430px;
}

.front-news-feature__media {
  display: block;
  width: min(78%, 920px);
  height: 430px;
  margin-left: auto;
  overflow: hidden;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
}

.front-news-feature__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.front-news-feature__panel {
  position: absolute;
  top: 50%; left: .45rem;
  width: min(460px, 48%);
  padding: clamp(1.45rem, 2.4vw, 2.35rem);
  background: var(--color-surface);
  border-bottom: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  transform: translateY(-50%);
}

.front-news-feature__date,
.front-news-feature__card-date {
  position: relative;
  display: inline-block;
  margin: 0 0 var(--space-4);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
}

.front-news-feature__date::after,
.front-news-feature__card-date::after {
  content: "";
  display: block;
  width: 28px; height: 2px;
  margin-top: var(--space-2);
  background: var(--color-secondary);
  border-radius: 2px;
}

.front-news-feature__panel h3 {
  margin: 0 0 var(--space-5);
  color: var(--color-heading);
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 2.35vw, 2.25rem);
  font-weight: 700;
  line-height: 1.18;
}

.front-news-feature__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1.3rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) ease;
}

.front-news-feature__link:hover { background: var(--color-primary-dark); }

.front-news-feature__viewport { overflow: hidden; }

.front-news-feature__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  gap: var(--space-4);
  transition: transform .65s ease;
  will-change: transform;
}

.front-news-feature__card {
  display: grid;
  grid-template-rows: 190px auto auto;
  gap: var(--space-3);
  min-width: 0;
  padding: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--duration-fast) ease;
}

.front-news-feature__card img {
  width: 100%; height: 190px;
  object-fit: cover;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
}

.front-news-feature__card-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-heading);
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: color var(--duration-fast) ease;
}

.front-news-feature__card.is-active { border-bottom-color: var(--color-secondary); }

.front-news-feature__card:hover .front-news-feature__card-title,
.front-news-feature__card.is-active .front-news-feature__card-title { color: var(--color-primary); }

/* =============================================================================
   14. SECTION HEADINGS & HEADING HELPERS
   ============================================================================= */

.section-heading {
  display: flex;
  gap: var(--space-5);
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.section-heading h2 {
  margin: .15rem 0 .4rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--color-primary);
}

.section-heading p { margin: 0; max-width: 48rem; color: var(--color-ink-muted); }

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  color: var(--color-heading);
  font-weight: 700;
  text-decoration: none;
}

.section-link:hover { background: var(--color-primary); color: #fff; }

/* =============================================================================
   15. CONTENT GRID
   ============================================================================= */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.2rem, 2vw, 1.7rem);
  padding: 0;
}

@media (min-width: 981px) {
  .content-grid--has-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  }
}

/* =============================================================================
   16. INNER PAGE — SHELL & CONTENT
   ============================================================================= */

.page-wrapper:not(.page-wrapper--front) {
  background:
    radial-gradient(circle at top left, rgba(252,194,0,.08), transparent 26%),
    radial-gradient(circle at top right, rgba(21,88,168,.06), transparent 22%),
    linear-gradient(180deg, var(--color-surface-warm) 0%, var(--color-surface-alt) 100%);
}

.page-wrapper:not(.page-wrapper--front) .site-main-wrapper {
 /* background: radial-gradient(circle at top right, rgba(252,194,0,.06), transparent 24rem), var(--color-surface-alt); */
  background:#fff;
}

.page-wrapper:not(.page-wrapper--front) .site-main-wrapper > .site-container {
  width: min(calc(100% - 1rem), 1480px);
}

/* Page shell grid */
.page-shell__grid {
  max-width: none;
  margin: 0 auto;
  padding: clamp(.25rem, .8vw, .75rem) 0 clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 2vw, 2rem);
  animation: pageFadeIn .5s var(--ease-out);
}

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

.page-wrapper:not(.page-wrapper--front) .page-shell__top {
  display: grid;
  gap: .5rem;
  margin-bottom: clamp(.35rem, 1vw, .75rem);
}

.page-wrapper:not(.page-wrapper--front) .page-shell__top:empty {
  display: none;
  margin: 0;
}

/* Page title block */
.page-wrapper:not(.page-wrapper--front) .block-page-title-block,
.page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-page-title {
  padding: 0;
  margin-bottom: clamp(1.25rem, 2vw, 2rem);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
  padding-bottom: 0;
  letter-spacing: 0;
  line-height: 1.12;
  text-align: center;
}

.page-title::before {
  content: '';
  display: block;
  flex: 1 1 7rem;
  max-width: 8rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.page-title::after {
  content: '';
  display: block;
  flex: 1 1 7rem;
  max-width: 8rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-secondary) 60%, rgba(252,194,0,.2));
}

.page-wrapper:not(.page-wrapper--front) h1,
.page-wrapper:not(.page-wrapper--front) .block-page-title-block h1,
.page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-page-title h1 {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.page-wrapper:not(.page-wrapper--front) .block-page-title-block h1,
.page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-page-title h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
  color: var(--color-primary);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.12;
  text-align: center;
}

.page-wrapper:not(.page-wrapper--front) .block-page-title-block h1::before,
.page-wrapper:not(.page-wrapper--front) .block-page-title-block h1::after,
.page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-page-title h1::before,
.page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-page-title h1::after {
  content: '';
  display: block;
  flex: 1 1 7rem;
  max-width: 8rem;
  height: 2px;
}

.page-wrapper:not(.page-wrapper--front) .block-page-title-block h1::before,
.page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-page-title h1::before {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.page-wrapper:not(.page-wrapper--front) .block-page-title-block h1::after,
.page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-page-title h1::after {
  background: linear-gradient(90deg, var(--color-secondary) 60%, rgba(252,194,0,.2));
}

.page-wrapper:not(.page-wrapper--front) h2 {
  margin: 0 0 var(--space-4);
  color: var(--color-primary);
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  line-height: 1.2;
}

/* Main content blocks */
.page-wrapper:not(.page-wrapper--front) .content-grid__main {
  width: 100%;
  padding: clamp(.75rem, 2vw, 1.5rem) clamp(1.5rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem);
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(255,255,255,.96));
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.page-wrapper:not(.page-wrapper--front) .content-grid__main > .block,
.page-wrapper:not(.page-wrapper--front) .content-grid__sidebar > .block,
.page-wrapper:not(.page-wrapper--front) .node--programme:not(.node--view-mode-teaser) {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Transparent wrappers */
.page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-content,
.page-wrapper:not(.page-wrapper--front) .block-system-main-block,
.page-wrapper:not(.page-wrapper--front) .node--type-page {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-content > .node--type-page,
.page-wrapper:not(.page-wrapper--front) .block-system-main-block > .node--type-page,
.page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-content > .view,
.page-wrapper:not(.page-wrapper--front) .block-system-main-block > .view,
.page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-content > .views-element-container,
.page-wrapper:not(.page-wrapper--front) .block-system-main-block > .views-element-container {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Body content reset */
.page-wrapper:not(.page-wrapper--front) .node--type-page .node__content,
.page-wrapper:not(.page-wrapper--front) .node--type-page .field--name-body,
.page-wrapper:not(.page-wrapper--front) .node--type-page .field__item,
.page-wrapper:not(.page-wrapper--front) .basic-page-content {
  max-width: none;
  color: #203a31;
  font-size: clamp(1.18rem, 1.25vw, 1.34rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-wrapper:not(.page-wrapper--front) .node__content,
.page-wrapper:not(.page-wrapper--front) .field,
.page-wrapper:not(.page-wrapper--front) .views-field {
  color: #41554c;
  font-size: clamp(1.12rem, 1.15vw, 1.28rem);
  line-height: 1.8;
}

.page-wrapper:not(.page-wrapper--front) .node__content p,
.page-wrapper:not(.page-wrapper--front) .basic-page-content p,
.page-wrapper:not(.page-wrapper--front) .field p {
  margin: 0 0 1.15rem;
  max-width: none;
}

.page-wrapper:not(.page-wrapper--front) .node__content h2,
.page-wrapper:not(.page-wrapper--front) .basic-page-content h2,
.page-wrapper:not(.page-wrapper--front) .field h2 { margin: 2rem 0 .9rem; }

.page-wrapper:not(.page-wrapper--front) .node__content h3,
.page-wrapper:not(.page-wrapper--front) .basic-page-content h3,
.page-wrapper:not(.page-wrapper--front) .field h3 {
  margin: 1.55rem 0 .7rem;
  color: #17324c;
  font-size: clamp(1.4rem, 1.7vw, 1.8rem);
  line-height: 1.28;
}

.page-wrapper:not(.page-wrapper--front) .node__content h4,
.page-wrapper:not(.page-wrapper--front) .basic-page-content h4,
.page-wrapper:not(.page-wrapper--front) .field h4 {
  margin: 1.25rem 0 .65rem;
  color: #17324c;
  font-size: clamp(1.2rem, 1.35vw, 1.45rem);
  line-height: 1.35;
}

.page-wrapper:not(.page-wrapper--front) .node__content > *:first-child,
.page-wrapper:not(.page-wrapper--front) .basic-page-content > *:first-child { margin-top: 0; }

.page-wrapper:not(.page-wrapper--front) .node__content > *:last-child,
.page-wrapper:not(.page-wrapper--front) .basic-page-content > *:last-child { margin-bottom: 0; }

/* Lists */
.page-wrapper:not(.page-wrapper--front) .node__content ol,
.page-wrapper:not(.page-wrapper--front) .node__content ul,
.page-wrapper:not(.page-wrapper--front) .basic-page-content ol,
.page-wrapper:not(.page-wrapper--front) .basic-page-content ul,
.page-wrapper:not(.page-wrapper--front) .field ol,
.page-wrapper:not(.page-wrapper--front) .field ul {
  max-width: 96ch;
  margin: 1.15rem 0 1.7rem;
  padding-left: 1.65rem;
}

.page-wrapper:not(.page-wrapper--front) .node__content li,
.page-wrapper:not(.page-wrapper--front) .basic-page-content li,
.page-wrapper:not(.page-wrapper--front) .field li {
  margin: 0 0 .7rem;
  padding-left: .3rem;
  line-height: 1.7;
}

.page-wrapper:not(.page-wrapper--front) .node__content li::marker,
.page-wrapper:not(.page-wrapper--front) .basic-page-content li::marker { color: #0d5b42; font-weight: 800; }

/* Inline text */
.page-wrapper:not(.page-wrapper--front) .node__content strong,
.page-wrapper:not(.page-wrapper--front) .basic-page-content strong { color: #173f31; font-weight: 800; }

/* Links */
.page-wrapper:not(.page-wrapper--front) .node__content a,
.page-wrapper:not(.page-wrapper--front) .basic-page-content a,
.page-wrapper:not(.page-wrapper--front) .field a {
  color: #00694f;
  font-weight: 650;
  text-decoration-color: rgba(0,105,79,.36);
  text-decoration-thickness: .07em;
  text-underline-offset: .16em;
  transition: color var(--duration-fast) ease;
}

.page-wrapper:not(.page-wrapper--front) .node__content a:hover,
.page-wrapper:not(.page-wrapper--front) .basic-page-content a:hover,
.page-wrapper:not(.page-wrapper--front) .field a:hover {
  color: var(--color-primary);
  text-decoration-color: currentColor;
}

/* Strip MS Word / inline borders */
.page-wrapper:not(.page-wrapper--front) .basic-page-content__body [style*="border"],
.page-wrapper:not(.page-wrapper--front) .basic-page-content__body [style*="box-shadow"],
.page-wrapper:not(.page-wrapper--front) .basic-page-content__body [style*="outline"],
.page-wrapper:not(.page-wrapper--front) .basic-page-content__body table[border],
.page-wrapper:not(.page-wrapper--front) .basic-page-content__body table[class*="Mso"],
.page-wrapper:not(.page-wrapper--front) .basic-page-content__body td[style*="border"],
.page-wrapper:not(.page-wrapper--front) .basic-page-content__body th[style*="border"] {
  border: 0 !important;
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* =============================================================================
   17. HANDBOOK / POLICY CARDS
   ============================================================================= */

.page-wrapper:not(.page-wrapper--front) .handbook-policy-listing {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: .25rem;
}

.page-wrapper:not(.page-wrapper--front) .handbook-policy-card {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-left: 5px solid var(--color-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) ease, box-shadow var(--duration-base) ease;
}

.page-wrapper:not(.page-wrapper--front) .handbook-policy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.page-wrapper:not(.page-wrapper--front) .handbook-policy-card__title {
  margin: 0 0 .9rem;
  color: var(--color-heading);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.page-wrapper:not(.page-wrapper--front) .basic-page-content__body--handbook-policies h2,
.page-wrapper:not(.page-wrapper--front) .basic-page-content__body--handbook-policies .handbook-policy-card__title,
.path-handbook-policies .page-wrapper:not(.page-wrapper--front) .view-academic-support-policies.view-display-id-page_2 .views-field-field-body h2,
.path-graduate-students-resources .page-wrapper:not(.page-wrapper--front) .view-academic-support-policies.view-display-id-page_7 .views-field-field-body h2 {
  color: #000;
  font-size: clamp(1.25rem, 1.75vw, 1.75rem);
  font-weight: 800;
}

.path-data-tools .page-wrapper:not(.page-wrapper--front) .view-data-research-resources.view-display-id-page_2 .views-field-field-body h2 {
  color: #000;
  font-size: clamp(1.25rem, 1.75vw, 1.75rem);
  font-weight: 800;
}

.path-library-resources .page-wrapper:not(.page-wrapper--front) .view-data-research-resources.view-display-id-page_3 .views-field-field-body h2,
.path-library-resources .page-wrapper:not(.page-wrapper--front) .view-data-research-resources.view-display-id-page_3 .views-field-field-body h2 a {
  color: #000;
  font-size: clamp(1.25rem, 1.75vw, 1.75rem);
  font-weight: 800;
}

.path-statistical-resources .page-wrapper:not(.page-wrapper--front) .view-data-research-resources.view-display-id-page_4 .views-field-field-body h2,
.path-statistical-resources .page-wrapper:not(.page-wrapper--front) .view-data-research-resources.view-display-id-page_4 .views-field-field-body h2 a {
  color: #000;
  font-size: clamp(1.25rem, 1.75vw, 1.75rem);
  font-weight: 800;
}

.page-wrapper:not(.page-wrapper--front) .handbook-policy-card__body {
  display: grid;
  gap: .85rem;
  color: #41554c;
  font-size: clamp(1rem, 1vw, 1.06rem);
  line-height: 1.8;
}

.page-wrapper:not(.page-wrapper--front) .handbook-policy-card__body a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem 0;
  color: #0d5b42;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(13,91,66,.24);
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.page-wrapper:not(.page-wrapper--front) .handbook-policy-card__body a:hover {
  color: var(--color-primary);
  border-color: currentColor;
}

/* =============================================================================
   18. VIEWS & TABLES
   ============================================================================= */

.page-wrapper:not(.page-wrapper--front) .view {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent;
  border-radius: var(--radius-lg);
}

.page-wrapper:not(.page-wrapper--front) .view-content {
  display: block;
  min-width: 0;
}

.page-wrapper:not(.page-wrapper--front) .view-content > .views-row {
  padding: clamp(1rem, 1.9vw, 1.45rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-content .view-content .views-row,
.page-wrapper:not(.page-wrapper--front) .block-system-main-block .view-content .views-row {
  border: 0 !important;
  box-shadow: none !important;
}

.page-wrapper:not(.page-wrapper--front) .view-content > .views-row + .views-row { margin-top: .95rem; }
.page-wrapper:not(.page-wrapper--front) .views-field + .views-field { margin-top: .6rem; }

/* Exposed filter form */
.page-wrapper:not(.page-wrapper--front) .views-exposed-form,
.page-wrapper:not(.page-wrapper--front) form.dgrsi-exposed-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: flex-end;
  margin: 0 0 1.35rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  background: linear-gradient(135deg, #f7fbff 0%, #eef6f1 100%);
  border: 1px solid rgba(31,111,184,.14);
  border-left: 4px solid var(--color-primary-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.page-wrapper:not(.page-wrapper--front) .views-exposed-form .form--inline,
.page-wrapper:not(.page-wrapper--front) form.dgrsi-exposed-filter .form--inline {
  display: flex; flex-wrap: wrap;
  gap: var(--space-4); align-items: flex-end; width: 100%;
}

.page-wrapper:not(.page-wrapper--front) .views-exposed-form .form-item,
.page-wrapper:not(.page-wrapper--front) form.dgrsi-exposed-filter .form-item {
  display: grid;
  gap: .4rem;
  min-width: min(100%, 280px);
  margin: 0;
}

.page-wrapper:not(.page-wrapper--front) .views-exposed-form label,
.page-wrapper:not(.page-wrapper--front) form.dgrsi-exposed-filter label {
  margin: 0;
  color: var(--color-heading);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1.25;
}

.page-wrapper:not(.page-wrapper--front) .views-exposed-form input[type="text"],
.page-wrapper:not(.page-wrapper--front) .views-exposed-form input[type="search"],
.page-wrapper:not(.page-wrapper--front) form.dgrsi-exposed-filter input[type="text"],
.page-wrapper:not(.page-wrapper--front) form.dgrsi-exposed-filter input[type="search"] {
  width: min(100%, 360px);
  min-height: 44px;
  padding: .7rem .95rem;
  border: 1px solid #c4d7ce;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  font-weight: 600;
  outline: 0;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.page-wrapper:not(.page-wrapper--front) .views-exposed-form input:focus,
.page-wrapper:not(.page-wrapper--front) form.dgrsi-exposed-filter input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(21,88,168,.14);
}

.page-wrapper:not(.page-wrapper--front) .views-exposed-form .form-submit,
.page-wrapper:not(.page-wrapper--front) form.dgrsi-exposed-filter .form-submit {
  min-height: 44px;
  padding: .72rem 1.35rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  transition: background var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.page-wrapper:not(.page-wrapper--front) .views-exposed-form .form-submit:hover,
.page-wrapper:not(.page-wrapper--front) form.dgrsi-exposed-filter .form-submit:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* Tables */
.page-wrapper:not(.page-wrapper--front) table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  color: var(--color-ink);
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  line-height: 1.45;
}

.page-wrapper:not(.page-wrapper--front) thead th,
.page-wrapper:not(.page-wrapper--front) table th {
  padding: .9rem var(--space-4);
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  text-align: left;
  border-bottom: 2px solid var(--color-secondary);
}

.page-wrapper:not(.page-wrapper--front) tbody td,
.page-wrapper:not(.page-wrapper--front) table td {
  padding: .95rem var(--space-4);
  background: var(--color-surface);
  border-bottom: 1px solid rgba(21,88,168,.08);
  vertical-align: middle;
}

.page-wrapper:not(.page-wrapper--front) tbody tr:nth-child(even) td { background: var(--color-surface-alt); }
.page-wrapper:not(.page-wrapper--front) tbody tr:hover td { background: rgba(252,194,0,.12); }

.page-wrapper:not(.page-wrapper--front) table a { color: #0d5b42; font-weight: 700; }
.page-wrapper:not(.page-wrapper--front) table a:hover { color: var(--color-primary); }

/* Pager */
.page-wrapper:not(.page-wrapper--front) .pager {
  margin-top: 1.25rem;
  padding: .9rem var(--space-4);
  background: rgba(255,255,255,.86);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* =============================================================================
   19. ADMISSIONS VIEW
   ============================================================================= */

.view-admissions .field-content {
  font-family: var(--font-sans);
  font-size: clamp(1.18rem, 1.25vw, 1.34rem);
  line-height: 1.85;
  color: #2d2d2d;
}

.view-admissions .field-content p { margin-bottom: 1.6rem; }
.view-admissions .field-content p:first-of-type { font-size: clamp(1.28rem, 1.4vw, 1.48rem); line-height: 1.9; font-weight: 450; }

.view-admissions .field-content p:last-of-type {
  background: linear-gradient(135deg, rgba(21,88,168,.03), rgba(252,194,0,.05));
  border-left: 4px solid var(--color-secondary);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: var(--space-8);
  font-style: italic;
}

.path-apply-now .page-wrapper:not(.page-wrapper--front) .view-admissions.view-display-id-page_3 .view-header h2,
.path-apply-now .page-wrapper:not(.page-wrapper--front) .view-admissions.view-display-id-page_3 .views-field-field-body h2 {
  color: #000;
  font-size: clamp(1.25rem, 1.75vw, 1.75rem);
  font-weight: 800;
}

.path-programmes .page-wrapper:not(.page-wrapper--front) .view-admissions.view-display-id-page_2 .views-view-table thead th {
  color: #ffea00;
}

.view-admissions .field-content a {
  color: var(--color-primary);
  font-weight: 600;
  padding: .1em .2em;
  background: linear-gradient(180deg, transparent 60%, rgba(252,194,0,.25) 60%);
  border-radius: 2px;
  text-decoration: none;
  transition: all var(--duration-base) ease;
}

.view-admissions .field-content a:hover { color: var(--color-primary-dark); }

/* =============================================================================
   20. BREADCRUMB
   ============================================================================= */

.region-breadcrumb {
  background: var(--color-surface);
  padding: .75rem 0;
  border-bottom: 2px solid var(--color-border);
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  letter-spacing: .01em;
  animation: breadcrumbFade .4s var(--ease-out);
}

@keyframes breadcrumbFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  align-items: center; row-gap: .4rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.breadcrumb a {
  display: inline-flex; align-items: center;
  padding: .3rem .5rem;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-spring);
}

.breadcrumb a:hover {
  background: rgba(21,88,168,.06);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(21,88,168,.12);
}

.breadcrumb a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.breadcrumb li:last-child {
  display: inline-flex; align-items: center;
  padding: .3rem .65rem;
  color: var(--color-ink);
  font-weight: 600;
  background: rgba(252,194,0,.12);
  border: 1px solid rgba(252,194,0,.28);
  border-radius: var(--radius-sm);
  cursor: default;
  pointer-events: none;
}

.breadcrumb li + li::before {
  content: '›';
  display: inline-block;
  margin: 0 .3rem;
  font-size: 1.3rem;
  font-weight: 300;
  color: #999;
  line-height: 1;
}

.breadcrumb li:first-child a::before {
  content: '⌂';
  display: inline-block;
  margin-right: .4rem;
  font-size: 1rem;
  color: var(--color-primary);
  transition: color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.breadcrumb li:first-child a:hover::before {
  color: var(--color-secondary);
  transform: scale(1.15);
}

/* =============================================================================
   21. FOOTER
   ============================================================================= */

.site-footer {
  position: relative;
  width: 100%;
  margin-top: var(--space-8);
  background: var(--color-primary);
  color: #fff;
}

.site-footer a,
.site-footer .menu-link { color: #fff; text-decoration: none; }

.site-footer > .site-container,
.site-footer__meta > .site-container {
  width: min(calc(100% - 1.5rem), 1314px);
}

.site-footer__inner { display: block; }

.site-footer__top { padding: .55rem 0 1.35rem; }

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 5.4vw, 5.5rem);
}

.footer-column { min-width: 0; }

.footer-column__title,
.site-footer .footer-column__title,
.page-wrapper:not(.page-wrapper--front) .site-footer .footer-column__title {
  margin: 0 0 .8rem;
  color: var(--color-secondary);
  font-size: clamp(1.65rem, 2vw, 1.95rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.footer-column__content p {
  margin: 0 0 .32rem;
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  line-height: 1.35;
}

.footer-column__links {
  margin: 0; padding: 0; list-style: none;
}

.footer-column__links li + li { margin-top: .28rem; }

.footer-column__links a,
.footer-column__content a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  line-height: 1.35;
  transition: color var(--duration-fast) ease;
}

.footer-column__links a:hover,
.footer-column__content a:hover { color: var(--color-secondary); }

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}

.footer-social-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  min-width: 2rem;
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  font-size: .95rem;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.footer-social-link:hover .footer-social-link__icon {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
}

.footer-social-link__icon svg { display: block; width: 1rem; height: 1rem; }

.site-footer__meta {
  padding: 1.15rem 0 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
}

.site-footer__meta p {
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: var(--text-sm);
}

.menu--footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.menu--footer .menu-link {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: .4rem .75rem;
  font-size: var(--text-sm);
  transition: background var(--duration-fast) ease;
}

.menu--footer .menu-link:hover { background: rgba(255,255,255,.16); }

/* =============================================================================
   22. GENERIC CONTENT CARDS & BLOCKS
   ============================================================================= */

.views-row,
.content-card,
.node--view-mode-teaser {
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.content-card,
.node--view-mode-teaser { padding: 1.25rem; }

.content-card__title,
.node--view-mode-teaser h2 {
  margin: 0 0 .65rem;
  font-size: 1.35rem;
  font-family: var(--font-serif);
  line-height: 1.15;
}

.content-card__title a,
.node--view-mode-teaser h2 a {
  color: var(--color-ink);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.content-card__title a:hover { color: var(--color-primary); }

.content-card__body,
.node__content,
.views-field { color: var(--color-ink-muted); }

.node__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 0 0 var(--space-4);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

/* Programme layout */
.programme-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
  gap: 1.5rem;
}

.programme-layout__facts { display: grid; gap: .9rem; }

.fact-card {
  padding: var(--space-4) 1.1rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.block {
  padding: var(--space-4) 1.25rem;
  background: rgba(255,255,255,.72);
  border-radius: var(--radius-md);
}

/* Messages */
.messages {
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

/* View content grid */
.view-content,
.views-view-grid,
.front-sections .view-content {
  display: grid;
  gap: 1.25rem;
}

.view-content { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* =============================================================================
   23. RESPONSIVE — TABLET (≤ 1180px)
   ============================================================================= */

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

  .front-events__track,
  .front-events:not(.front-events--deadlines) .front-events__track {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }
}

/* =============================================================================
   24. RESPONSIVE — TABLET/MOBILE (≤ 980px)
   ============================================================================= */

@media (max-width: 980px) {
  /* Nav */
  .menu-toggle { display: inline-flex; justify-self: start; }
  .submenu-toggle { display: inline-flex !important; }

  .site-navigation {
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding-top: var(--space-2);
  }

  .site-navigation.is-open { display: flex !important; }

  .site-header .site-header__nav-bar {
    grid-template-columns: auto 1fr;
  }

  .site-header .menu--main.menu-level--0,
  .site-header .header-menu {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  .site-header .menu--main > .menu-item > .menu-item__row > .menu-link,
  .site-header .header-menu__link {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: .85rem 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
  }

  .site-header .header-submenu,
  .site-header .menu--main .menu-level--1,
  .site-header .menu--main .menu-level--2 {
    position: static !important;
    min-width: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    border-radius: 0 !important;
    display: none !important;
  }

  .site-header .header-menu__item.is-open > .header-submenu,
  .site-header .menu--main .menu-item.is-open > .menu-level {
    display: block !important;
  }

  /* Header layout */
  .site-header__top {
    grid-template-columns: 1fr;
    padding: var(--space-4) 0 var(--space-3);
  }

  .site-header__tools { flex-direction: column; align-items: stretch; }

  .site-header .site-navigation__search--top { width: 100%; }
  .site-header .site-navigation__search--top form { grid-template-columns: 1fr; }

  /* Sections */
  .front-hero__slider,
  .front-hero__slide,
  .front-hero__inner { min-height: 34rem; }

  .front-hero__inner {
    grid-template-columns: 1fr;
    padding-block: 4.5rem;
  }

  .front-innovation__feature { grid-template-columns: 1fr; min-height: 0; }
  .front-innovation__media { position: relative; width: 100%; min-height: 18rem; order: 1; }
  .front-innovation__panel { width: calc(100% - 1.5rem); margin: -4.5rem auto 0; order: 2; }

  .front-news-headlines { grid-template-columns: 1fr; gap: 2rem; }
  .front-news-headlines__featured-media { min-height: 18rem; }
  .front-news-headlines__item { grid-template-columns: minmax(0, 1fr) minmax(190px, .52fr); }
  .front-news-headlines__thumb { height: 170px; }

  .front-news-feature__main { display: grid; min-height: 0; }
  .front-news-feature__media { width: 100%; height: 360px; border-radius: var(--radius-md); }
  .front-news-feature__panel { position: relative; top: auto; left: auto; width: calc(100% - 1.5rem); margin: -4.5rem auto 0; transform: none; }
  .front-news-feature__track { grid-auto-columns: calc((100% - 1rem) / 2); }

  .front-dual-sections__grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .front-news__track,
  .front-events__track,
  .front-events:not(.front-events--deadlines) .front-events__track,
  .front-news-feature__track {
    grid-auto-columns: minmax(18rem, 82vw);
  }

  .front-numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.4rem; }
  .front-numbers__rotator { min-height: 430px; }
  .front-numbers__item + .front-numbers__item { border-top: 1px solid var(--color-border); border-left: 0; }

  .front-events:not(.front-events--deadlines) .front-events__slider { width: 100%; margin-top: var(--space-4); }
  .front-events:not(.front-events--deadlines) .front-event-card { border-right: 0; }

  .programme-layout,
  .content-grid--has-sidebar { grid-template-columns: 1fr; }

  .site-footer__top { padding: 1.5rem 0 1.25rem; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; }

  .front-news__arrow--prev { left: -8px; }
  .front-news__arrow--next { right: -8px; }

  .page-wrapper:not(.page-wrapper--front) .site-main-wrapper > .site-container { width: min(calc(100% - 1rem), 1480px); }
}

/* =============================================================================
   25. RESPONSIVE — MOBILE (≤ 760px)
   ============================================================================= */

@media (max-width: 760px) {
  body { line-height: 1.58; }

  .front-hero__slider,
  .front-hero__slide,
  .front-hero__inner { min-height: 31rem; }

  .front-hero__inner { align-items: flex-end; padding-block: 3rem 4.5rem; }
  .front-hero__content { padding: var(--space-4); border-left-width: 4px; }
  .front-hero h1 { font-size: clamp(1.9rem, 10vw, 3rem); line-height: 1.05; }

  .front-news__heading,
  .front-programs__heading,
  .front-events__heading {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .front-news__all-link,
  .front-programs__all-link,
  .front-events__all-link { width: 100%; justify-content: center; }

  .front-programs__grid { grid-template-columns: 1fr; }
  .front-news-headlines__item { grid-template-columns: minmax(0, 1fr); }
  .front-news-headlines__thumb { order: -1; width: 100%; min-width: 0; }

  .front-events__showcase { min-height: 20rem; }
  .front-events__showcase-content { width: 100%; padding: 1.25rem; }
  .front-events__showcase h2 { font-size: clamp(2rem, 12vw, 3.1rem); }

  .front-news__track,
  .front-events__track,
  .front-events:not(.front-events--deadlines) .front-events__track,
  .front-news-feature__track { grid-auto-columns: 88vw; }

  .front-numbers__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .front-numbers__rotator { min-height: 450px; }

  .page-shell__grid { padding: .4rem var(--space-4) 2.5rem; }

  .page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-content > .node--type-page,
  .page-wrapper:not(.page-wrapper--front) .block-system-main-block > .node--type-page,
  .page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-content > .view,
  .page-wrapper:not(.page-wrapper--front) .block-system-main-block > .view,
  .page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-content > .views-element-container,
  .page-wrapper:not(.page-wrapper--front) .block-system-main-block > .views-element-container {
    padding: 0;
  }

  .page-wrapper:not(.page-wrapper--front) table { min-width: 42rem; }

  .views-exposed-form,
  form.dgrsi-exposed-filter,
  .views-exposed-form .form--inline,
  form.dgrsi-exposed-filter .form--inline {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   26. RESPONSIVE — SMALL MOBILE (≤ 420px)
   ============================================================================= */

@media (max-width: 420px) {
  .site-container,
  .page-wrapper--front .site-container,
  .page-wrapper:not(.page-wrapper--front) .site-main-wrapper > .site-container {
    width: calc(100% - 1rem);
  }

  .front-hero__slider,
  .front-hero__slide,
  .front-hero__inner { min-height: 29rem; }

  .front-news__track,
  .front-events__track,
  .front-events:not(.front-events--deadlines) .front-events__track,
  .front-news-feature__track { grid-auto-columns: calc(100vw - 1.5rem); }

  .footer-columns { grid-template-columns: 1fr; gap: 1.6rem; }
  .site-footer__meta { padding-top: 1.8rem; }
}

/* Breadcrumb mobile */
@media (max-width: 768px) {
  .breadcrumb { font-size: var(--text-xs); padding: 0 var(--space-4); }
}

@media (max-width: 480px) {
  .region-breadcrumb { padding: .6rem 0; }
  .breadcrumb li:first-child a { font-size: 0; }
  .breadcrumb li:first-child a::before { font-size: 1.2rem; margin-right: 0; }
}

/* =============================================================================
   Academic staff resources portal
   ============================================================================= */

.path-academic-staff-resources .staff-resource-portal {
  --staff-blue: #003B8E;
  --staff-blue-bright: #1167d8;
  --staff-yellow: #F2B705;
  --staff-ink: #071842;
  --staff-muted: #40516f;
  --staff-line: #dbe7f7;
  --staff-soft: #f5f8fd;
  display: grid;
  gap: 1.05rem;
}

.path-academic-staff-resources .staff-resource-portal__intro,
.path-academic-staff-resources .staff-resource-card,
.path-academic-staff-resources .staff-resource-portal__tools {
  background: #fff;
  border: 1px solid var(--staff-line);
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(0, 31, 84, .08);
}

.path-academic-staff-resources .staff-resource-portal__intro {
  display: grid;
  grid-template-columns: 4.75rem 1px 1fr;
  align-items: center;
  gap: 1.45rem;
  padding: 1.45rem 1.75rem;
  margin-bottom: .3rem;
}

.path-academic-staff-resources .staff-resource-portal__intro::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 2px;
  height: 3.9rem;
  background: var(--staff-yellow);
  border-radius: 999px;
}

.path-academic-staff-resources .staff-resource-portal__intro-icon {
  grid-column: 1;
  width: 4.75rem;
  height: 4.75rem;
}

.path-academic-staff-resources .staff-resource-portal__intro-icon svg,
.path-academic-staff-resources .staff-resource-card__download svg {
  display: block;
  width: 100%;
  height: 100%;
}

.path-academic-staff-resources .staff-resource-portal__intro-copy {
  grid-column: 3;
}

.path-academic-staff-resources .staff-resource-portal__intro-copy p {
  margin: 0;
  color: var(--staff-ink);
  font-size: 1.05rem;
  line-height: 1.65;
}

.path-academic-staff-resources .staff-resource-portal__tools {
  display: grid;
  grid-template-columns: minmax(16rem, 30rem) 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, .88);
}

.path-academic-staff-resources .staff-resource-portal__search {
  display: flex;
  align-items: center;
  min-height: 3rem;
  border: 1px solid #c7d7ef;
  border-radius: 10px;
  color: var(--staff-blue-bright);
  background: #fff;
  padding: 0 .95rem;
}

.path-academic-staff-resources .staff-resource-portal__search svg {
  flex: 0 0 1.3rem;
  width: 1.3rem;
  height: 1.3rem;
  margin-right: .7rem;
}

.path-academic-staff-resources .staff-resource-portal__search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--staff-ink);
  background: transparent;
  font: inherit;
}

.path-academic-staff-resources .staff-resource-portal__search input::placeholder {
  color: #667695;
}

.path-academic-staff-resources .staff-resource-portal__filters {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .65rem;
}

.path-academic-staff-resources .staff-resource-portal__filters button {
  min-height: 2.65rem;
  border: 1px solid #c7d7ef;
  border-radius: 10px;
  padding: 0 1.15rem;
  color: var(--staff-blue);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.path-academic-staff-resources .staff-resource-portal__filters button:hover,
.path-academic-staff-resources .staff-resource-portal__filters button:focus-visible,
.path-academic-staff-resources .staff-resource-portal__filters button.is-active {
  color: #fff;
  background: var(--staff-blue);
  border-color: var(--staff-blue);
  box-shadow: 0 10px 22px rgba(0, 59, 142, .22);
  transform: translateY(-1px);
}

.path-academic-staff-resources .staff-resource-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  gap: 1.35rem;
  align-items: center;
  padding: 1.45rem 1.65rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.path-academic-staff-resources .staff-resource-card:hover {
  transform: translateY(-5px);
  border-color: #c8dcf6;
  box-shadow: 0 22px 48px rgba(0, 31, 84, .13);
}

.path-academic-staff-resources .staff-resource-card.is-hidden {
  display: none !important;
}

.path-academic-staff-resources .staff-resource-card__content {
  min-width: 0;
}

.path-academic-staff-resources .staff-resource-card__heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .85rem;
  margin-bottom: .55rem;
}

.path-academic-staff-resources .staff-resource-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 .25rem;
  border-radius: 5px;
  color: #fff;
  background: var(--staff-yellow);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
}

.path-academic-staff-resources .page-wrapper:not(.page-wrapper--front) .staff-resource-card__heading h2,
.path-academic-staff-resources .staff-resource-card__heading h2 {
  margin: 0;
  color: var(--staff-blue);
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
}

.path-academic-staff-resources .staff-resource-card__body {
  color: var(--staff-ink);
  font-size: 1rem;
  line-height: 1.6;
}

.path-academic-staff-resources .staff-resource-card__body p,
.path-academic-staff-resources .staff-resource-card__body div {
  margin: 0 0 .25rem;
}

.path-academic-staff-resources .staff-resource-card__body p:last-child,
.path-academic-staff-resources .staff-resource-card__body div:last-child {
  margin-bottom: 0;
}

.path-academic-staff-resources .staff-resource-card__body a,
.path-academic-staff-resources .staff-resource-card__note a {
  color: #075dcc;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 3px;
}

.path-academic-staff-resources .staff-resource-card__body a:hover,
.path-academic-staff-resources .staff-resource-card__note a:hover {
  color: var(--staff-blue);
  text-decoration: underline;
  text-decoration-color: var(--staff-yellow);
  text-decoration-thickness: 2px;
}

.path-academic-staff-resources .staff-resource-card__note {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  width: min(100%, 46rem);
  margin-top: .85rem;
  padding: .75rem .9rem;
  border-radius: 9px;
  color: #18375f;
  background: #eaf3ff;
  font-size: .92rem;
  line-height: 1.45;
}

.path-academic-staff-resources .staff-resource-card__note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  color: #fff;
  background: #1f7eea;
  font-size: .82rem;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
}

.path-academic-staff-resources .staff-resource-card__download {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 8.5rem;
  padding: 1rem;
  border: 1px solid #cfe0f6;
  border-radius: 12px;
  color: #0b61d6;
  background: linear-gradient(160deg, #f7fbff 0%, #eef5ff 100%);
  text-align: center;
}

.path-academic-staff-resources .staff-resource-card__download svg {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: .55rem;
}

.path-academic-staff-resources .staff-resource-card__download .file {
  display: block;
  min-height: 0;
  padding: 0;
  background: none;
}

.path-academic-staff-resources .staff-resource-card__download .file::before {
  display: none;
}

.path-academic-staff-resources .staff-resource-card__download a {
  display: inline-block;
  color: var(--staff-blue);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.path-academic-staff-resources .staff-resource-card__download:hover a,
.path-academic-staff-resources .staff-resource-card__download a:hover {
  color: #075dcc;
  text-decoration: underline;
  text-decoration-color: var(--staff-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.path-academic-staff-resources .staff-resource-card__meta {
  display: block;
  margin-top: .85rem;
  color: #244a7c;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}

@media (max-width: 980px) {
  .path-academic-staff-resources .staff-resource-portal__tools {
    grid-template-columns: 1fr;
  }

  .path-academic-staff-resources .staff-resource-portal__filters {
    justify-content: flex-start;
  }

  .path-academic-staff-resources .staff-resource-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-academic-staff-resources .staff-resource-card__download {
    grid-column: 1;
    min-height: 6.5rem;
    width: min(100%, 16rem);
  }
}

@media (max-width: 640px) {
  .path-academic-staff-resources .staff-resource-portal__intro {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }

  .path-academic-staff-resources .staff-resource-portal__intro::before {
    grid-column: 1;
    width: 4rem;
    height: 2px;
  }

  .path-academic-staff-resources .staff-resource-portal__intro-copy,
  .path-academic-staff-resources .staff-resource-portal__intro-icon {
    grid-column: 1;
  }

  .path-academic-staff-resources .staff-resource-card {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .path-academic-staff-resources .staff-resource-card__download {
    grid-column: 1;
    width: 100%;
  }
}

/* =============================================================================
   Graduate students resources portal
   ============================================================================= */

.path-graduate-students-resources .graduate-resource-portal {
  --graduate-blue: #003B8E;
  --graduate-bright: #0054d6;
  --graduate-yellow: #F2B705;
  --graduate-ink: #071842;
  --graduate-line: #dce8f8;
  display: grid;
  gap: 1rem;
}

.path-graduate-students-resources .graduate-resource-portal__intro {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.6rem;
  border-radius: 10px;
  background: #edf4ff;
  color: var(--graduate-ink);
}

.path-graduate-students-resources .graduate-resource-portal__intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #fff;
  background: var(--graduate-blue);
  font-size: 1.75rem;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
}

.path-graduate-students-resources .graduate-resource-portal__intro-copy p {
  margin: 0;
  color: var(--graduate-ink);
  font-size: 1.02rem;
  line-height: 1.6;
}

.path-graduate-students-resources .graduate-resource-list {
  display: grid;
  gap: .9rem;
}

.path-graduate-students-resources .graduate-resource-card {
  display: grid;
  grid-template-columns: 8.8rem 1px minmax(0, 1fr) 13rem;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.55rem;
  border: 1px solid var(--graduate-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 31, 84, .08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.path-graduate-students-resources .graduate-resource-card:hover {
  transform: translateY(-4px);
  border-color: #c7dcf7;
  box-shadow: 0 20px 44px rgba(0, 31, 84, .13);
}

.path-graduate-students-resources .graduate-resource-card__icon {
  width: 7.3rem;
  height: 7.3rem;
}

.path-graduate-students-resources .graduate-resource-card__icon svg,
.path-graduate-students-resources .graduate-resource-card__download svg,
.path-graduate-students-resources .graduate-resource-portal__notice-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.path-graduate-students-resources .graduate-resource-card__divider {
  width: 2px;
  height: 84%;
  min-height: 7rem;
  border-radius: 999px;
  background: var(--graduate-yellow);
}

.path-graduate-students-resources .graduate-resource-card__content {
  min-width: 0;
}

.path-graduate-students-resources .graduate-resource-card__heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  margin-bottom: .55rem;
}

.path-graduate-students-resources .graduate-resource-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.8rem;
  padding: 0 .35rem;
  border-radius: 6px;
  color: #fff;
  background: var(--graduate-yellow);
  font-size: .9rem;
  font-weight: 900;
  line-height: 1;
}

.path-graduate-students-resources .page-wrapper:not(.page-wrapper--front) .graduate-resource-card__heading h2,
.path-graduate-students-resources .graduate-resource-card__heading h2 {
  margin: 0;
  color: var(--graduate-blue);
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  font-weight: 800;
  line-height: 1.25;
}

.path-graduate-students-resources .graduate-resource-card__body {
  color: var(--graduate-ink);
  font-size: 1rem;
  line-height: 1.55;
}

.path-graduate-students-resources .graduate-resource-card__body p,
.path-graduate-students-resources .graduate-resource-card__body ul,
.path-graduate-students-resources .graduate-resource-card__body ol {
  margin: 0 0 .45rem;
}

.path-graduate-students-resources .graduate-resource-card__body p:last-child,
.path-graduate-students-resources .graduate-resource-card__body ul:last-child,
.path-graduate-students-resources .graduate-resource-card__body ol:last-child {
  margin-bottom: 0;
}

.path-graduate-students-resources .graduate-resource-card__body ul,
.path-graduate-students-resources .graduate-resource-card__body ol {
  padding-left: 1.2rem;
}

.path-graduate-students-resources .graduate-resource-card__body li {
  margin-bottom: .45rem;
}

.path-graduate-students-resources .graduate-resource-card__body a,
.path-graduate-students-resources .graduate-resource-portal__notice a {
  color: #075dcc;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 3px;
}

.path-graduate-students-resources .graduate-resource-card__body a:hover,
.path-graduate-students-resources .graduate-resource-portal__notice a:hover {
  color: var(--graduate-blue);
  text-decoration: underline;
  text-decoration-color: var(--graduate-yellow);
  text-decoration-thickness: 2px;
}

.path-graduate-students-resources .graduate-resource-card__download {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  padding: 1.15rem;
  border-left: 1px solid var(--graduate-line);
  color: var(--graduate-bright);
  text-align: center;
}

.path-graduate-students-resources .graduate-resource-card__download > svg {
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 1rem;
}

.path-graduate-students-resources .graduate-resource-card__button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  min-height: 4.2rem;
  padding: .7rem 1rem;
  border-radius: 7px;
  color: #fff;
  background: #0048c8;
  box-shadow: 0 10px 20px rgba(0, 72, 200, .22);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.path-graduate-students-resources .graduate-resource-card__button a:hover,
.path-graduate-students-resources .graduate-resource-card__button a:focus-visible {
  color: #fff;
  background: var(--graduate-blue);
  box-shadow: 0 14px 28px rgba(0, 59, 142, .28);
  transform: translateY(-2px);
}

.path-graduate-students-resources .graduate-resource-card__meta {
  display: block;
  margin-top: 1rem;
  color: #18375f;
  font-size: .85rem;
  font-weight: 700;
}

.path-graduate-students-resources .graduate-resource-portal__notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.45rem;
  border-radius: 10px;
  background: #fff5df;
  color: var(--graduate-ink);
  font-size: 1rem;
  line-height: 1.55;
}

.path-graduate-students-resources .graduate-resource-portal__notice-icon {
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
}

@media (max-width: 980px) {
  .path-graduate-students-resources .graduate-resource-card {
    grid-template-columns: 7rem 1px minmax(0, 1fr);
  }

  .path-graduate-students-resources .graduate-resource-card__icon {
    width: 6rem;
    height: 6rem;
  }

  .path-graduate-students-resources .graduate-resource-card__download {
    grid-column: 3;
    width: min(100%, 14rem);
    min-height: 8rem;
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .path-graduate-students-resources .graduate-resource-portal__intro,
  .path-graduate-students-resources .graduate-resource-portal__notice {
    align-items: flex-start;
  }

  .path-graduate-students-resources .graduate-resource-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .path-graduate-students-resources .graduate-resource-card__divider {
    width: 4rem;
    height: 2px;
    min-height: 0;
  }

  .path-graduate-students-resources .graduate-resource-card__download {
    grid-column: 1;
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--graduate-line);
    padding: 1rem 0 0;
  }
}

/* =============================================================================
   Current research projects
   ============================================================================= */

.path-current-research-projects .research-projects-portal {
  --project-blue: #0046c9;
  --project-blue-dark: #002e8a;
  --project-gold: #f5bf00;
  --project-ink: #071842;
  --project-muted: #4b5d7a;
  --project-line: #dfe9f7;
  display: grid;
  gap: .85rem;
}

.path-current-research-projects .research-projects-portal__intro {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.2rem;
  margin-bottom: .3rem;
  padding: .75rem 1.2rem;
  border: 1px solid #d9e6f8;
  border-radius: 6px;
  background: #f4f8ff;
  color: var(--project-blue-dark);
  box-shadow: 0 4px 16px rgba(0, 45, 126, .06);
}

.path-current-research-projects .research-projects-portal__intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #fff;
  background: var(--project-blue);
  font-size: 1.2rem;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
}

.path-current-research-projects .research-projects-portal__intro p {
  margin: 0;
  color: var(--project-blue-dark);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.45;
}

.path-current-research-projects .view-content {
  display: grid;
  gap: .85rem;
}

.path-current-research-projects .page-wrapper:not(.page-wrapper--front) .view-content > .views-row,
.path-current-research-projects .page-wrapper:not(.page-wrapper--front) #block-dgrsi-custom-content .view-content .views-row,
.path-current-research-projects .page-wrapper:not(.page-wrapper--front) .block-system-main-block .view-content .views-row {
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}

.path-current-research-projects .research-project-card {
  display: block;
  min-height: 8.9rem;
  padding: .95rem 1.35rem .95rem 1.25rem;
  border: 1px solid var(--project-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0, 38, 105, .08);
}

.path-current-research-projects .research-project-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.2rem;
  height: 7.2rem;
}

.path-current-research-projects .research-project-card__media svg,
.path-current-research-projects .research-project-card__fact-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.path-current-research-projects .research-project-card__content {
  min-width: 0;
}

.path-current-research-projects .page-wrapper:not(.page-wrapper--front) .research-project-card h2,
.path-current-research-projects .research-project-card h2 {
  margin: 0 0 .85rem;
  color: #000;
  font-size: clamp(1.02rem, .5vw + .94rem, 1.24rem);
  font-weight: 900;
  line-height: 1.22;
}

.path-current-research-projects .research-project-card__meta {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.1fr);
  border-top: 1px solid var(--project-line);
}

.path-current-research-projects .research-project-card__fact {
  display: grid;
  grid-template-columns: 3.15rem minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value";
  column-gap: .75rem;
  align-items: center;
  min-width: 0;
  min-height: 3.45rem;
  padding: .8rem 1rem .55rem 0;
}

.path-current-research-projects .research-project-card__fact + .research-project-card__fact {
  padding-left: 1rem;
  border-left: 1px solid var(--project-line);
}

.path-current-research-projects .research-project-card__fact-icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 7px;
  color: var(--project-blue);
  background: #f2f6ff;
}

.path-current-research-projects .research-project-card__label {
  grid-area: label;
  color: var(--project-ink);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.2;
}

.path-current-research-projects .research-project-card__value {
  grid-area: value;
  min-width: 0;
  color: #254064;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.path-current-research-projects .pager {
  margin-top: 1.1rem;
}

@media (max-width: 920px) {
  .path-current-research-projects .research-project-card__meta {
    grid-template-columns: 1fr;
  }

  .path-current-research-projects .research-project-card__fact + .research-project-card__fact {
    padding-left: 0;
    border-top: 1px solid var(--project-line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .path-current-research-projects .research-projects-portal__intro {
    align-items: flex-start;
  }

  .path-current-research-projects .research-project-card {
    padding: 1rem;
  }

  .path-current-research-projects .research-project-card__fact {
    grid-template-columns: 2.8rem minmax(0, 1fr);
  }
}

/* =============================================================================
   27. ACCESSIBILITY
   ============================================================================= */

/* Focus visible styles */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* High contrast */
@media (prefers-contrast: high) {
  .breadcrumb a { text-decoration: underline; }
  .breadcrumb li:last-child { border: 2px solid currentColor; }
  .content-grid__main { border: 2px solid #000; box-shadow: none; }
}

/* =============================================================================
   28. PRINT
   ============================================================================= */

@media print {
  .site-header, .site-footer, .front-hero__controls,
  .front-news__arrow, .menu-toggle { display: none !important; }

  .region-breadcrumb { border-bottom: 1px solid #ccc; box-shadow: none; }

  .breadcrumb a { color: #000; text-decoration: none; }

  .page-shell__grid { max-width: 100%; padding: 0; animation: none; }

  .content-grid__main {
    box-shadow: none;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: var(--space-4);
  }
}













/* ==========================================================================
   Base & Root Variables
   ========================================================================== */
:root {
  --color-primary: #1558a8;
  --color-primary-dark: #0d3b6e;
  --color-primary-light: #1e73be;
  --color-secondary: #fcc200;
  --color-secondary-dark: #e6af00;
  --color-secondary-light: #ffe790;
  
  --color-text-main: #2d3748;
  --color-text-muted: #64748b;
  --color-bg-light: #f8fafc;
  --color-border: #e2e8f0;
  --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.region-content {
  font-family: var(--font-family-base);
  color: var(--color-text-main);
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* ==========================================================================
   Page Header Title
   ========================================================================== */
.node__title {
  color: var(--color-primary-dark);
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-secondary);
}

/* ==========================================================================
   Main Layout Grid (Content vs Sidebar)
   ========================================================================== */
.programme-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  .programme-layout {
    grid-template-columns: 2.5fr 1fr;
  }
}

/* ==========================================================================
   Content Fields & Typography
   ========================================================================== */
.field--label-above .field__label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.programme-layout__summary .field {
  margin-bottom: 2rem;
}

.programme-layout__summary .field__item p {
  margin-top: 0;
  font-size: 1.05rem;
}

/* Bullet list styling for Entry Requirements */
.field--name-field-entry ul {
  padding-left: 1.25rem;
  margin: 0;
}

.field--name-field-entry li {
  margin-bottom: 0.5rem;
}

/* Override inline spans Drupal often generates */
.field--name-field-entry span {
  font-size: inherit !important;
  font-family: inherit !important;
}

/* ==========================================================================
   Data Tables (Course Details & Accreditation)
   ========================================================================== */
/* Reset and override inline HTML styles on tables and cells */
.programme-layout__summary table,
#table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 1rem 0 2rem 0;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.programme-layout__summary td,
#table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  /* Strip forced inline HTML widths */
  width: auto !important; 
}

/* Table Header styling */
thead #tb-header,
#tb-header {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  border: none;
}

thead #tb-header p,
#tb-header p {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

thead tr:nth-child(2) td {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Table Body Styling */
tbody tr:hover {
  background-color: rgba(30, 115, 190, 0.04);
}

/* Total/Summary Row in tables */
tbody tr:last-child {
  background-color: var(--color-bg-light);
  font-weight: bold;
}

tbody tr:last-child td {
  border-top: 2px solid var(--color-border);
  border-bottom: none;
}

/* Make tables scrollable on smaller screens */
.field--name-field-course-details .field__items {
  overflow-x: auto;
}

/* ==========================================================================
   Sidebar Fact Cards
   ========================================================================== */
.programme-layout__facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 992px) {
  .programme-layout__facts {
    position: sticky;
    top: 20px;
    align-self: start;
  }
}

.fact-card {
  background-color: var(--color-bg-light);
  border-left: 4px solid var(--color-primary);
  padding: 12px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

/* Hide empty fact card generated by HTML */
.fact-card:empty {
  display: none;
}

.fact-card .field__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.fact-card .field__item,
.fact-card .field__items {
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 0.95rem;
}

.fact-card a {
  color: var(--color-primary-light);
  text-decoration: none;
  word-break: break-all;
}

.fact-card a:hover {
  text-decoration: underline;
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Bottom Metadata (Tuition & Accreditation)
   ========================================================================== */
.node--view-mode-full > .field {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

/* Inline badges for Tuition and Status */
.field--name-field-accreditation-status,
.field--name-field-tuition-for-east-africans,
.field--name-field-tuition-for-international- {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 15px;
  vertical-align: top;
  min-width: 220px;
}

.field--name-field-accreditation-status .field__item {
  display: inline-block;
  background-color: #d1fae5;
  color: #065f46;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}











/* Full Width Drupal Block Wrapper */
.block-system-main-block,
.views-element-container,
.view-admissions {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide raw Drupal inline style header tags */
.view-header {
  display: none !important;
}

/* ==========================================================================
   3. Main Table Layout Transformation (100% Width Grid)
   ========================================================================== */
.view-content {
  width: 100%;
  padding: 0 2rem 4rem 2rem;
}

@media (max-width: 768px) {
  .view-content {
    padding: 0 1rem 2rem 1rem;
  }
}

.views-view-table {
  width: 100% !important;
  border-collapse: collapse;
  display: block;
}

/* Hide original HTML Table Headers on Desktop (Replaced by Cards/Custom Layout) */
.views-view-table thead {
  display: none;
}

/* Flex Container for Rows to Enable Sorting */
.views-view-table tbody {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Base Card Style for Each Program Row */
.views-view-table tbody tr {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr;
  align-items: center;
  width: 100%;
  background-color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  border-left: 6px solid var(--color-primary, #1558a8);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.25s ease-in-out;
}

.views-view-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(13, 59, 110, 0.08);
  border-color: #cbd5e1;
  border-left-color: var(--color-secondary, #fcc200);
}

/* Table Cells Formatting */
.views-view-table tr td {
  padding: 0.25rem 0.75rem;
  font-size: 0.95rem;
  color: #334155;
}

/* Programme Name Link */
.views-field-field-code-and-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.views-field-field-code-and-name a {
  color: var(--color-primary-dark, #0d3b6e) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.views-field-field-code-and-name a:hover {
  color: var(--color-primary-light, #1e73be) !important;
}

/* Code, Duration & Study Time Labels */
.views-field-field-programme-co {
  font-weight: 700;
  color: var(--color-primary, #1558a8);
}

.views-field-field-duration,
.views-field-field-study-time {
  font-weight: 500;
  color: #64748b;
}

/* Add Responsive Icons via Pseudo-elements */
.views-field-field-duration::before {
  content: "⏱ ";
  opacity: 0.7;
}

.views-field-field-study-time::before {
  content: "📅 ";
  opacity: 0.7;
}

/* ==========================================================================
   4. Automatic Level Categorization (PhD, Masters, PG Diploma)
   ========================================================================== */

/* --- Category 1: Doctor of Philosophy (PhD) --- */
.views-view-table tbody tr:has(a[href*="doctor"]) {
  order: 1;
  border-left-color: var(--color-primary-dark, #0d3b6e);
  background-color: #f8fafc;
}

.views-view-table tbody tr:has(a[href*="doctor"]):first-of-type {
  margin-top: 1rem;
}

.views-view-table tbody tr:has(a[href*="doctor"]):first-of-type::before {
  content: "🎓 Doctoral (PhD) Programmes";
  grid-column: 1 / -1;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary-dark, #0d3b6e);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-secondary, #fcc200);
}

/* --- Category 2: Master's Programmes --- */
.views-view-table tbody tr:has(a[href*="master"]) {
  order: 2;
}

.views-view-table tbody tr:has(a[href*="master"]):first-of-type {
  margin-top: 2.5rem;
}

.views-view-table tbody tr:has(a[href*="master"]):first-of-type::before {
  content: "📚 Master's Degree Programmes";
  grid-column: 1 / -1;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary-dark, #0d3b6e);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-secondary, #fcc200);
}

/* --- Category 3: Postgraduate Diplomas --- */
.views-view-table tbody tr:has(a[href*="postgraduate"]),
.views-view-table tbody tr:has(a[href*="diploma"]) {
  order: 3;
  border-left-color: var(--color-secondary-dark, #e6af00);
}

.views-view-table tbody tr:has(a[href*="postgraduate"]):first-of-type,
.views-view-table tbody tr:has(a[href*="diploma"]):first-of-type {
  margin-top: 2.5rem;
}

.views-view-table tbody tr:has(a[href*="postgraduate"]):first-of-type::before,
.views-view-table tbody tr:has(a[href*="diploma"]):first-of-type::before {
  content: "📜 Postgraduate Diploma Programmes";
  grid-column: 1 / -1;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary-dark, #0d3b6e);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-secondary, #fcc200);
}

/* ==========================================================================
   5. Mobile & Tablet Responsiveness
   ========================================================================== */
@media (max-width: 900px) {
  .views-view-table tbody tr {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .views-field-field-code-and-name {
    grid-column: 1 / -1;
    margin-bottom: 0.25rem;
  }

  .views-field-field-programme-co {
    grid-column: 1 / -1;
    display: inline-block;
  }
  
  .views-field-field-programme-co::before {
    content: "Code: ";
    color: #94a3b8;
    font-weight: 400;
  }
}



@media screen and (max-width: 767px) {
.site-header__home{
display: block !important;
}
.site-header__title {
font-size: 24px !important;
padding-top: 25px !important;
}
.site-header__tools {
flex-direction: unset !important;        
}
.site-header .site-navigation__search--top form {
display: -webkit-box !important;
}
}
