/* ZCAS University e-Campus
   Brand taken from the e-Campus campaign adverts: deep purple, gold, Poppins,
   frosted panels over photography and the page-curl corner. */

:root {
  --purple: #2B1650;
  --purple-2: #4B2A83;
  --purple-3: #EEE9F6;
  --gold: #E9A12A;
  --gold-dk: #B8780F;
  --ink: #231A38;
  --text: #3B3452;
  --muted: #6B6480;
  --mist: #F5F3F9;
  --line: #E4DFEE;
  --white: #FFFFFF;
  --ok: #1E7A4C;
  --err: #B42318;
  --radius: 14px;
  --radius-lg: 32px;
  --shadow: 0 18px 40px -18px rgba(43, 22, 80, .35);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 1rem/1.65 var(--font); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--purple-2); text-underline-offset: 3px; }
a:hover { color: var(--purple); }
h1, h2, h3 { color: var(--purple); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.01em; }
.h3 { font-size: 1.3rem; }
.lead { font-size: 1.12rem; color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 .98rem/1 var(--font); padding: .85rem 1.4rem; border-radius: 12px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: .6rem; }
.btn-gold { background: var(--gold); color: var(--purple); }
.btn-gold:hover { background: #F2B24A; color: var(--purple); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-2); color: var(--white); }
.btn-outline { border-color: var(--purple); color: var(--purple); background: transparent; }
.btn-outline:hover { background: var(--purple); color: var(--white); }
.btn-ghost { border-color: var(--purple); color: var(--purple); background: rgba(255,255,255,.4); }
.btn-ghost:hover { background: var(--purple); color: var(--white); }
.btn-danger { background: var(--white); color: var(--err); border-color: var(--err); }
.text-link { font-weight: 600; color: var(--purple-2); }
.linklike { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--purple); }
.brand-uni { font-weight: 700; font-size: .82rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.brand-rule { width: 2px; height: 42px; background: var(--gold); }
.brand-ecampus { font-weight: 700; font-size: 1.55rem; letter-spacing: -.01em; color: var(--purple); line-height: 1; }
.brand-ecampus span { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.site-nav a:not(.btn) { display: block; padding: .5rem .65rem; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.site-nav a:not(.btn):hover { background: var(--mist); }
.site-nav a.active { color: var(--purple); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.nav-apply { padding: .7rem 1.1rem; }
.menu-btn { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 24px; height: 2.5px; background: var(--purple); border-radius: 2px; position: relative; transition: transform .2s; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; } .menu-icon::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
  .menu-btn { display: block; }
  .site-nav { position: fixed; inset: 78px 0 auto 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 78px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { padding: .8rem .5rem; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a.active { box-shadow: inset 4px 0 0 var(--gold); padding-left: .9rem; }
}
@media (max-width: 480px) { .brand-uni, .brand-rule { display: none; } .brand img { width: 44px; height: 44px; } }

/* Frosted panel and page curl, from the adverts */
.glass { background: rgba(255,255,255,.84); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: clamp(1.5rem, 4vw, 3rem); }

/* Home hero */
.hero { position: relative; min-height: clamp(560px, 78vh, 720px); display: flex; align-items: center; overflow: hidden; background: var(--purple-3); }
.hero-photo { position: absolute; inset: 0; background: url("../images/programmes/msc-information-technology.jpg") 70% 30% / cover no-repeat; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,22,80,.25), transparent 60%); }
.hero::before, .hero::after { content: ""; position: absolute; top: 0; right: 0; width: clamp(90px, 14vw, 170px); aspect-ratio: 1; pointer-events: none; z-index: 2; }
.hero::before { background: linear-gradient(225deg, var(--white) 50%, transparent 50.4%); }
.hero::after { background: linear-gradient(45deg, #f4f4f7 0%, #c9c8d2 40%, #fbfbfc 49.6%, transparent 50%); filter: drop-shadow(-8px 8px 10px rgba(0,0,0,.28)); }
.hero-inner { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 6.5rem; }
.hero-panel { max-width: 640px; margin-left: -1.25rem; padding-left: calc(1.25rem + clamp(1.5rem, 4vw, 3rem)); }
.hero-welcome { font-weight: 600; color: var(--purple-2); margin-bottom: .5rem; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 1rem; }
.hero-intro { font-size: 1.1rem; color: var(--ink); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.hero-motto { font-style: italic; font-weight: 600; color: var(--purple); margin: 0; }
.hero-badge { position: absolute; right: 1.25rem; bottom: 7.5rem; background: var(--gold); color: var(--purple); border-radius: 22px; padding: .9rem 1.3rem; text-align: center; line-height: 1; box-shadow: var(--shadow); }
.hero-badge strong { display: block; font-size: 2rem; font-weight: 700; }
.hero-badge span { font-weight: 600; }
@media (max-width: 720px) {
  .hero { align-items: flex-end; }
  .hero-photo { background-position: 75% 20%; }
  .hero-inner { padding-top: 12rem; padding-bottom: 6rem; }
  .hero-panel { border-radius: 0 24px 24px 0; }
  .hero-badge { top: 1.5rem; bottom: auto; left: 1.25rem; right: auto; }
}

/* Benefits band overlapping the hero */
.benefits { position: relative; z-index: 3; margin-top: -4.5rem; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 20px; box-shadow: var(--shadow); padding: 0; }
.benefit { padding: 1.6rem 1.4rem; border-left: 1px solid var(--line); }
.benefit:first-child { border-left: 0; }
.benefit svg { width: 34px; height: 34px; fill: none; stroke: var(--gold-dk); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .7rem; }
.benefit h2 { font-size: 1.02rem; margin-bottom: .25rem; }
.benefit p { font-size: .92rem; margin: 0; color: var(--muted); }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } .benefit:nth-child(3) { border-left: 0; } .benefit:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; margin-left: 1.25rem; margin-right: 1.25rem; width: auto; } .benefit { border-left: 0; } .benefit + .benefit { border-top: 1px solid var(--line); } }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.wrap.section { padding-left: 1.25rem; padding-right: 1.25rem; }
.section-mist { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.section-head p { margin: 0; color: var(--muted); }
.section-head-center { justify-content: center; text-align: center; }

.about-teaser { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-img { border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
@media (max-width: 820px) { .about-teaser { grid-template-columns: 1fr; } .about-img { aspect-ratio: 16 / 10; } }

/* School tabs and programme cards */
.school-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.school-tabs button, .chip { font: 600 .92rem var(--font); padding: .6rem 1.1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; text-decoration: none; }
.school-tabs button[aria-selected="true"], .chip-on { background: var(--purple); border-color: var(--purple); color: var(--white); }
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.prog-card { background: var(--white); border-radius: 0 22px 22px 22px; overflow: hidden; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.prog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.prog-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.prog-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--purple-3); }
.prog-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.prog-card-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.prog-card h3 { font-size: 1.12rem; margin: .7rem 0 .45rem; }
.prog-card p { font-size: .93rem; color: var(--muted); }
.pill-online { align-self: flex-start; background: var(--gold); color: var(--purple); font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.mini-facts { display: flex; gap: 1.2rem; margin: auto 0 .9rem; padding-top: .6rem; font-size: .85rem; }
.mini-facts dt { color: var(--muted); font-size: .76rem; }
.mini-facts dd { margin: 0; font-weight: 600; color: var(--ink); }

/* Why band */
.why { background: var(--purple); color: #DCD3EC; }
.why .h2, .why strong { color: var(--white); }
.why .lead { color: #E8E1F4; }
.why-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.why-list li { padding-top: 1rem; border-top: 3px solid var(--gold); font-size: .95rem; }
.why-list strong { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .why-list { grid-template-columns: 1fr; } }

/* Apply steps */
.steps { list-style: none; counter-reset: step; margin: 0 0 2.2rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding: 3.6rem 1rem 1.2rem; background: var(--mist); border-radius: 0 18px 18px 18px; }
.steps li::before { content: counter(step); position: absolute; top: 1rem; left: 1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--purple); color: var(--white); font-weight: 700; display: grid; place-items: center; }
.steps strong { display: block; color: var(--purple); margin-bottom: .3rem; }
.steps span { font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } .steps li { padding: 1rem 1rem 1rem 4.2rem; } .steps li::before { top: 1rem; } }

/* FAQs */
.faq-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.2rem; font-weight: 600; color: var(--purple); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.2rem; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--gold-dk); border-bottom: 2.5px solid var(--gold-dk); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-answer { padding: 0 1.2rem 1.1rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Inner page hero */
.page-hero { position: relative; background: var(--hero-img) center 30% / cover no-repeat, var(--purple-3); padding: 5rem 0 3rem; overflow: hidden; }
.page-hero::before, .page-hero::after, .prog-hero::before, .prog-hero::after { content: ""; position: absolute; top: 0; right: 0; width: clamp(70px, 10vw, 130px); aspect-ratio: 1; pointer-events: none; }
.page-hero::before, .prog-hero::before { background: linear-gradient(225deg, var(--white) 50%, transparent 50.4%); }
.page-hero::after, .prog-hero::after { background: linear-gradient(45deg, #f4f4f7 0%, #c9c8d2 40%, #fbfbfc 49.6%, transparent 50%); filter: drop-shadow(-6px 6px 8px rgba(0,0,0,.28)); }
.page-hero .glass { max-width: 640px; margin-left: -1.25rem; padding-left: calc(1.25rem + clamp(1.5rem, 4vw, 3rem)); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 500; margin-bottom: .4rem; }
.page-hero p { margin: 0; font-size: 1.08rem; color: var(--ink); }

/* Programme page */
.prog-hero { position: relative; background: var(--hero-img) 70% 30% / cover no-repeat, var(--purple-3); padding: 2rem 0 4rem; overflow: hidden; }
.prog-hero .wrap { position: relative; }
.crumbs { font-size: .9rem; margin-bottom: 1.2rem; }
.crumbs a { color: var(--white); background: rgba(43,22,80,.6); padding: .25rem .6rem; border-radius: 6px; text-decoration: none; }
.crumbs span { color: var(--white); }
.prog-hero-panel { max-width: 700px; margin-left: -1.25rem; padding-left: calc(1.25rem + clamp(1.5rem, 4vw, 3rem)); }
.prog-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 500; letter-spacing: -.015em; }
.prog-hero p { font-size: 1.08rem; color: var(--ink); max-width: 52ch; }
.prog-hero .hero-badge { bottom: 0; }
@media (max-width: 720px) { .prog-hero { padding-top: 1.2rem; } .prog-hero .hero-badge { display: none; } }

.facts-bar { background: var(--purple); color: var(--white); }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.facts > div { padding: 1.1rem 1.6rem 1.1rem 0; margin-right: 1.6rem; border-right: 1px solid rgba(255,255,255,.18); }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: .78rem; color: #CFC4E4; }
.facts dd { margin: 0; font-weight: 600; }

.prog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding-top: 2.5rem; padding-bottom: 3.5rem; }
.on-page { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; font-size: .92rem; font-weight: 500; }
.prog-section { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.prog-section:last-child { border-bottom: 0; }
.prog-section h2 { font-size: 1.45rem; }
.prog-section > p, .prog-section li { max-width: 70ch; }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.05rem; height: .6rem; border-left: 3px solid var(--gold-dk); border-bottom: 3px solid var(--gold-dk); transform: rotate(-45deg) scale(.8); }
.course-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.course-group { background: var(--mist); border-radius: 0 16px 16px 16px; padding: 1.1rem 1.2rem; }
.course-group h3 { font-size: 1rem; margin-bottom: .6rem; }
.course-group ul { margin: 0; padding-left: 1.1rem; }
.course-group li { margin-bottom: .35rem; font-size: .95rem; }
.fee-box { background: var(--purple-3); border-left: 4px solid var(--gold); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; font-weight: 500; color: var(--ink); }
.prog-aside { position: relative; }
.aside-card { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 0 0 18px 18px; padding: 1.5rem; box-shadow: var(--shadow); }
.aside-card h2 { font-size: 1.25rem; }
.aside-wa { display: block; margin-top: 1rem; font-size: .92rem; font-weight: 600; }
@media (max-width: 960px) { .prog-layout { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* Generic content */
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
.prose .h2 { margin-top: 1.8rem; font-size: 1.6rem; }
.prose .h2:first-child { margin-top: 0; }
@media (max-width: 900px) { .prose-grid { grid-template-columns: 1fr; } }
.plain-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.plain-list span { color: var(--muted); white-space: nowrap; }
.school-block { margin-bottom: 3.5rem; }
.school-head { border-left: 5px solid var(--gold); padding-left: 1rem; margin-bottom: 1.4rem; }
.school-head .h2 { margin-bottom: .2rem; font-size: 1.6rem; }
.school-head p { margin: 0; color: var(--muted); }
.callout { background: var(--mist); border-radius: 0 18px 18px 18px; padding: 1.5rem; margin-top: 2rem; }
.callout p:last-child { margin: 0; }
.empty { text-align: center; padding: 3rem 1rem; }
.req-list { margin-top: 1.5rem; }

.table-wrap { overflow-x: auto; margin-bottom: 2rem; border: 1px solid var(--line); border-radius: 12px; }
.fee-table, .admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fee-table th, .fee-table td, .admin-table th, .admin-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table thead th, .admin-table thead th { background: var(--purple); color: var(--white); font-weight: 600; font-size: .88rem; }
.fee-table tbody th { font-weight: 600; }
.fee-table tr:last-child > *, .admin-table tr:last-child > * { border-bottom: 0; }

/* Login tiles */
.login-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.login-tile { display: block; padding: 1.4rem; border: 2px solid var(--line); border-radius: 0 18px 18px 18px; text-decoration: none; color: var(--text); }
.login-tile:hover { border-color: var(--purple); color: var(--text); }
.login-tile strong { display: block; color: var(--purple); font-size: 1.1rem; margin-bottom: .3rem; }
.login-tile span { font-size: .92rem; color: var(--muted); }
.login-tile-primary { grid-column: 1 / -1; background: var(--purple); border-color: var(--purple); }
.login-tile-primary strong { color: var(--white); font-size: 1.35rem; }
.login-tile-primary span { color: #DCD3EC; }
.login-tile-primary:hover { background: var(--purple-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; padding: 1.1rem 1.3rem; }
.contact-card h2 { font-size: .95rem; margin-bottom: .2rem; color: var(--muted); font-weight: 500; }
.contact-card a { font-weight: 600; font-size: 1.05rem; }
.contact-card p, .contact-card address { margin: .3rem 0 0; font-style: normal; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: .8rem .9rem; border: 1.5px solid #CFC8DC; border-radius: 10px; background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple-2); box-shadow: 0 0 0 3px rgba(75,42,131,.2); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: .88rem; margin: .3rem 0 0; }
.hint { font-size: .84rem; color: var(--muted); margin: .3rem 0 0; }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: .5rem; align-items: center; margin: .4rem 0 1rem; font-size: .95rem; }
.notice { background: #FFF6E5; border-left: 4px solid var(--gold); padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; margin-bottom: 1.2rem; }
.notice-ok { background: #E8F5EE; border-color: var(--ok); }
.notice-error { background: #FDECEA; border-color: var(--err); }
.notice ul { margin: .4rem 0 0; }
.enquiry .form { background: var(--white); border: 1px solid var(--line); border-radius: 0 20px 20px 20px; padding: clamp(1.2rem, 3vw, 2rem); }

/* Footer */
.site-footer { background: var(--purple); color: #D3C9E6; padding-top: 3.5rem; font-size: .93rem; }
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--gold); font-size: .95rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
.brand-footer .brand-ecampus { color: var(--white); }
/* Footer crest sits on a white tile so it stays clear on the dark purple */
.brand-footer img { background: var(--white); border-radius: 12px; padding: 6px; width: 56px; height: 56px; object-fit: contain; box-sizing: border-box; }
.footer-tag { margin-top: 1rem; color: var(--white); }
.footer-motto { font-style: italic; font-weight: 600; color: var(--gold); }
.social { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1rem !important; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.2rem; padding-bottom: 1.4rem; font-size: .85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.whatsapp { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; display: inline-flex; align-items: center; gap: .5rem; background: #25D366; color: #073B1E; padding: .75rem 1.1rem .75rem .85rem; border-radius: 999px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
.whatsapp:hover { background: #2EE576; color: #073B1E; }
@media (max-width: 520px) { .whatsapp span { display: none; } .whatsapp { padding: .8rem; } }

/* Admin */
.admin { background: var(--mist); }
.admin-bar { background: var(--purple); }
.admin-bar .brand-ecampus { color: var(--white); font-size: 1.25rem; }
.admin-tag { color: var(--gold); font-weight: 600; font-size: .9rem; }
.admin-bar-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; min-height: 64px; }
.admin-nav { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.admin-nav a, .admin-nav .linklike { color: #E6DEF3; text-decoration: none; padding: .45rem .7rem; border-radius: 8px; font-size: .92rem; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.12); color: var(--white); }
.admin-nav form { margin: 0; }
.admin-main { padding-top: 2rem; padding-bottom: 4rem; }
.admin-main h1 { font-size: 1.7rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-table { background: var(--white); }
.admin-form { background: var(--white); border-radius: 16px; padding: 1.5rem; border: 1px solid var(--line); max-width: 920px; }
.admin-form fieldset { border: 0; border-top: 1px solid var(--line); padding: 1.2rem 0 .4rem; margin: 0; }
.admin-form fieldset:first-of-type { border-top: 0; padding-top: 0; }
.admin-form legend { font-weight: 700; color: var(--purple); padding: 0; margin-bottom: .8rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .9rem !important; }
.admin-login { max-width: 420px; margin: 3rem auto; background: var(--white); padding: 2rem; border-radius: 18px; border: 1px solid var(--line); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--muted); }
.stat strong { display: block; font-size: 1.8rem; color: var(--purple); }
.status { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: var(--line); color: var(--ink); }
.status-new { background: #FFE8BF; color: #7A4B00; }
.status-contacted { background: #E3DAF3; color: var(--purple); }
.status-closed { background: #D8F0E3; color: #135C37; }
.detail-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; }
.detail-list dt { font-size: .8rem; color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 500; color: var(--ink); }
.message-box { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; margin-bottom: 1.5rem; white-space: normal; }
.danger-zone { margin-top: 1.5rem; }
nav[role="navigation"] { margin-top: 1rem; }

/* Extend hero panels to the left edge of the screen, like the adverts */
.hero-panel, .page-hero .glass, .prog-hero-panel { position: relative; }
.hero-panel::before, .page-hero .glass::before, .prog-hero-panel::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 100vw; background: rgba(255,255,255,.84); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* =====================================================================
   Interactive layer (v2): carousel, ticker, modals, quick view, compare,
   finder, fee calculator, admissions journey, stories, micro-animations
   ===================================================================== */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.btn-sm { padding: .55rem .9rem; font-size: .88rem; border-radius: 10px; }
.btn { transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold:hover { box-shadow: 0 8px 20px -8px rgba(233,161,42,.8); }
.btn.loading { opacity: .7; pointer-events: none; }
.btn.loading::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.disabled { opacity: .55; }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: var(--white); color: var(--purple); }
.text-ok { color: var(--ok) !important; } .text-muted { color: var(--muted) !important; }
@keyframes spin { to { transform: rotate(360deg); } }
.site-header { transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(43,22,80,.45); }

/* Scroll-in reveal (only when JS is running and motion is allowed) */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .reveal-stagger > * , .js-reveal .reveal-stagger .steps > li { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js-reveal .reveal-stagger.in > *, .js-reveal .reveal-stagger.in .steps > li { opacity: 1; transform: none; }
.js-reveal .reveal-stagger.in > :nth-child(2), .js-reveal .reveal-stagger.in .steps > li:nth-child(2) { transition-delay: .08s; }
.js-reveal .reveal-stagger.in > :nth-child(3), .js-reveal .reveal-stagger.in .steps > li:nth-child(3) { transition-delay: .16s; }
.js-reveal .reveal-stagger.in > :nth-child(4), .js-reveal .reveal-stagger.in .steps > li:nth-child(4) { transition-delay: .24s; }
.js-reveal .reveal-stagger.in > :nth-child(5), .js-reveal .reveal-stagger.in .steps > li:nth-child(5) { transition-delay: .32s; }
.js-reveal .reveal-stagger.in > :nth-child(6) { transition-delay: .4s; }

/* Announcement ticker */
.ticker { background: var(--purple); color: #E9E2F5; font-size: .88rem; }
.ticker-row { display: flex; align-items: center; gap: 1rem; min-height: 40px; }
.ticker a { color: var(--white); }
.ticker-track { flex: 1; min-width: 0; position: relative; }
.ticker-item { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .25s, transform .25s; }
.ticker-item.out { opacity: 0; transform: translateY(-8px); }
.ticker-item.enter { animation: tick-in .35s ease; }
@keyframes tick-in { from { opacity: 0; transform: translateY(8px); } }
.ticker-pause { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; cursor: pointer; display: grid; place-items: center; flex: none; }
.ticker-pause span { width: 8px; height: 10px; border-left: 2.5px solid #fff; border-right: 2.5px solid #fff; }
.ticker.paused .ticker-pause span { border-right: 0; border-left: 0; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid #fff; margin-left: 2px; }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; background: var(--gold); color: var(--purple) !important; font-weight: 600; padding: .2rem .8rem; border-radius: 999px; text-decoration: none; white-space: nowrap; flex: none; }
.status-pill .countdown { font-weight: 500; }
.status-pill .countdown::before { content: ","; margin-right: .3em; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #1FA25F; box-shadow: 0 0 0 0 rgba(31,162,95,.6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(31,162,95,0); } 100% { box-shadow: 0 0 0 0 rgba(31,162,95,0); } }
@media (max-width: 720px) { .ticker-track { display: none; } .ticker-row { justify-content: center; } .status-pill { font-size: .8rem; } }

/* Hero carousel */
.hero-carousel { display: block; }
.hero-carousel .slides { display: grid; min-height: inherit; }
.slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.slide-bg { position: absolute; inset: 0; background: var(--img) var(--pos, 70% 30%) / cover no-repeat; transform: scale(1.02); }
.slide-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,22,80,.28), transparent 60%); }
.slide.is-active .slide-bg { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero-carousel .hero-inner { padding-bottom: 9rem; width: 100%; }
.hero-title { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 1rem; }
.slide .hero-panel > * { transition: opacity .6s ease, transform .6s ease; }
.slide:not(.is-active) .hero-panel > * { opacity: 0; transform: translateY(16px); }
.slide.is-active .hero-panel > :nth-child(2) { transition-delay: .1s; }
.slide.is-active .hero-panel > :nth-child(3) { transition-delay: .2s; }
.slide.is-active .hero-panel > :nth-child(4) { transition-delay: .3s; }
.slide.is-active .hero-panel > :nth-child(5) { transition-delay: .4s; }
.hero-status { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; font-weight: 600; color: var(--purple); margin: 0; }
.hero-status .countdown { font-weight: 500; color: var(--gold-dk); }
.carousel-controls { position: absolute; left: 0; right: 0; bottom: 5.8rem; z-index: 3; display: flex; align-items: center; gap: .5rem; }
.carousel-dots { display: flex; gap: .4rem; margin-right: .6rem; }
.carousel-dots button { width: 34px; height: 24px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; align-items: center; }
.carousel-dots span { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.55); position: relative; overflow: hidden; transition: background .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.carousel-dots button[aria-current] span { background: rgba(255,255,255,.55); }
.carousel-dots button[aria-current] span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; }
.hero-carousel.tick .carousel-dots button[aria-current] span::after { animation: fill var(--slide-ms, 7000ms) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.carousel-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px -6px rgba(0,0,0,.4); transition: transform .15s, background .15s; }
.carousel-btn:hover { transform: scale(1.08); background: var(--white); }
.carousel-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--purple); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn .i-play { display: none; fill: var(--purple); stroke: none; }
.hero-carousel.paused .carousel-btn .i-play { display: block; } .hero-carousel.paused .carousel-btn .i-pause { display: none; }
.carousel-btn-dark { background: var(--purple); } .carousel-btn-dark svg { stroke: var(--white); } .carousel-btn-dark:hover { background: var(--purple-2); }
.hero-carousel .hero-badge { z-index: 3; }
@media (max-width: 720px) {
  .hero-carousel .hero-inner { padding-top: 11rem; padding-bottom: 8.5rem; }
  .carousel-controls { bottom: 5.2rem; }
  .slide { align-items: flex-end; }
}

/* Floating actions */
.fab { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; transition: bottom .25s; }
body.has-tray .fab { bottom: 5.6rem; }
.fab-enquire, .fab-wa { display: inline-flex; align-items: center; gap: .5rem; border: 0; font: 600 .95rem var(--font); padding: .75rem 1.15rem .75rem .9rem; border-radius: 999px; cursor: pointer; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); transition: transform .15s; }
.fab-enquire { background: var(--purple); color: var(--white); }
.fab-wa { background: #25D366; color: #073B1E; }
.fab-enquire:hover, .fab-wa:hover { transform: translateY(-2px) scale(1.03); color: inherit; }
.fab-enquire:hover { color: var(--white); }
@media (max-width: 520px) { .fab span { display: none; } .fab-enquire, .fab-wa { padding: .85rem; } }
.whatsapp { display: none; }

/* Modals */
.modal { border: 0; padding: 0; border-radius: 22px; width: min(640px, calc(100% - 1.5rem)); max-height: calc(100vh - 2rem); overflow: auto; box-shadow: 0 30px 80px -20px rgba(20,10,40,.6); color: var(--text); }
.modal-wide { width: min(920px, calc(100% - 1.5rem)); }
.modal::backdrop { background: rgba(28,14,52,.55); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .22s cubic-bezier(.2,.8,.2,1); }
.modal.closing { animation: modal-out .18s ease forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
html.modal-open { overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.5rem .5rem; }
.modal-head h2 { margin: 0 0 .2rem; font-size: 1.4rem; }
.modal-head p { margin: 0; font-size: .92rem; }
.modal-close { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; background: var(--mist); color: var(--purple); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--line); }
.modal-close-float { position: absolute; top: .8rem; right: .8rem; z-index: 2; background: rgba(255,255,255,.92); }
.modal .enquiry .form { border: 0; border-radius: 0; padding: 1rem 1.5rem 1.5rem; }
.success-pop { animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

/* Quick View */
.qv { display: grid; grid-template-columns: 38% 1fr; }
.qv-img { background: center 30% / cover no-repeat; min-height: 280px; position: relative; }
.qv-img .pill-online { position: absolute; left: 1rem; top: 1rem; }
.qv-body { padding: 1.8rem 1.8rem 1.6rem; }
.qv-body h2 { font-size: 1.5rem; }
.qv-body h3 { font-size: 1rem; margin-top: 1.1rem; }
.qv-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem 1rem; margin: 1rem 0; padding: 1rem; background: var(--mist); border-radius: 12px; }
.qv-facts dt { font-size: .76rem; color: var(--muted); } .qv-facts dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .92rem; }
.qv-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
@media (max-width: 720px) { .qv { grid-template-columns: 1fr; } .qv-img { min-height: 180px; } }

/* Programme cards (v2) */
.prog-card { position: relative; display: flex; flex-direction: column; }
.prog-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--purple-3); position: relative; }
.prog-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.prog-card:hover .prog-card-img img { transform: scale(1.06); }
.prog-card-img .pill-online { position: absolute; left: .9rem; top: .9rem; }
.prog-card-school { font-size: .8rem; font-weight: 600; color: var(--gold-dk); margin: 0 0 .2rem; }
.prog-card h3 { margin-top: .2rem; }
.prog-card h3 a { color: var(--purple); text-decoration: none; }
.prog-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.prog-card h3 a:hover { text-decoration: underline; }
.card-actions { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--line); padding-top: .9rem; margin-top: auto; }
.mini-facts { margin-top: auto; }
.compare-check { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--purple); cursor: pointer; }
.compare-check input { width: 18px; height: 18px; accent-color: var(--purple); }
.compare-check:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.compare-check-block { margin-top: 1rem; }
.prog-card.is-compared { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.prog-card[hidden] { display: none; }

/* Compare tray */
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--white); border-top: 3px solid var(--gold); box-shadow: 0 -12px 30px -18px rgba(43,22,80,.5); animation: tray-in .25s ease; }
@keyframes tray-in { from { transform: translateY(100%); } }
.compare-row { display: flex; align-items: center; gap: 1rem; min-height: 70px; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.compare-row p { margin: 0; }
.compare-row ul { list-style: none; display: flex; gap: .4rem; flex-wrap: wrap; margin: 0; padding: 0; flex: 1; }
.compare-row li { background: var(--mist); border-radius: 999px; padding: .25rem .4rem .25rem .8rem; font-size: .88rem; font-weight: 500; }
.compare-row li button { border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--muted); padding: 0 .3rem; }
.compare-actions { display: flex; gap: 1rem; align-items: center; }
@media (max-width: 620px) { .compare-row ul { display: none; } .compare-row { justify-content: space-between; } }

/* Compare page */
.compare-picker { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 1rem; align-items: end; margin-bottom: 2rem; }
@media (max-width: 820px) { .compare-picker { grid-template-columns: 1fr; } }
.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare-table th, .compare-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-size: .93rem; }
.compare-table thead th { background: var(--mist); }
.compare-table thead th img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0 12px 12px 12px; margin-bottom: .6rem; }
.compare-table thead a { font-weight: 600; color: var(--purple); }
.compare-table tbody th { width: 170px; color: var(--purple); font-weight: 600; background: #FBFAFD; }
.compare-table .ticks li { margin-bottom: .3rem; }
.compare-table td .btn { margin: 0 .3rem .3rem 0; }

/* Academics finder */
.finder { background: var(--white); border: 1px solid var(--line); border-radius: 0 22px 22px 22px; padding: 1.3rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; display: grid; gap: 1rem; }
.finder-search { position: relative; }
.finder-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.finder-search input { width: 100%; font: inherit; font-size: 1.05rem; padding: .95rem 1rem .95rem 2.9rem; border: 1.5px solid #CFC8DC; border-radius: 12px; }
.finder-search input:focus { outline: none; border-color: var(--purple-2); box-shadow: 0 0 0 3px rgba(75,42,131,.2); }
.finder-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.finder-selects .field { margin: 0; }
@media (max-width: 620px) { .finder-selects { grid-template-columns: 1fr; } }
.area-chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.area-chips legend { font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .4rem; width: 100%; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-block; font-size: .88rem; font-weight: 500; padding: .45rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; transition: all .15s; }
.chip-radio span:hover { border-color: var(--purple-2); }
.chip-radio input:checked + span { background: var(--purple); border-color: var(--purple); color: var(--white); }
.chip-radio input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.finder-status { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.finder-status p { margin: 0; color: var(--muted); }
.finder-status strong { color: var(--purple); font-size: 1.15rem; }

.callout-white { background: var(--white); }

/* Admissions journey */
.journey-progress { display: flex; align-items: center; gap: 1rem; }
.progress-ring { --p: 0; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--line) 0); transition: background .4s; position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 7px; background: var(--white); border-radius: 50%; }
.progress-ring span { position: relative; font-weight: 700; color: var(--purple); }
.journey { border: 1px solid var(--line); border-radius: 0 24px 24px 24px; overflow: hidden; }
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--mist); position: relative; }
.journey-steps button { width: 100%; height: 100%; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; padding: 1rem .6rem; font: 500 .9rem var(--font); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; transition: color .2s, border-color .2s, background .2s; }
.journey-steps button:hover { background: #EEEAF6; }
.journey-steps button[aria-selected="true"] { color: var(--purple); border-bottom-color: var(--gold); background: var(--white); font-weight: 600; }
.journey-dot { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--line); font-weight: 700; color: var(--purple); transition: all .25s; }
.journey-steps button[aria-selected="true"] .journey-dot { background: var(--purple); border-color: var(--purple); color: var(--white); }
.journey-steps button.complete .journey-dot { background: var(--ok); border-color: var(--ok); color: transparent; position: relative; }
.journey-steps button.complete .journey-dot::after { content: ""; position: absolute; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); margin-top: -3px; }
.journey-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; padding: clamp(1.2rem, 3vw, 2rem); }
.journey-panel.enter { animation: panel-in .35s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateX(14px); } }
.journey-body h3 { font-size: 1.35rem; }
.journey-checklist { border: 0; margin: 0; padding: 1.1rem 1.2rem; background: var(--mist); border-radius: 0 16px 16px 16px; }
.journey-checklist legend { font-weight: 700; color: var(--purple); padding: 0; margin-bottom: .6rem; float: left; width: 100%; }
.check-item { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--line); cursor: pointer; clear: both; }
.check-item:last-child { border-bottom: 0; }
.check-item input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--ok); flex: none; }
.check-item input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--ok); }
.journey-nav { grid-column: 1 / -1; display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.journey-done { margin: 0; font-weight: 600; color: var(--ok); }
@media (max-width: 820px) {
  .journey-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .journey-label { display: none; }
  .journey-steps button[aria-selected="true"] .journey-label { display: block; font-size: .78rem; }
  .journey-panel { grid-template-columns: 1fr; }
}

/* Student stories */
.stories { background: linear-gradient(180deg, var(--white), var(--mist)); }
.slider-nav { display: flex; gap: .5rem; }
.story-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 85%); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .2rem 1.2rem; scrollbar-width: thin; }
.story { scroll-snap-align: start; margin: 0; background: var(--white); border-radius: 0 24px 24px 24px; padding: 1.8rem; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.story:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.story blockquote { margin: 0 0 1.4rem; font-size: 1.05rem; color: var(--ink); position: relative; padding-top: 1.6rem; }
.story blockquote::before { content: "\201C"; position: absolute; top: -1.2rem; left: -.2rem; font-size: 4.5rem; color: var(--gold); line-height: 1; font-weight: 700; }
.story figcaption { display: flex; gap: .8rem; align-items: center; margin-top: auto; font-size: .88rem; color: var(--muted); }
.story figcaption img, .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar { display: grid; place-items: center; background: var(--purple); color: var(--gold); font-weight: 700; }
.story figcaption strong { display: block; color: var(--purple); font-size: 1rem; }
.story figcaption a { display: block; font-weight: 500; }

/* Admin (v2) */
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.checklist li a { display: block; background: #FFF6E5; border-left: 4px solid var(--gold); padding: .8rem 1rem; border-radius: 0 10px 10px 0; color: var(--ink); text-decoration: none; }
.checklist li a:hover { background: #FFEFD0; }
.banner-list { display: grid; gap: .8rem; }
.banner-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 1.2rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: .8rem; }
.banner-row img { width: 180px; height: 100px; object-fit: cover; border-radius: 10px; }
.banner-row h2 { font-size: 1.05rem; margin: .1rem 0 .4rem; }
.banner-row p { margin: 0; font-size: .85rem; }
.banner-preview { position: relative; aspect-ratio: 16 / 6; max-width: 920px; border-radius: 16px; overflow: hidden; background: var(--img) var(--pos) / cover no-repeat, var(--purple-3); display: flex; align-items: center; }
.banner-preview-panel { background: rgba(255,255,255,.85); padding: 1.2rem 1.4rem; border-radius: 0 20px 20px 0; max-width: 55%; display: grid; gap: .3rem; }
.banner-preview-panel small { color: var(--purple-2); font-weight: 600; }
.banner-preview-panel strong { color: var(--purple); font-size: clamp(1rem, 2.4vw, 1.6rem); font-weight: 500; line-height: 1.15; }
.banner-preview-panel span { font-size: .85rem; }
.banner-preview-panel em { justify-self: start; font-style: normal; background: var(--gold); color: var(--purple); font-weight: 600; font-size: .8rem; padding: .35rem .8rem; border-radius: 8px; }
.fee-rows { display: grid; gap: .5rem; margin-bottom: .8rem; }
.fee-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: .5rem; }
.fee-row input, .fee-row select { font: inherit; padding: .65rem .8rem; border: 1.5px solid #CFC8DC; border-radius: 10px; width: 100%; }
.thumb { border-radius: 50%; object-fit: cover; }
@media (max-width: 620px) { .banner-row { grid-template-columns: 1fr; } .banner-row img { width: 100%; height: 140px; } .fee-row { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .slide.is-active .slide-bg { animation: none; }
  .js-reveal .reveal, .js-reveal .reveal-stagger > * { opacity: 1; transform: none; }
}
.js-reveal .prog-card.reveal.in { transition: opacity .6s ease, transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .2s; }
.js-reveal .prog-card.reveal.in:hover { transform: translateY(-4px); }

/* Page curl, closer to the advert fold */
.hero::after, .page-hero::after, .prog-hero::after { background: linear-gradient(45deg, #dcdae4 0%, #fdfdfe 38%, #f3f2f7 46%, #a9a5b8 49.6%, transparent 50%); border-bottom-left-radius: 38% 12%; }
.hero-carousel .hero-badge { top: calc(clamp(90px, 14vw, 170px) + 1.2rem); bottom: auto; }
@media (max-width: 720px) { .hero-carousel .hero-badge { top: 1.2rem; left: 1.25rem; right: auto; } }

/* Fees: one card per qualification, total only */
.fee-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: center; gap: 1.2rem; }
@media (max-width: 1000px) { .fee-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fee-cards { grid-template-columns: 1fr; } }
.fee-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 0 0 22px 22px; padding: 1.6rem 1.4rem 1.4rem; transition: transform .2s, box-shadow .2s; }
.fee-card:hover, .fee-card.is-selected { box-shadow: var(--shadow); }
.js-reveal .fee-card.reveal.in:hover { transform: translateY(-4px); }
.fee-card h3 { font-size: 1.25rem; margin-bottom: .3rem; min-height: 2.4em; }
.fee-card-desc { color: var(--muted); font-size: .9rem; min-height: 2.8em; }
.fee-card-label { margin: .6rem 0 0; font-size: .82rem; font-weight: 600; color: var(--gold-dk); }
.fee-card-amount { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; color: var(--purple); margin: 0 0 .4rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.fee-card-pending { font-size: 1.25rem; font-weight: 600; color: var(--muted); }
.fee-card-note { font-size: .88rem; color: var(--muted); }
.fee-card-actions { margin-top: auto; padding-top: .8rem; }
.fees-note { margin-top: 1.4rem; color: var(--muted); font-size: .92rem; }
.fee-box { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.fee-box strong { font-size: 1.5rem; color: var(--purple); }

/* =========================================================
   v4: faster slider, faces never hidden behind the panel,
   at-a-glance numbers, closing call to action, video, mobile apply bar
   ========================================================= */
.slide { transition: opacity .7s ease, visibility 0s linear .7s; }
.slide.is-active { transition: opacity .7s ease; }
.slide.is-active .slide-bg { animation-duration: 7s; }

/* On larger screens the photo fills the right-hand side of the banner, so a person on
   the left of a photo is not covered by the text panel. A soft blurred copy sits behind the panel. */
@media (min-width: 900px) {
  .slide::before { content: ""; position: absolute; inset: 0; background: var(--img) center / cover no-repeat; filter: blur(22px) saturate(1.1); transform: scale(1.15); opacity: .7; }
  .slide-bg { left: 40%; }
  .slide-bg::after { background: linear-gradient(90deg, rgba(255,255,255,.35), transparent 22%); }
}
@media (min-width: 1400px) { .slide-bg { left: 45%; } }

/* At a glance */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; text-align: center; }
.stat-item { padding: 1.2rem .8rem; border-radius: 0 18px 18px 18px; background: var(--mist); }
.stat-item strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--purple); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-item span { color: var(--muted); font-size: .92rem; }
.stat-item strong span { color: inherit; font-size: inherit; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Closing call to action on every page */
.cta-band { background: linear-gradient(120deg, var(--purple) 0%, var(--purple-2) 100%); color: #E6DEF3; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(233,161,42,.18); }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-top: 2.8rem; padding-bottom: 2.8rem; position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .3rem; }
.cta-band p { margin: 0; }
.cta-band .countdown { display: inline-block; margin-left: .3rem; color: var(--gold); font-weight: 600; }
.cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* Intro video */
.btn-play { gap: .6rem; }
.play-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); position: relative; flex: none; }
.play-dot::after { content: ""; position: absolute; left: 10px; top: 7px; border-left: 9px solid var(--purple); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.modal-video { width: min(960px, calc(100% - 1.5rem)); background: #000; }
.video-frame { aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Sticky apply bar on programme pages (phones) */
.mobile-apply { display: none; }
@media (max-width: 720px) {
  .mobile-apply { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 54; background: var(--white); padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 24px -16px rgba(43,22,80,.5); }
  body.has-mobile-apply .fab { bottom: 5.2rem; }
  body.has-mobile-apply .site-footer { padding-bottom: 4.5rem; }
  body.has-mobile-apply.has-tray .mobile-apply { display: none; }
}
@media (min-width: 900px) { .slide-bg { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); } }
.status-pill .countdown { margin-left: -.5rem; }

/* Student login */
.portal-card { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: linear-gradient(120deg, var(--purple), var(--purple-2)); color: #E6DEF3; border-radius: 0 26px 26px 26px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.portal-card h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3rem; }
.portal-card p { margin: 0; }
.portal-kicker { color: var(--gold) !important; font-weight: 600; margin-bottom: .3rem !important; }
.login-more { margin-top: 2.5rem; }
.login-tile em { display: inline-block; margin-top: .7rem; font-style: normal; font-weight: 600; color: var(--purple-2); }

/* Admin: picture fields and content sections */
.image-field { display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; align-items: start; padding: 1rem; border: 1px dashed #CFC8DC; border-radius: 14px; margin-bottom: 1rem; background: #FBFAFD; }
.image-field-preview { position: relative; width: 100%; max-height: 300px; background: var(--mist); border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.image-field-preview img { width: 100%; height: 100%; object-fit: cover; }
.size-badge { position: absolute; right: .4rem; bottom: .4rem; background: var(--purple); color: var(--white); font-size: .72rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; }
.image-field-body label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .35rem; }
.image-field-body .small-label { font-weight: 500; margin-top: .6rem; }
.image-field-body select { font: inherit; padding: .5rem .7rem; border: 1.5px solid #CFC8DC; border-radius: 8px; }
.size-note { font-size: .85rem; font-weight: 600; margin: .5rem 0 0; }
.size-note.ok { color: var(--ok); } .size-note.bad { color: var(--err); }
@media (max-width: 720px) { .image-field { grid-template-columns: 1fr; } }
.content-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; margin-bottom: 2rem; }
.content-group { display: block; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; padding: 1rem 1.1rem; text-decoration: none; color: var(--muted); }
.content-group:hover { border-color: var(--purple-2); }
.content-group strong { display: block; color: var(--purple); font-size: 1.05rem; }
.content-group span { font-size: .88rem; }

/* Lecturers */
.lecturer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.lecturer-grid-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-top: 1rem; }
.lecturer-card { background: var(--white); border: 1px solid var(--line); border-radius: 0 22px 22px 22px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.lecturer-card:hover { box-shadow: var(--shadow); }
.js-reveal .lecturer-card.reveal.in:hover { transform: translateY(-4px); }
.lecturer-open { all: unset; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; height: 100%; cursor: pointer; padding-bottom: 1.1rem; text-align: left; }
.lecturer-open:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.lecturer-photo { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--purple-3); overflow: hidden; margin-bottom: .9rem; }
.lecturer-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lecturer-card:hover .lecturer-photo img { transform: scale(1.05); }
.leader-badge { position: absolute; left: .7rem; bottom: .7rem; background: var(--gold); color: var(--purple); font-size: .75rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; }
.lecturer-open strong { display: block; color: var(--purple); font-size: 1.05rem; padding: 0 1rem; line-height: 1.3; }
.lecturer-position { display: block; color: var(--muted); font-size: .88rem; padding: .2rem 1rem 0; }
.lecturer-more { margin-top: auto; padding: .7rem 1rem 0; font-weight: 600; font-size: .88rem; color: var(--purple-2); }
.avatar-lg { width: 96px; height: 96px; font-size: 1.8rem; }
.avatar-xl { width: 100%; height: 100%; min-height: 240px; border-radius: 0; font-size: 3rem; }
.profile { display: grid; grid-template-columns: 34% 1fr; }
.profile-photo { background: var(--purple-3); min-height: 280px; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-body { padding: 1.8rem; }
.profile-body h2 { font-size: 1.5rem; margin-bottom: .2rem; }
.profile-body h3 { font-size: 1rem; margin: 1.1rem 0 .5rem; }
.profile-position { color: var(--muted); font-weight: 500; }
.profile-leads { display: inline-block; background: #FFF6E5; color: var(--gold-dk); font-weight: 600; font-size: .88rem; padding: .3rem .7rem; border-radius: 8px; }
.tag-list, .plain-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-list li { background: var(--mist); border-radius: 999px; padding: .3rem .8rem; font-size: .86rem; }
.plain-links { display: grid; gap: .3rem; }
@media (max-width: 720px) { .profile { grid-template-columns: 1fr; } .profile-photo { min-height: 0; aspect-ratio: 1.3; } }
.lecturer-row .avatar-lg { width: 100px; height: 100px; }
.lecturer-row img { width: 100px !important; height: 100px !important; border-radius: 50% !important; }
.lecturer-row { grid-template-columns: 100px 1fr auto; }

/* Contact page and staff edit button */
.social-inline { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem; align-items: center; }
.map-grid > .map-frame:only-child { grid-column: 1 / -1; }
.map-frame { border-radius: 0 22px 22px 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--line); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) { .map-grid { grid-template-columns: 1fr; } }
.edit-page { position: fixed; left: 1rem; bottom: 1rem; z-index: 61; background: var(--ink); color: var(--white); font-weight: 600; font-size: .85rem; padding: .6rem 1rem; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow); }
.edit-page:hover { background: var(--purple-2); color: var(--white); }
.site-nav a { white-space: nowrap; }
@media (max-width: 1340px) and (min-width: 1201px) { .site-nav ul { gap: 0; } .site-nav a:not(.btn) { padding: .5rem .45rem; font-size: .88rem; } .site-nav { gap: .6rem; } }
/* Header with eight menu items */
.site-header .wrap, .ticker .wrap { max-width: 1320px; }
.header-row .brand { flex-shrink: 0; }
@media (max-width: 1500px) and (min-width: 1201px) { .brand-uni, .brand-rule { display: none; } }

/* Enquire by email: Gmail, Outlook or email app */
.modal-body { padding: .6rem 1.5rem 1.4rem; }
.email-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.email-option { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1.1rem .6rem; border: 2px solid var(--line); border-radius: 0 16px 16px 16px; text-decoration: none; color: var(--purple); font-weight: 600; background: var(--white); transition: border-color .15s, transform .15s, box-shadow .15s; }
.email-option:hover { border-color: var(--purple-2); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--purple); }
.email-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; background: var(--mist); color: var(--purple); }
.email-ico-gmail { background: #FDECEA; color: #C5221F; }
.email-ico-outlook { background: #E6F0FB; color: #0A64B8; }
.email-foot { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; font-size: .88rem; color: var(--muted); }
.email-foot .remember { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.email-foot input { accent-color: var(--purple); }
.copy-btn { margin-left: .3rem; font-size: .88rem; }
@media (max-width: 420px) { .email-option { padding: .9rem .3rem; font-size: .9rem; } }
#enquire-modal { width: min(460px, calc(100% - 1.5rem)); }

/* Academics drop-down and sub-navigation */
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { width: 26px; height: 30px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; margin-left: -.35rem; }
.sub-toggle span { width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.has-sub.open .sub-toggle span { transform: rotate(-135deg) translateY(-2px); }
.sub-menu { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); display: none; flex-direction: column !important; z-index: 70; }
.site-nav .sub-menu { display: none; }
.site-nav .has-sub:hover .sub-menu, .site-nav .has-sub:focus-within .sub-menu, .site-nav .has-sub.open .sub-menu { display: flex; }
.sub-menu a { padding: .6rem .8rem !important; border-radius: 8px !important; box-shadow: none !important; }
.sub-menu a.active { background: var(--mist); color: var(--purple); }
@media (max-width: 1200px) {
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { width: 44px; height: 44px; margin: 0; }
  .sub-menu { position: static; display: none; width: 100%; border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
  .site-nav .has-sub:hover .sub-menu, .site-nav .has-sub:focus-within .sub-menu { display: none; }
  .site-nav .has-sub.open .sub-menu { display: flex; }
}
.academics-tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: -1.6rem; position: relative; z-index: 2; }
.academics-tabs a { background: var(--white); color: var(--purple); font-weight: 600; text-decoration: none; padding: .75rem 1.2rem; border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: 3px solid transparent; box-shadow: 0 -6px 16px -12px rgba(43,22,80,.4); }
.academics-tabs a:hover { border-bottom-color: var(--line); }
.academics-tabs a.on { border-bottom-color: var(--gold); background: var(--white); }
.lecturer-filter { margin-bottom: 1.5rem; }
.lecturer-filter .filter-bar { margin-bottom: .6rem; }
.chip-count { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .35em; margin-left: .3rem; border-radius: 999px; background: var(--mist); color: var(--purple); font-size: .78rem; }
.chip-on .chip-count { background: rgba(255,255,255,.2); color: var(--white); }

/* Course list with expandable summaries */
.course-list { list-style: none; margin: 0; padding: 0; }
.course-list li { border-bottom: 1px solid var(--line); }
.course-list li:last-child { border-bottom: 0; }
.course-list summary { cursor: pointer; list-style: none; padding: .5rem 1.4rem .5rem 0; font-size: .95rem; position: relative; color: var(--ink); }
.course-list summary::-webkit-details-marker { display: none; }
.course-list summary::after { content: "+"; position: absolute; right: 0; top: .45rem; font-weight: 700; color: var(--gold-dk); }
.course-list details[open] summary { color: var(--purple); font-weight: 600; }
.course-list details[open] summary::after { content: "–"; }
.course-list details p { margin: 0 0 .7rem; font-size: .9rem; color: var(--muted); }
.course-plain { display: block; padding: .5rem 0; font-size: .95rem; }
.course-group .course-list { padding-left: 0; }
.course-group .course-list li { margin-bottom: 0; }

/* Privacy policy and cookie notice */
.policy h2 { margin-top: 1.8rem; }
.policy h2:first-of-type { margin-top: 0; }
.footer-base a, .footer-base .linklike { margin-left: 1rem; color: #D3C9E6; text-decoration: underline; font-size: .85rem; }
.cookie-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80; max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 0 16px 16px 16px; box-shadow: var(--shadow); padding: 1rem 1.2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
.cookie-bar p { margin: 0; font-size: .92rem; flex: 1 1 320px; }
.cookie-actions { display: flex; gap: .5rem; }
.btn-brochure { margin-top: .6rem; gap: .5rem; }

/* Local and international fees */
.fee-card-desc span { font-weight: 600; color: var(--purple-2); }
.fee-line { padding: .7rem 0; border-top: 1px solid var(--line); }
.fee-line .fee-card-label { margin: 0; }
.fee-line .fee-card-amount { margin: .1rem 0 0; }
.fee-card-sub { margin: 0; font-size: .82rem; color: var(--muted); }
.fee-line-intl .fee-card-amount { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.fee-box { flex-direction: column; align-items: stretch; gap: .8rem; }
.fee-box > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 1rem; }
.fee-box span { color: var(--muted); font-weight: 500; }
.fee-box small { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }

/* Keeps "e-Campus" on one line in headings */
.nowrap { white-space: nowrap; }

/* Apply: choose one of the approved programmes */
.apply-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.apply-item { display: flex; flex-direction: column; gap: .5rem; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 0 0 18px 18px; padding: 1.2rem 1.2rem 1.1rem; }
.apply-item .apply-school { margin: 0; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-dk); }
.apply-item h3 { margin: 0; font-size: 1.05rem; color: var(--purple); line-height: 1.3; }
.apply-item .apply-meta { margin: 0; font-size: .88rem; color: var(--muted); }
.apply-item .apply-actions { margin-top: auto; padding-top: .6rem; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.apply-note { color: var(--muted); margin: 0 0 1.4rem; }
