@font-face {
  font-family: 'UPO Serif';
  src: url('assets/fonts/gelasio-roman.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --navy: #062653;
  --deep: #032044;
  --gold: #ffc330;
  --text: #102343;
  --muted: #536175;
  --border: #dce2ea;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: #fff; font-family: Arial, Helvetica, sans-serif; line-height: 1.4; }
h1, h2, h3 { font-family: 'UPO Serif', Georgia, serif; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 2.45vw, 2.1rem); margin: 0; }
h3 { font-size: clamp(1rem, 1.5vw, 1.3rem); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img { max-width: 100%; }
picture { display: block; }
.icon { width: 1.5em; height: 1.5em; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { width: 100%; max-width: 1360px; margin: auto; padding-left: 48px; padding-right: 48px; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; left: 10px; top: 10px; z-index: 100; background: #fff; padding: 10px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #d99000; outline-offset: 3px; }
main:focus, .search-target:focus { outline: 3px solid var(--gold); outline-offset: -3px; }
section[id], article[id], details[id], #services { scroll-margin-top: 20px; }
.js-only { display: none; }
.js .js-only { display: flex; }
.gold-rule { width: 54px; height: 5px; background: var(--gold); border-radius: 1px; margin: 10px 0 18px; }

/* Institutional header, with all six groups shown at the reference desktop width. */
.utility { background: var(--deep); color: #fff; font-size: .8rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.utility-inner > div { display: flex; gap: 12px; align-items: center; }
.utility .icon { width: 18px; height: 18px; }
.apply { background: var(--gold); color: #091b37; padding: 4px 18px; border-radius: 5px; font-weight: 700; }
.site-header { background: #fff; position: relative; z-index: 5; box-shadow: 0 2px 8px #0001; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-height: clamp(88px, 8.6vw, 124px); }
.brand { flex: 0 0 clamp(205px, 20vw, 260px); }
.brand img { display: block; width: 100%; height: auto; max-height: clamp(88px, 8.4vw, 120px); object-fit: contain; }
.header-inner nav { margin-left: auto; flex: 1; min-width: 0; }
.nav-list, .submenu { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: clamp(6px, 1vw, 16px); }
.nav-item { position: relative; }
.nav-item a { display: block; font-weight: 700; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(.75rem, 1.05vw, 1rem); white-space: nowrap; padding: 10px 0; }
.nav-heading { display: flex; align-items: center; }
.submenu-toggle { display: none; background: transparent; color: var(--navy); border: 0; min-width: 24px; min-height: 32px; padding: 6px; }
.js .submenu-toggle { display: block; }
.submenu-toggle::after { content: ''; display: block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin: auto; }
.submenu-toggle[aria-expanded='true']::after { transform: translateY(2px) rotate(225deg); }
.submenu { position: absolute; left: 0; top: 100%; width: 250px; max-width: calc(100vw - 36px); padding: 10px 16px; border-top: 4px solid var(--gold); border-radius: 0 0 5px 5px; background: #fff; box-shadow: 0 6px 18px #03204430; }
.nav-item:nth-last-child(-n+2) .submenu { left: auto; right: 0; }
.submenu a { font-family: Arial, Helvetica, sans-serif; white-space: normal; padding: 10px 4px; }
.submenu a:hover { background: #edf1f6; }
.search-toggle, .menu-toggle { display: none; border: 0; background: #edf1f6; color: var(--navy); padding: 10px; border-radius: 6px; min-height: 44px; }
.js .search-toggle { display: block; flex-shrink: 0; }
.js .menu-toggle { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.global-search { padding-top: 10px; padding-bottom: 20px; }
.global-search label { display: block; margin-bottom: 8px; }
.search-fields { display: flex; max-width: 750px; }
.global-search input { flex: 1; min-width: 0; padding: 12px; border: 1px solid var(--border); }
.global-search button, .program-finder form button { border: 0; background: var(--gold); color: #081e3c; padding: 12px 24px; font-weight: bold; }

/* The supplied graduation photograph stays the sole hero; no fictitious slides. */
.hero { position: relative; min-height: clamp(280px, 27.35vw, 420px); display: flex; align-items: center; overflow: hidden; background: var(--deep); color: #fff; }
.hero-image { position: absolute; inset: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,22,40,.9) 0%, rgba(3,22,40,.83) 30%, rgba(3,22,40,.68) 44%, rgba(3,22,40,.16) 60%, transparent 76%); }
.hero-content { position: relative; padding-top: 38px; padding-bottom: 26px; }
.hero h1 { font-size: clamp(2.1rem, 3.35vw, 3.15rem); line-height: 1.08; margin: 0; overflow-wrap: anywhere; }
.hero-content > p { font-size: clamp(1.125rem, 1.65vw, 1.5rem); max-width: clamp(330px, 35vw, 490px); line-height: 1.25; margin: 14px 0 20px; }
.actions { display: flex; gap: 20px; flex-wrap: wrap; }
.actions .btn { font-size: .875rem; padding: 9px 16px; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 16px; justify-content: center; padding: 12px 22px; border-radius: 8px; font-weight: 700; font-size: .95rem; }
.btn.gold { background: var(--gold); color: #081e3c; }
.btn.outline { border: 2px solid #fff; color: #fff; }
.btn.navy { background: var(--navy); color: #fff; }
.btn .icon { width: 20px; height: 20px; }

/* Compact discovery band; categories remain explicitly unverified. */
.program-finder { background: linear-gradient(110deg, #07345c, #03264b); color: #fff; padding: 14px 0 8px; }
.program-finder > .wrap { position: relative; }
.finder-top { display: grid; grid-template-columns: 40% minmax(0, 1fr); align-items: center; gap: 18px 26px; }
.finder-top > div { flex: 1 1 350px; }
.finder-top h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.finder-top .gold-rule { margin: 7px 0 0; }
.finder-top form { width: 100%; max-width: 100%; overflow: hidden; border-radius: 7px; }
.program-input-wrap { display: flex; align-items: center; background: #fff; color: var(--navy); flex: 1; min-width: 0; padding-left: 16px; }
.program-input-wrap .icon { width: 20px; height: 20px; }
.finder-top input { width: 100%; min-width: 0; padding: 8px 12px; border: 0; font-size: .75rem; }
.program-finder form button { padding-top: 8px; padding-bottom: 8px; font-size: .75rem; }
.program-categories { display: none; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 10px 0 6px; }
.js .program-categories { display: grid; }
.program-categories button { display: flex; flex-direction: column; align-items: center; justify-content: start; text-align: center; padding: 0 16px; border: 0; border-right: 1px solid #ffffff90; color: inherit; background: transparent; line-height: 1.15; }
.program-categories button:last-child { border-right: 0; }
.program-categories button:hover, .program-categories button[aria-pressed='true'] { background: #ffffff18; box-shadow: inset 0 -3px var(--gold); }
.program-categories .icon { width: clamp(32px, 3vw, 42px); height: clamp(32px, 3vw, 42px); margin-bottom: 4px; }
.program-categories span { font-size: clamp(.8rem, 1.1vw, 1rem); font-weight: 700; overflow-wrap: anywhere; max-width: 180px; }
.finder-note { font-size: .72rem; margin: 5px 0 0; }
#program-notice { padding-right: 100px; }
.finder-status { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; }
.finder-reset { position: absolute; right: 48px; bottom: 0; color: #fff; background: transparent; border: 0; text-decoration: underline; padding: 5px 0; font-size: .72rem; }
.finder-status.has-feedback .finder-reset { position: static; }

/* Rector and institutional introduction share the reference's three columns. */
.intro { display: grid; grid-template-columns: 27.6% 30.8% minmax(0, 1fr); gap: 23px; padding-top: 20px; padding-bottom: 26px; align-items: start; }
.rector-image { height: clamp(210px, 20.2vw, 290px); overflow: hidden; border-radius: 12px; }
.rector-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transform: scale(1.65); transform-origin: 50% 15%; }
.rector-copy .quote { font-size: 1rem; margin-top: 8px; }
.rector-copy strong { color: var(--navy); font-family: 'UPO Serif', Georgia, serif; }
.role, .muted { font-size: .8rem; margin: 4px 0; }
.muted { color: var(--muted); }
.brief { position: relative; border-left: 1px solid #aab7c9; padding-left: 26px; min-height: 210px; }
.brief > :not(.brief-mark) { position: relative; z-index: 1; }
.brief p { font-size: .95rem; margin-bottom: 20px; }
.brief-mark { position: absolute; width: 140px; height: 140px; right: 0; bottom: 0; color: #d8e1eb; opacity: .7; }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: 10px; }

/* Photo slots retain the composition even when source photographs are missing. */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1440px; padding: 0 12px 22px; }
.feature { position: relative; min-height: clamp(220px, 21.5vw, 310px); border-radius: 10px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; background: var(--deep); }
.feature-image, .feature > .photo-placeholder { position: absolute; inset: 0; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { position: relative; padding: 24px; width: 100%; background: linear-gradient(transparent, rgba(1,27,59,.98) 12%); }
.feature h2 { font-size: clamp(1.2rem, 1.95vw, 1.7rem); }
.feature .gold-rule { margin: 9px 0; }
.feature p { font-size: .95rem; margin: 0 0 8px; line-height: 1.25; }
.feature a { font-weight: 700; font-size: .95rem; }
.photo-placeholder { background: #e9eef4; color: #394f69; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; font-size: .75rem; }
.feature > .photo-placeholder { background: #133d60; color: #fff; align-items: start; justify-content: start; padding-top: 20px; }
.feature > .photo-placeholder .icon { width: 30px; height: 30px; color: var(--gold); }

/* News cards: shallow image strip, compact copy, and an honest pending state. */
.news { padding-top: 0; padding-bottom: 26px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; }
.section-head .gold-rule { margin-bottom: 8px; }
.section-note { margin-bottom: 12px; font-size: .72rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-left: -6px; margin-right: -6px; }
.news-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 4px #00000015; }
.news-card img, .news-media { display: block; width: 100%; height: clamp(96px, 9.3vw, 145px); object-fit: cover; }
.news-card .news-media { display: flex; }
.news-card > div:not(.news-media) { padding: 10px 16px; flex: 1; display: flex; flex-direction: column; }
.news-card h3 { margin: 0 0 6px; }
.news-card p { font-size: .85rem; line-height: 1.25; margin: 0 0 8px; }
.pending { color: #725800; font-size: .72rem; font-weight: 700; }
.news-card .pending { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.pending .icon { color: var(--navy); width: 20px; height: 20px; }

/* Four compact indicators, with no invented figures. */
.statistics { padding: 8px 0; background: var(--deep); color: #fff; }
.statistics > .wrap { display: grid; grid-template-columns: 25% minmax(0, 1fr) 100px; align-items: center; gap: 16px; }
.statistics-heading { flex: 1 1 230px; }
.statistics h2 { font-size: clamp(1.35rem, 2.1vw, 1.9rem); }
.statistics .gold-rule { margin-bottom: 0; }
.statistics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; flex: 3 1 600px; margin: 0; }
.statistics-grid > div { padding: 0 14px; border-left: 1px solid #fff; text-align: center; }
.statistics-grid dt { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: clamp(.75rem, 1vw, .95rem); line-height: 1.15; }
.statistics-grid .icon { width: clamp(28px, 2.7vw, 36px); height: clamp(28px, 2.7vw, 36px); color: var(--gold); }
.statistics-grid dd { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.statistics-note { flex: 0 1 140px; font-size: .65rem; margin: 0; }

/* Five footer columns follow the mockup, while contacts stay unverified. */
footer { background: var(--deep); color: #fff; }
.footer-grid { padding-top: 12px; padding-bottom: 12px; display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1.1fr)) minmax(0, 2fr); gap: 24px; overflow-wrap: anywhere; }
.footer-brand img { width: clamp(175px, 16vw, 225px); height: auto; background: transparent; padding: 0; }
.footer-brand > p { font-size: .65rem; margin: 4px 0 0; }
.footer-grid a { display: block; font-size: .75rem; line-height: 1.25; margin: 0; padding: 1px 0; }
.footer-grid h3 { font: 700 .95rem Arial, sans-serif; margin: 0 0 8px; }
.footer-grid p { font-size: .75rem; margin: 0 0 10px; }
.footer-grid summary { font-size: .75rem; line-height: 1.25; }
.footer-grid details p { margin-top: 8px; }
#services { border-left: 1px solid #ffffff80; padding-left: 22px; }
#services .icon { width: 18px; height: 18px; }
.footer-note { margin-top: 12px !important; }
.footer-bottom { border-top: 1px solid #ffffff70; padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 15px; font-size: .65rem; line-height: 1.25; }
.footer-bottom p { margin: 0; }

@media (max-width: 1100px) and (min-width: 981px) {
  .header-inner { gap: 8px; padding-left: 44px; padding-right: 32px; }
  .header-inner .brand { flex-basis: 205px; }
  .header-inner nav { padding-left: 46px; }
  .nav-list { gap: 5px; justify-content: space-between; }
  .nav-item a { font-size: .875rem; }
  .search-toggle { width: 36px; min-height: 36px; padding: 8px; }
  .search-toggle .icon { width: 20px; height: 20px; }
  .feature-copy { padding: 16px; }
  .footer-grid { gap: 16px; }
}
@media (max-width: 980px) {
  .wrap { padding-left: 28px; padding-right: 28px; }
  .brand { flex-basis: 220px; }
  .header-inner nav { order: 4; flex-basis: 100%; padding-bottom: 18px; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item a { font-family: Arial, Helvetica, sans-serif; font-size: .9rem; padding: 10px 8px; white-space: normal; }
  .nav-heading { justify-content: space-between; }
  .submenu-toggle { min-width: 44px; min-height: 44px; }
  .submenu { position: static; width: auto; max-width: none; box-shadow: none; background: #edf1f6; border-top: 0; border-left: 3px solid var(--gold); padding: 4px 16px; }
  .hero-content > p { max-width: 430px; }
  .hero-shade { background: linear-gradient(90deg, #031d3fe6, #031d3f66 70%, #031d3f22); }
  .finder-top { grid-template-columns: minmax(0, 1fr); }
  .intro { grid-template-columns: 35% minmax(0, 1fr); gap: 20px; }
  .brief { grid-column: 1 / -1; border: 0; border-top: 1px solid var(--border); padding: 20px 0 0; min-height: 0; }
  .feature-grid { padding-left: 12px; padding-right: 12px; }
  .feature-copy { padding: 16px; }
  .feature p, .feature a { font-size: .85rem; }
  .feature > .photo-placeholder { padding: 12px; }
  .news-grid { gap: 12px; }
  .news-card > div:not(.news-media) { padding: 12px; }
  .statistics-heading { flex-basis: 100%; }
  .statistics > .wrap { display: flex; flex-wrap: wrap; }
  .statistics-note { flex-basis: 100%; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .footer-grid a { min-height: 28px; padding: 5px 0; }
  .footer-grid summary { min-height: 28px; padding: 5px 0; }
  .footer-brand { grid-column: 1 / -1; }
  #services { grid-column: 1 / -1; border: 0; border-top: 1px solid #ffffff70; padding: 16px 0 0; }
}
@media (max-width: 680px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .utility-inner > div:first-child { display: none; }
  .utility-inner { justify-content: flex-end; }
  .utility { font-size: .72rem; }
  .header-inner { min-height: 85px; gap: 10px; }
  .brand { flex-basis: 180px; }
  .hero { min-height: 390px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-content > p { font-size: 1.05rem; max-width: 330px; }
  .hero-shade { background: linear-gradient(90deg, #031d3fe6, #031d3f77); }
  .actions { gap: 12px; }
  .actions .btn { padding: 11px 16px; font-size: .85rem; gap: 10px; }
  .finder-top { gap: 14px; }
  .finder-top form { width: 100%; }
  .finder-reset { right: 18px; }
  .finder-top input { padding: 12px 8px; }
  .program-input-wrap { padding-left: 10px; }
  .program-input-wrap .icon { display: none; }
  .program-finder form button { padding: 12px; }
  .program-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 0; }
  .program-categories button { border: 0; border-bottom: 1px solid #ffffff55; padding: 12px; }
  .intro { grid-template-columns: minmax(0, 1fr); }
  .rector-image { height: 300px; }
  .rector-image img { transform: scale(1.35); }
  .brief { grid-column: auto; }
  .feature-grid, .news-grid { grid-template-columns: minmax(0, 1fr); }
  .feature { min-height: 250px; }
  .feature h2 { font-size: 1.5rem; }
  .feature p, .feature a { font-size: .95rem; }
  .feature-copy { padding: 20px; }
  .news { padding-top: 4px; }
  .news-card img, .news-media { height: 140px; }
  .news-card h3 { font-size: 1.25rem; }
  .statistics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; flex-basis: 100%; }
  .statistics-grid > div:nth-child(odd) { border: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand, #services { grid-column: 1 / -1; }
  .search-fields button { padding: 12px; }
}
@media (max-width: 370px) {
  .brand { flex-basis: 150px; }
  .hero h1 { font-size: 2rem; }
  .search-toggle, .menu-toggle { padding-left: 8px; padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
