
:root {
    --maroon-950: #35040f;
    --maroon-900: #4a0717;
    --maroon-800: #5b0b1d;
    --maroon-700: #741126;
    --maroon-600: #8c1730;
    --gold-500: #f4bc26;
    --gold-400: #ffcc42;
    --gold-100: #fff4cf;
    --cream: #f8f3ed;
    --paper: #fffdf9;
    --ink: #241b1e;
    --muted: #6b6064;
    --line: #e9ded8;
    --white: #ffffff;
    --shadow-sm: 0 10px 28px rgba(57, 12, 25, .08);
    --shadow-lg: 0 25px 65px rgba(57, 12, 25, .16);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
    margin: 0;
    font-family: "Poppins", "Noto Sans Sinhala", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--maroon-700); text-decoration: none; transition: color var(--transition), transform var(--transition), background var(--transition), border-color var(--transition); }
a:hover { color: var(--maroon-900); }
button, input, select, textarea { font: inherit; }
::selection { background: var(--gold-400); color: var(--maroon-950); }
.skip-link {
    position: fixed;
    left: 1rem;
    top: -100px;
    z-index: 9999;
    padding: .75rem 1rem;
    background: var(--gold-500);
    color: var(--maroon-950);
    font-weight: 700;
    border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

.topbar {
    background: var(--maroon-950);
    color: rgba(255,255,255,.85);
    font-size: .78rem;
    letter-spacing: .01em;
    padding: .42rem 0;
}
.topbar a, .topbar span { color: rgba(255,255,255,.86); }
.topbar a:hover { color: var(--gold-400); }
.topbar i { color: var(--gold-400); margin-right: .35rem; }

.site-header {
    background: rgba(255,255,255,.97);
    box-shadow: 0 5px 24px rgba(55, 9, 22, .08);
    backdrop-filter: blur(14px);
}
.navbar { padding: .75rem 0; }
.navbar-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: var(--maroon-900);
    min-width: 0;
}
.navbar-brand img { flex: 0 0 auto; }
.navbar-brand span { display: flex; flex-direction: column; line-height: 1.12; }
.navbar-brand strong { font-size: .93rem; font-weight: 800; letter-spacing: -.02em; }
.navbar-brand small { font-size: .8rem; font-weight: 700; }
.navbar-brand em { margin-top: .25rem; font-size: .57rem; color: var(--muted); font-style: normal; text-transform: uppercase; letter-spacing: .08em; }
.navbar-nav { gap: .05rem; }
.navbar .nav-link {
    color: var(--ink);
    font-weight: 600;
    font-size: .89rem;
    padding: .7rem .68rem !important;
    border-radius: 8px;
}
.navbar .nav-link:hover, .navbar .nav-link.active, .navbar .nav-link.show { color: var(--maroon-700); background: var(--gold-100); }
.dropdown-menu {
    border: 0;
    border-top: 3px solid var(--gold-500);
    border-radius: 0 0 12px 12px;
    padding: .6rem;
    box-shadow: var(--shadow-lg);
}
.dropdown-item { border-radius: 7px; font-size: .86rem; font-weight: 500; padding: .65rem .8rem; }
.dropdown-item:hover { color: var(--maroon-800); background: var(--gold-100); }
.btn-search {
    width: 42px; height: 42px; padding: 0;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--maroon-700);
}
.btn-search:hover { background: var(--maroon-700); color: white; border-color: var(--maroon-700); }
.navbar-toggler { border-color: var(--line); }

.btn { font-weight: 700; border-radius: 9px; padding: .72rem 1.15rem; }
.btn-lg { padding: .9rem 1.35rem; font-size: .95rem; }
.btn-warning { background: var(--gold-500); border-color: var(--gold-500); color: var(--maroon-950); }
.btn-warning:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--maroon-950); transform: translateY(-2px); }
.btn-maroon { background: var(--maroon-700); border-color: var(--maroon-700); color: white; }
.btn-maroon:hover { background: var(--maroon-900); border-color: var(--maroon-900); color: white; transform: translateY(-2px); }
.btn-outline-maroon { border-color: var(--maroon-700); color: var(--maroon-700); }
.btn-outline-maroon:hover { background: var(--maroon-700); color: white; }
.form-control, .form-select, .input-group-text {
    border-color: #ded2cc;
    min-height: 48px;
    border-radius: 9px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 .25rem rgba(244,188,38,.2);
}
.input-group .input-group-text { background: white; color: var(--maroon-700); }
.form-label { font-weight: 700; font-size: .83rem; color: var(--maroon-900); }

.eyebrow {
    display: inline-block;
    color: var(--maroon-700);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: .7rem;
}
.section-padding { padding: 6rem 0; }
.bg-cream { background: var(--cream); }
.section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -.045em;
    font-weight: 800;
    color: var(--maroon-900);
    margin-bottom: 1.2rem;
}
.section-lead, .lead { color: var(--muted); font-size: 1.06rem; line-height: 1.8; }
.section-heading { max-width: 720px; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }
.text-link i { transition: transform var(--transition); }
.text-link:hover i { transform: translateX(5px); }

.home-hero {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at 82% 20%, rgba(244,188,38,.24), transparent 23%),
      linear-gradient(115deg, rgba(53,4,15,.98), rgba(116,17,38,.92)),
      url("../img/news-orientation.jpg") center/cover;
    color: white;
}
.home-hero::after {
    content: "";
    position: absolute;
    width: 520px; height: 520px;
    right: -190px; bottom: -250px;
    border: 85px solid rgba(255,255,255,.05);
    border-radius: 50%;
}
.hero-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to right, black, transparent 85%);
}
.min-vh-hero { min-height: 680px; padding: 7rem 0 10rem; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: .6rem;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.08);
    padding: .55rem .8rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.hero-kicker i { color: var(--gold-400); }
.home-hero h1 {
    max-width: 960px;
    font-size: clamp(3rem, 7vw, 6.2rem);
    line-height: .99;
    letter-spacing: -.065em;
    font-weight: 800;
    margin: 1.5rem 0;
}
.home-hero h1 span { color: var(--gold-400); }
.home-hero p { max-width: 750px; font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-stats {
    position: absolute;
    bottom: 0; left: 12px; right: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 920px;
    background: rgba(255,255,255,.97);
    color: var(--ink);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-stats div { padding: 1.3rem 1.6rem; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border: 0; }
.hero-stats strong { display: block; color: var(--maroon-700); font-size: 1.75rem; line-height: 1; }
.hero-stats span { display: block; color: var(--muted); font-size: .72rem; margin-top: .45rem; font-weight: 600; }

.quick-links { transform: translateY(0); background: var(--paper); border-bottom: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-grid > a {
    display: flex; align-items: center; gap: .8rem;
    padding: 1.5rem 1rem;
    color: var(--ink);
    border-right: 1px solid var(--line);
}
.quick-grid > a:last-child { border: 0; }
.quick-grid > a > i:first-child { font-size: 1.5rem; color: var(--maroon-700); }
.quick-grid > a > i:last-child { margin-left: auto; color: var(--muted); }
.quick-grid strong, .quick-grid small { display: block; }
.quick-grid strong { font-size: .86rem; }
.quick-grid small { color: var(--muted); font-size: .68rem; margin-top: .12rem; }
.quick-grid a:hover { background: var(--gold-100); }

.department-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-sm);
}
.department-card__image { position: relative; height: 315px; overflow: hidden; }
.department-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.department-card:hover .department-card__image img { transform: scale(1.04); }
.department-card__image > span {
    position: absolute; left: 1.5rem; bottom: -28px;
    width: 62px; height: 62px; border-radius: 16px;
    display: grid; place-items: center;
    background: var(--gold-500); color: var(--maroon-950);
    font-size: 1.55rem; box-shadow: var(--shadow-sm);
}
.department-card__body { padding: 3rem 2rem 2rem; }
.department-card__body h3 { color: var(--maroon-900); font-size: 1.55rem; font-weight: 800; }
.department-card__body p { color: var(--muted); }

.dean-photo-wrap { position: relative; max-width: 460px; }
.dean-photo-wrap img { width: 100%; aspect-ratio: .83; object-fit: cover; border-radius: 190px 190px 18px 18px; position: relative; z-index: 2; }
.photo-accent { position: absolute; inset: 35px -28px -28px 35px; background: var(--gold-500); border-radius: 190px 190px 18px 18px; z-index: 1; }
.dean-quote { color: var(--maroon-800); font-size: 1.25rem; line-height: 1.75; font-weight: 600; border-left: 4px solid var(--gold-500); padding-left: 1.3rem; margin: 1.5rem 0; }
.signature-block strong, .signature-block span { display: block; }
.signature-block strong { color: var(--maroon-900); }
.signature-block span { color: var(--muted); font-size: .85rem; }

.programme-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 7px 22px rgba(56,12,24,.045);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.programme-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(116,17,38,.2); }
.programme-icon {
    width: 58px; height: 58px;
    border-radius: 15px;
    display: grid; place-items: center;
    background: var(--gold-100);
    color: var(--maroon-700);
    font-size: 1.45rem;
}
.programme-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 .8rem; }
.programme-meta span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.programme-meta span + span::before { content: "•"; margin-right: .5rem; color: var(--gold-500); }
.programme-card h2, .programme-card h3 { color: var(--maroon-900); font-size: 1.18rem; line-height: 1.4; font-weight: 800; }
.programme-card p { color: var(--muted); font-size: .88rem; }
.programme-card > a { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .85rem; }
.programme-level { background: var(--cream); color: var(--maroon-700); border-radius: 99px; padding: .35rem .65rem; font-size: .68rem; font-weight: 700; }
.programme-mode { border-top: 1px solid var(--line); padding-top: 1rem; margin: .4rem 0 1rem; color: var(--muted); font-size: .8rem; }
.programme-toolbar, .staff-toolbar, .timetable-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 1rem;
    padding: 1.25rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.staff-toolbar { grid-template-columns: 2fr 1fr; }
.timetable-toolbar { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }

.impact-band { background: var(--maroon-900); color: white; padding: 5rem 0; }
.impact-band h2 { font-weight: 800; font-size: clamp(2rem,4vw,3.4rem); line-height: 1.12; letter-spacing: -.04em; }
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.impact-grid div { padding: 1.4rem; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.05); }
.impact-grid i { color: var(--gold-400); font-size: 1.4rem; }
.impact-grid strong, .impact-grid span { display: block; }
.impact-grid strong { margin-top: .65rem; }
.impact-grid span { color: rgba(255,255,255,.68); font-size: .78rem; margin-top: .2rem; }

.news-card {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: white;
    box-shadow: var(--shadow-sm);
}
.news-card__image { display: block; height: 235px; overflow: hidden; position: relative; }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-card__image img { transform: scale(1.05); }
.news-card__image > span, .news-category {
    position: absolute; left: 1rem; bottom: 1rem;
    background: var(--gold-500); color: var(--maroon-950);
    font-weight: 800; font-size: .67rem; text-transform: uppercase;
    padding: .4rem .65rem; border-radius: 999px;
}
.news-card__body { padding: 1.5rem; }
.news-card__body time { color: var(--muted); font-size: .72rem; }
.news-card__body h2, .news-card__body h3 { font-size: 1.14rem; font-weight: 800; line-height: 1.45; margin: .55rem 0; }
.news-card__body h2 a, .news-card__body h3 a { color: var(--maroon-900); }
.news-card__body p { color: var(--muted); font-size: .85rem; }

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0;
    background:
      radial-gradient(circle at 85% 20%, rgba(244,188,38,.22), transparent 26%),
      linear-gradient(120deg, var(--maroon-950), var(--maroon-700));
    color: white;
}
.page-hero::after {
    content:"";
    position:absolute; right:-70px; top:-90px;
    width:320px; height:320px; border:55px solid rgba(255,255,255,.05); border-radius:50%;
}
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.45); }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,.68); font-size: .75rem; }
.page-hero .breadcrumb-item.active { color: var(--gold-400); }
.page-hero .eyebrow { color: var(--gold-400); }
.page-hero h1 { max-width: 950px; font-size: clamp(2.5rem,5vw,4.7rem); line-height: 1.06; letter-spacing: -.055em; font-weight: 800; }
.page-hero p { max-width: 780px; color: rgba(255,255,255,.75); font-size: 1.05rem; }

.about-collage { position: relative; padding: 0 0 3.5rem 3.5rem; }
.about-collage__main { width: 100%; aspect-ratio: 1.18; object-fit: cover; border-radius: var(--radius); position: relative; z-index: 2; box-shadow: var(--shadow-lg); }
.about-collage__badge { position: absolute; left: 0; bottom: 0; z-index: 3; background: var(--gold-500); color: var(--maroon-950); border-radius: 16px; padding: 1.4rem; min-width: 150px; }
.about-collage__badge strong, .about-collage__badge span { display:block; }
.about-collage__badge strong { font-size: 2rem; line-height: 1; }
.about-collage__badge span { font-size: .7rem; font-weight: 700; }
.about-collage__pattern { position:absolute; right:-22px; top:-22px; width:130px; height:130px; background-image: radial-gradient(var(--gold-500) 2px, transparent 2px); background-size: 14px 14px; }

.vision-card { padding: 2.5rem; border-radius: var(--radius); background: white; border-top: 5px solid var(--gold-500); box-shadow: var(--shadow-sm); height: 100%; }
.vision-icon { display:grid; place-items:center; width:60px;height:60px;border-radius:50%;background:var(--maroon-700);color:white;font-size:1.5rem;margin-bottom:1.5rem; }
.vision-card h2 { color: var(--maroon-900); font-weight: 800; font-size: 1.75rem; }
.vision-card p { color: var(--muted); }
.value-card { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.value-card > i { font-size: 1.75rem; color: var(--maroon-700); }
.value-card h3 { font-size: 1.05rem; color: var(--maroon-900); font-weight:800; margin:1rem 0 .5rem; }
.value-card p { color:var(--muted); font-size:.84rem; margin:0; }
.facts-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.facts-grid div { padding:2rem; background:white; border:1px solid var(--line); border-radius:16px; }
.facts-grid strong, .facts-grid span { display:block; }
.facts-grid strong { color:var(--maroon-700); font-size:2.5rem; line-height:1; }
.facts-grid span { color:var(--muted); font-size:.8rem; margin-top:.55rem; }

.profile-aside { background:white; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); position:sticky; top:130px; }
.profile-aside img { width:100%; aspect-ratio:.9; object-fit:cover; }
.profile-aside h2 { font-size:1.25rem; color:var(--maroon-900); font-weight:800; }
.profile-aside p { color:var(--muted); font-size:.82rem; }
.profile-aside a { font-size:.82rem; font-weight:700; word-break:break-word; }
.prose { max-width: 820px; }
.prose h2 { color:var(--maroon-900); font-size:clamp(2rem,4vw,3rem); line-height:1.2; font-weight:800; letter-spacing:-.04em; margin-bottom:1.3rem; }
.prose h3 { color:var(--maroon-800); font-size:1.35rem; font-weight:800; margin:2.3rem 0 1rem; }
.prose p { color:#50464a; margin-bottom:1.2rem; }
.message-signoff { border-top:1px solid var(--line); margin-top:2.5rem; padding-top:1.5rem; }
.message-signoff strong, .message-signoff span { display:block; }
.message-signoff strong { color:var(--maroon-900); }
.message-signoff span { color:var(--muted); font-size:.85rem; }

.department-feature-image { position:relative; }
.department-feature-image img { width:100%; aspect-ratio:1.15; object-fit:cover; border-radius:var(--radius); box-shadow:var(--shadow-lg); }
.department-number { position:absolute; right:-15px; bottom:-15px; background:var(--gold-500); color:var(--maroon-950); font-size:2rem; font-weight:800; width:88px;height:88px;border-radius:50%;display:grid;place-items:center;border:8px solid var(--paper); }
.bg-cream .department-number { border-color:var(--cream); }
.tag-list, .career-tags { display:flex; flex-wrap:wrap; gap:.55rem; }
.tag-list span, .career-tags span { display:inline-flex; padding:.45rem .75rem; border-radius:999px; background:var(--gold-100); color:var(--maroon-800); font-size:.73rem; font-weight:700; }
.department-contact { display:flex; align-items:center; gap:.8rem; }
.department-contact > i { width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:var(--maroon-700);color:white; }
.department-contact small, .department-contact a { display:block; }
.department-contact small { color:var(--muted); font-size:.68rem; }
.department-contact a { font-weight:700; font-size:.82rem; }
.academic-support { display:flex; justify-content:space-between; align-items:center; gap:2rem; padding:2.5rem; border-radius:var(--radius); background:var(--maroon-900); color:white; }
.academic-support h2 { font-weight:800; }
.academic-support p { color:rgba(255,255,255,.7); max-width:800px; margin:0; }

.steps-list { display:grid; gap:1rem; }
.steps-list > div { display:flex; gap:1rem; background:white; padding:1.3rem; border-radius:14px; border:1px solid var(--line); }
.steps-list > div > span { flex:0 0 48px; width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--gold-500);color:var(--maroon-950);font-weight:800; }
.steps-list h3 { color:var(--maroon-900);font-size:1rem;font-weight:800;margin:0 0 .25rem; }
.steps-list p { color:var(--muted);font-size:.8rem;margin:0; }
.empty-state { text-align:center; padding:5rem 1rem; background:var(--cream); border:1px dashed #d7c8bf; border-radius:var(--radius); margin-top:2rem; }
.empty-state > i { font-size:3rem; color:var(--maroon-700); }
.empty-state h2 { color:var(--maroon-900);font-weight:800;margin-top:1rem; }
.empty-state p { color:var(--muted); }

.programme-summary-bar { background:var(--gold-500); }
.programme-summary-bar .container { display:grid;grid-template-columns:repeat(4,1fr); }
.programme-summary-bar div { padding:1.2rem 1.5rem;border-right:1px solid rgba(74,7,23,.18); }
.programme-summary-bar div:last-child { border:0; }
.programme-summary-bar small,.programme-summary-bar strong { display:block; }
.programme-summary-bar small { color:rgba(53,4,15,.7);font-size:.68rem;text-transform:uppercase;font-weight:700; }
.programme-summary-bar strong { color:var(--maroon-950);font-size:.88rem;margin-top:.25rem; }
.highlight-list { display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin:1.5rem 0; }
.highlight-list div { display:flex;gap:.65rem;align-items:center;padding:.9rem;background:var(--cream);border-radius:10px; }
.highlight-list i { color:var(--maroon-700); }
.highlight-list span { font-size:.82rem;font-weight:600; }
.info-notice,.content-note,.timetable-alert { display:flex;gap:1rem;align-items:flex-start;padding:1.3rem;border-radius:14px;background:var(--gold-100);border-left:4px solid var(--gold-500);margin-top:2rem; }
.info-notice > i,.content-note > i,.timetable-alert > i { color:var(--maroon-700);font-size:1.35rem; }
.info-notice strong,.content-note strong,.timetable-alert strong { color:var(--maroon-900); }
.info-notice p,.content-note p,.timetable-alert p { margin:0;color:var(--muted);font-size:.8rem; }
.side-panel { position:sticky;top:130px;padding:2rem;border-radius:var(--radius);background:var(--maroon-900);color:white; }
.side-panel__icon { width:64px;height:64px;border-radius:16px;display:grid;place-items:center;background:var(--gold-500);color:var(--maroon-950);font-size:1.6rem; }
.side-panel h2 { font-weight:800;font-size:1.55rem;margin-top:1.3rem; }
.side-panel p { color:rgba(255,255,255,.72);font-size:.84rem; }
.side-panel ul { padding:0;list-style:none;margin:1.5rem 0; }
.side-panel li { display:flex;gap:.7rem;padding:.65rem 0;border-top:1px solid rgba(255,255,255,.12);font-size:.76rem; }
.side-panel li a { color:white;word-break:break-word; }

.staff-card { border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:white;box-shadow:var(--shadow-sm); }
.staff-card__image { height:330px;position:relative;overflow:hidden;background:var(--cream); }
.staff-card__image img { width:100%;height:100%;object-fit:cover;transition:transform .5s ease; }
.staff-card:hover .staff-card__image img { transform:scale(1.035); }
.staff-card__image a { position:absolute;right:1rem;bottom:1rem;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--gold-500);color:var(--maroon-950);box-shadow:var(--shadow-sm); }
.staff-card__body { padding:1.5rem; }
.staff-card__body > span { color:var(--maroon-700);font-size:.67rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em; }
.staff-card__body h2 { color:var(--maroon-900);font-size:1.2rem;font-weight:800;margin:.5rem 0 .25rem; }
.staff-card__body p { color:var(--muted);font-size:.82rem; }
.profile-layout { display:grid;grid-template-columns:360px 1fr;gap:4rem;align-items:start; }
.profile-sidebar { position:sticky;top:130px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:white;box-shadow:var(--shadow-sm); }
.profile-sidebar img { width:100%;aspect-ratio:.9;object-fit:cover; }
.profile-sidebar__content { padding:1.5rem; }
.profile-sidebar h1 { color:var(--maroon-900);font-size:1.45rem;font-weight:800; }
.profile-sidebar p { color:var(--muted);font-size:.83rem; }
.profile-contacts { border-top:1px solid var(--line);margin-top:1.2rem;padding-top:1rem;display:grid;gap:.7rem; }
.profile-contacts a { display:flex;gap:.7rem;font-size:.75rem;word-break:break-word; }
.profile-content section { padding-bottom:2.2rem;margin-bottom:2.2rem;border-bottom:1px solid var(--line); }
.profile-content h2 { color:var(--maroon-900);font-weight:800;font-size:1.7rem; }

.featured-story { display:grid;grid-template-columns:1.15fr .85fr;border-radius:var(--radius);overflow:hidden;background:var(--maroon-900);color:white;box-shadow:var(--shadow-lg); }
.featured-story__image { min-height:430px; }
.featured-story__image img { width:100%;height:100%;object-fit:cover; }
.featured-story__content { padding:3rem;display:flex;flex-direction:column;justify-content:center; }
.featured-story__content .news-category { position:static;align-self:flex-start; }
.featured-story__content time { margin-top:1.2rem;color:rgba(255,255,255,.65);font-size:.75rem; }
.featured-story__content h2 { font-size:2rem;font-weight:800;line-height:1.25;margin:.7rem 0; }
.featured-story__content p { color:rgba(255,255,255,.72); }
.featured-story__content .btn { align-self:flex-start; }
.article-hero { background:var(--maroon-900);color:white;padding:6rem 0 8rem; }
.article-hero__meta { display:flex;gap:1rem;align-items:center;color:rgba(255,255,255,.7);font-size:.75rem; }
.article-hero__meta span { background:var(--gold-500);color:var(--maroon-950);padding:.35rem .6rem;border-radius:999px;font-weight:800;text-transform:uppercase; }
.article-hero h1 { max-width:950px;font-size:clamp(2.5rem,6vw,5rem);font-weight:800;letter-spacing:-.055em;line-height:1.08;margin:1.3rem 0; }
.article-hero p { max-width:760px;color:rgba(255,255,255,.72);font-size:1.05rem; }
.article-container { max-width:1000px; }
.article-featured-image { width:100%;max-height:590px;object-fit:cover;border-radius:var(--radius);margin-top:-10rem;position:relative;box-shadow:var(--shadow-lg); }
.article-body { margin:3rem auto; }
.article-share { display:flex;align-items:center;gap:.6rem;margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--line); }
.article-share span { font-weight:700;font-size:.8rem; }
.article-share button { width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:white;color:var(--maroon-700); }
.article-share button:hover { background:var(--maroon-700);color:white; }

.publication-card { display:grid;grid-template-columns:145px 1fr;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:white;box-shadow:var(--shadow-sm); }
.publication-cover { min-height:260px;background:linear-gradient(145deg,var(--maroon-700),var(--maroon-950));color:white;padding:1rem;display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center; }
.publication-cover span { color:var(--gold-400);font-weight:800;letter-spacing:.15em; }
.publication-cover i { font-size:3rem; }
.publication-cover small { color:rgba(255,255,255,.7); }
.publication-card__content { padding:1.5rem; }
.publication-card__content h2 { color:var(--maroon-900);font-size:1.12rem;font-weight:800; }
.publication-card__content p { color:var(--muted);font-size:.82rem; }
.availability-badge { display:inline-flex;gap:.4rem;align-items:center;background:var(--cream);color:var(--muted);padding:.4rem .65rem;border-radius:99px;font-size:.68rem;font-weight:700; }

.download-search { max-width:650px; }
.download-list { display:grid;gap:.75rem; }
.download-item { display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;padding:1.2rem;border:1px solid var(--line);border-radius:14px;background:white; }
.download-item__icon { width:54px;height:54px;border-radius:12px;display:grid;place-items:center;background:var(--gold-100);color:var(--maroon-700);font-size:1.4rem; }
.download-item h2 { color:var(--maroon-900);font-size:1rem;font-weight:800;margin:0; }
.download-item span { color:var(--muted);font-size:.72rem; }

.timetable-alert { margin:0 0 1.5rem; }
.timetable-wrap { margin-top:1.5rem;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:white;box-shadow:var(--shadow-sm); }
.timetable-table { margin:0;min-width:1000px; }
.timetable-table thead th { background:var(--maroon-900);color:white;padding:1rem;border:0;font-size:.73rem;text-transform:uppercase;letter-spacing:.06em; }
.timetable-table td { padding:1rem;border-color:var(--line);font-size:.8rem; }
.timetable-table tbody tr:hover { background:var(--gold-100); }
.day-badge { display:inline-flex;padding:.35rem .55rem;border-radius:999px;background:var(--gold-100);color:var(--maroon-800);font-weight:800;font-size:.67rem; }
.course-code { display:block;color:var(--maroon-700);font-size:.66rem;font-weight:800; }

.resource-card { display:flex;flex-direction:column;padding:2rem;border:1px solid var(--line);border-radius:var(--radius);background:white;color:var(--ink);box-shadow:var(--shadow-sm); }
.resource-card > i { font-size:2rem;color:var(--maroon-700); }
.resource-card h2 { color:var(--maroon-900);font-size:1.15rem;font-weight:800;margin:1.2rem 0 .5rem; }
.resource-card p { color:var(--muted);font-size:.82rem; }
.resource-card > span { margin-top:auto;color:var(--maroon-700);font-weight:700;font-size:.8rem; }
.resource-card:hover { transform:translateY(-5px);box-shadow:var(--shadow-lg); }
.student-help-grid { display:grid;grid-template-columns:1fr 1fr;gap:1rem; }
.student-help-grid a { display:flex;align-items:center;gap:1rem;padding:1.2rem;background:white;border:1px solid var(--line);border-radius:14px;color:var(--ink); }
.student-help-grid > a > i { width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:var(--gold-100);color:var(--maroon-700);font-size:1.2rem; }
.student-help-grid strong,.student-help-grid small { display:block; }
.student-help-grid strong { color:var(--maroon-900);font-size:.85rem; }
.student-help-grid small { color:var(--muted);font-size:.68rem; }

.contact-cards { display:grid;gap:.9rem;margin-top:2rem; }
.contact-cards > div { display:flex;gap:1rem;align-items:flex-start;padding:1.1rem;background:var(--cream);border-radius:12px; }
.contact-cards > div > i { width:44px;height:44px;flex:0 0 44px;border-radius:10px;display:grid;place-items:center;background:var(--maroon-700);color:white; }
.contact-cards strong,.contact-cards span { display:block; }
.contact-cards strong { color:var(--maroon-900);font-size:.8rem;margin-bottom:.15rem; }
.contact-cards span,.contact-cards a { color:var(--muted);font-size:.78rem; }
.contact-form-card { padding:2.3rem;border:1px solid var(--line);border-radius:var(--radius);background:white;box-shadow:var(--shadow-lg); }
.contact-form-card h2 { color:var(--maroon-900);font-weight:800; }
.map-section { padding:0 0 6rem; }
.map-placeholder { min-height:370px;border-radius:var(--radius);display:grid;place-items:center;text-align:center;color:white;background:linear-gradient(rgba(53,4,15,.82),rgba(53,4,15,.82)),radial-gradient(circle at 20% 20%,#b98d7a,#741126); }
.map-placeholder i { font-size:3rem;color:var(--gold-400); }
.map-placeholder h2 { font-weight:800; }

.search-modal { border:0;border-radius:var(--radius);padding:1rem; }
.search-modal h2 { color:var(--maroon-900);font-weight:800; }
.search-page { max-width:900px; }
.search-page__form { margin-bottom:2rem; }
.search-count { color:var(--muted);font-size:.8rem;margin-bottom:1rem; }
.search-results { display:grid;gap:.75rem; }
.search-results > a { position:relative;display:block;padding:1.4rem 3.5rem 1.4rem 1.4rem;border:1px solid var(--line);border-radius:14px;background:white;color:var(--ink); }
.search-results > a:hover { border-color:var(--gold-500);transform:translateX(4px); }
.search-results span { color:var(--maroon-700);font-size:.66rem;font-weight:800;text-transform:uppercase; }
.search-results h2 { color:var(--maroon-900);font-size:1.15rem;font-weight:800;margin:.35rem 0; }
.search-results p { color:var(--muted);font-size:.8rem;margin:0; }
.search-results > a > i { position:absolute;right:1.3rem;top:50%;transform:translateY(-50%);color:var(--maroon-700); }

.not-found-section { min-height:620px;display:grid;place-items:center;background:radial-gradient(circle at 50% 0,rgba(244,188,38,.18),transparent 35%),var(--maroon-900);color:white;padding:5rem 0; }
.not-found-section span { display:block;color:var(--gold-400);font-size:clamp(6rem,20vw,13rem);font-weight:800;line-height:.8;opacity:.18; }
.not-found-section h1 { font-size:clamp(2rem,5vw,4rem);font-weight:800;letter-spacing:-.05em; }
.not-found-section p { color:rgba(255,255,255,.7); }

.cta-strip { background:var(--maroon-700);color:white;padding:3.2rem 0; }
.cta-strip h2 { font-size:2rem;font-weight:800;margin:0 0 .35rem; }
.cta-strip p { color:rgba(255,255,255,.72);margin:0; }
.site-footer { background:var(--maroon-950);color:rgba(255,255,255,.68);padding:5rem 0 1.5rem; }
.footer-brand { display:flex;gap:1rem;align-items:center; }
.footer-brand h3 { color:white;font-size:1.05rem;font-weight:800;margin:0;line-height:1.35; }
.footer-brand p { font-size:.65rem;text-transform:uppercase;letter-spacing:.08em;margin:.25rem 0 0; }
.site-footer > .container > .row p { font-size:.8rem; }
.site-footer h4 { color:var(--gold-400);font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800;margin-bottom:1.2rem; }
.site-footer ul { list-style:none;padding:0;margin:0;display:grid;gap:.65rem; }
.site-footer li,.site-footer a { color:rgba(255,255,255,.68);font-size:.78rem; }
.site-footer a:hover { color:var(--gold-400); }
.contact-list li { display:flex;gap:.7rem;align-items:flex-start; }
.contact-list i { color:var(--gold-400);margin-top:.2rem; }
.social-links { display:flex;gap:.55rem;margin-top:1.2rem; }
.social-links a { width:38px;height:38px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(255,255,255,.15); }
.social-links a:hover { background:var(--gold-500);color:var(--maroon-950);border-color:var(--gold-500); }
.site-footer hr { border-color:rgba(255,255,255,.12);margin:3rem 0 1.2rem; }
.footer-bottom { display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap; }
.footer-bottom p { margin:0;font-size:.68rem; }
.back-to-top { position:fixed;right:1.2rem;bottom:1.2rem;z-index:1000;width:46px;height:46px;border:0;border-radius:50%;background:var(--gold-500);color:var(--maroon-950);box-shadow:var(--shadow-lg);opacity:0;visibility:hidden;transform:translateY(15px);transition:all var(--transition); }
.back-to-top.show { opacity:1;visibility:visible;transform:none; }

.alert { border-radius:12px; }
code { color:var(--maroon-700);background:var(--gold-100);padding:.1rem .3rem;border-radius:4px; }
.fade-up { opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease; }
.fade-up.visible { opacity:1;transform:none; }

@media (min-width: 1200px) {
    .navbar .dropdown:hover > .dropdown-menu { display:block; margin-top:0; }
}
@media (max-width: 1199.98px) {
    .navbar-collapse { padding:1rem 0;max-height:calc(100vh - 110px);overflow:auto; }
    .navbar .nav-link { padding:.7rem !important; }
    .btn-search { margin-top:.5rem; }
}
@media (max-width: 991.98px) {
    .section-padding { padding:4.5rem 0; }
    .min-vh-hero { min-height:620px;padding:6rem 0 9rem; }
    .hero-stats { grid-template-columns:1fr 1fr; }
    .hero-stats div:nth-child(2) { border-right:0; }
    .hero-stats div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
    .quick-grid { grid-template-columns:1fr 1fr; }
    .quick-grid > a:nth-child(2) { border-right:0; }
    .quick-grid > a:nth-child(-n+2) { border-bottom:1px solid var(--line); }
    .programme-toolbar,.staff-toolbar,.timetable-toolbar { grid-template-columns:1fr 1fr; }
    .timetable-toolbar > div:first-child { grid-column:1/-1; }
    .profile-layout { grid-template-columns:1fr;gap:2rem; }
    .profile-sidebar { position:static;max-width:520px; }
    .featured-story { grid-template-columns:1fr; }
    .featured-story__image { min-height:350px; }
    .programme-summary-bar .container { grid-template-columns:1fr 1fr; }
    .programme-summary-bar div:nth-child(2) { border-right:0; }
    .programme-summary-bar div:nth-child(-n+2) { border-bottom:1px solid rgba(74,7,23,.18); }
    .side-panel,.profile-aside { position:static; }
    .academic-support { align-items:flex-start;flex-direction:column; }
}
@media (max-width: 767.98px) {
    .topbar { display:none; }
    .navbar-brand img { width:52px;height:52px; }
    .navbar-brand strong { font-size:.8rem; }
    .navbar-brand small { font-size:.69rem; }
    .navbar-brand em { display:none; }
    .home-hero h1 { font-size:3.2rem; }
    .home-hero p { font-size:.95rem; }
    .min-vh-hero { min-height:700px;padding:5rem 0 12rem; }
    .hero-stats { left:12px;right:12px; }
    .hero-stats div { padding:1rem; }
    .hero-stats strong { font-size:1.35rem; }
    .quick-grid { grid-template-columns:1fr; }
    .quick-grid > a { border-right:0;border-bottom:1px solid var(--line); }
    .quick-grid > a:last-child { border-bottom:0; }
    .section-title { font-size:2.15rem; }
    .page-hero { padding:4rem 0; }
    .page-hero h1 { font-size:2.7rem; }
    .impact-grid,.facts-grid,.highlight-list,.student-help-grid { grid-template-columns:1fr; }
    .programme-toolbar,.staff-toolbar,.timetable-toolbar { grid-template-columns:1fr; }
    .timetable-toolbar > div:first-child { grid-column:auto; }
    .programme-summary-bar .container { grid-template-columns:1fr; }
    .programme-summary-bar div { border-right:0;border-bottom:1px solid rgba(74,7,23,.18); }
    .programme-summary-bar div:last-child { border-bottom:0; }
    .publication-card { grid-template-columns:110px 1fr; }
    .download-item { grid-template-columns:auto 1fr; }
    .download-item .btn { grid-column:1/-1; }
    .featured-story__content { padding:2rem; }
    .article-featured-image { margin-top:-7rem; }
    .contact-form-card { padding:1.3rem; }
    .cta-strip { text-align:center; }
}
@media print {
    .topbar,.site-header,.page-hero,.cta-strip,.site-footer,.back-to-top,.timetable-alert,.timetable-toolbar { display:none !important; }
    body { background:white;color:black; }
    .section-padding { padding:0; }
    .timetable-wrap { box-shadow:none;border:0; }
    .timetable-table { min-width:0;font-size:10px; }
    .timetable-table thead th { background:#eee !important;color:#000 !important; }
}
@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { scroll-behavior:auto !important;transition-duration:.01ms !important;animation-duration:.01ms !important; }
}
