/* ==========================================================================
   SFS College — home4  ·  Editorial "bold block" theme (Middlesex-inspired)
   Clean white editorial base + vibrant color-block course grid + interactive
   dark sections. Packed with idle motion graphics and hover animations.
   Fonts: Archivo (display/uppercase) + Inter (body).
   Namespaced (.h4 / h4-). No shared code with index / home2 / home3.
   ========================================================================== */

:root{
  --navy:#0a1f42;
  --navy-2:#122a54;
  --ink:#14161c;
  --muted:#5b6070;
  --line:#e6e7ec;
  --paper:#ffffff;
  --paper-2:#f5f6f8;
  --red:#d0021b;
  --red-2:#a80016;
  --gold:#c8a04b;
  --purple:#4b2e83;

  --shell:1240px;
  --ease:cubic-bezier(.22,1,.36,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --font-display:'Poppins', sans-serif;
  --font-body:'Plus Jakarta Sans', sans-serif;

  --shadow-sm:0 2px 10px rgba(15,20,40,.06);
  --shadow:0 26px 60px -30px rgba(15,20,40,.4);
  --shadow-lg:0 50px 90px -40px rgba(15,20,40,.55);
}

/* ---------- base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
.h4{ margin:0; font-family:var(--font-body); color:var(--ink); background:var(--paper); line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
.h4 img{ max-width:100%; display:block; }
.h4 a{ color:inherit; text-decoration:none; }
.h4 button{ font-family:inherit; cursor:pointer; border:0; background:none; color:inherit; }
.h4 h1,.h4 h2,.h4 h3,.h4 h4{ margin:0; font-family:var(--font-display); font-weight:700; line-height:1.05; letter-spacing:-.01em; }
.h4 p{ margin:0; }
.h4 ul{ margin:0; padding:0; list-style:none; }
.h4 :focus-visible{ outline:3px solid var(--red); outline-offset:3px; border-radius:4px; }
.h4-ic{ width:1.15em; height:1.15em; fill:none; stroke:currentColor; flex:none; }
.h4 svg[class="h4-ic"]{ }
.h4-wrap{ width:min(100% - 48px, var(--shell)); margin-inline:auto; }
.h4-hide-sm{ }
.h4-skip{ position:fixed; top:-60px; left:16px; z-index:3000; background:var(--red); color:#fff; padding:10px 18px; border-radius:8px; transition:top .25s; }
.h4-skip:focus{ top:16px; }

.h4-progress{ position:fixed; top:0; left:0; height:3px; width:0; z-index:2000; background:linear-gradient(90deg,var(--red),var(--gold)); }

/* ---------- reveal ----------
   Animation-driven rather than transition-driven, matching the
   [data-h2-reveal] system in home2.css — see the long note there for why
   (component hover `transition` declarations silently replace a
   transition-based reveal's property list). Shares those keyframes; this
   file only ever loads on index.html, which loads home2.css too, and
   @keyframes resolve document-wide regardless of file order. Fallback
   values are inlined so the rule still works if that ever changes. */
/* opacity:1 first so this beats sections.css's own [data-reveal]{opacity:0}
   (same specificity, and this file loads later). The hidden state is then
   re-applied only when the h2-anim gate is present — see the note in
   home2.css for why the reveal must fail open. */
[data-reveal]{ opacity:1; }
:where(html.h2-anim) [data-reveal]{ opacity:0; }
[data-reveal].is-in,[data-reveal].in{
  opacity:1; position:relative;
  animation:h2RevealUp var(--h2-reveal-dur,1.15s) var(--h2-reveal-ease,cubic-bezier(.16,1,.3,1)) backwards;
  animation-delay:calc(var(--d,0)*150ms);
}

/* ---------- vertical/section titles ---------- */
.h4-eyebrow{ display:inline-flex; align-items:center; gap:.6em; font-family:var(--font-body); font-weight:700; font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--red); margin-bottom:1rem; }
.h4-eyebrow span{ width:26px; height:2px; background:var(--red); display:inline-block; position:relative; overflow:hidden; }
.h4-eyebrow span::after{ content:""; position:absolute; inset:0; width:10px; background:#fff; animation:h4sweep 2.4s var(--ease) infinite; }
.h4-eyebrow.light{ color:#fff; }
.h4-eyebrow.light span{ background:var(--gold); }
.h4-eyebrow.light span::after{ background:rgba(255,255,255,.6); }
@keyframes h4sweep{ 0%{ transform:translateX(-12px); } 60%,100%{ transform:translateX(28px); } }

.h4-vtitle{ font-family:var(--font-display); text-transform:uppercase; color:var(--ink);     line-height: 1.08;
    letter-spacing: -.015em;
    font-size: clamp(2rem, 3.8vw, 3rem);}
.h4-vtitle-dark{ color:var(--navy); }
.h4-vtitle.light{ color:#fff; }

/* ---------- buttons ---------- */
.h4-btn{ --pad:.85em 1.5em; display:inline-flex; align-items:center; gap:.55em; padding:var(--pad); border-radius:4px; font-family:var(--font-body); font-weight:700; font-size:.9rem; letter-spacing:.01em; position:relative; overflow:hidden; isolation:isolate; transition:transform .3s var(--ease), box-shadow .3s var(--ease), color .3s, background .3s; }
.h4-btn .h4-ic{ transition:transform .3s var(--ease); }
.h4-btn:hover .h4-ic{ transform:translateX(4px); }
.h4-btn-sm{ --pad:.6em 1.1em; font-size:.8rem; }
.h4-btn-lg{ --pad:1.05em 1.9em; font-size:1rem; }
.h4-btn::before{ content:""; position:absolute; inset:0; z-index:-1; transform:scaleX(0); transform-origin:left; transition:transform .4s var(--ease); }
.h4-btn:hover{ transform:translateY(-2px); }
.h4-btn-red{ background:var(--red); color:#fff; box-shadow:0 10px 24px -12px rgba(208,2,27,.7); }
.h4-btn-red::before{ background:var(--red-2); }
.h4-btn-red:hover::before{ transform:scaleX(1); }
.h4-btn-red:hover{ box-shadow:0 16px 34px -12px rgba(208,2,27,.8); }
.h4-btn-ghost{ background:transparent; color:var(--navy); border:1.5px solid var(--line); }
.h4-btn-ghost::before{ background:var(--navy); }
.h4-btn-ghost:hover{ color:#fff; border-color:var(--navy); }
.h4-btn-ghost:hover::before{ transform:scaleX(1); }
.h4-btn-outline-light{ background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.5); }
.h4-btn-outline-light::before{ background:#fff; }
.h4-btn-outline-light:hover{ color:var(--navy); border-color:#fff; }
.h4-btn-outline-light:hover::before{ transform:scaleX(1); }

.h4-textlink{ display:inline-flex; align-items:center; gap:.45em; font-family:var(--font-display); font-weight:700; font-size:.82rem; letter-spacing:.02em; color:var(--red); position:relative; }
.h4-textlink.light{ color:#fff; }
.h4-textlink::after{ content:""; position:absolute; left:0; bottom:-3px; height:2px; width:100%; background:currentColor; transform:scaleX(0); transform-origin:right; transition:transform .35s var(--ease); }
.h4-textlink:hover::after{ transform:scaleX(1); transform-origin:left; }
.h4-textlink:hover .h4-ic{ transform:translateX(4px); }
.h4-textlink .h4-ic{ transition:transform .3s var(--ease); }

.h4-round{ width:46px; height:46px; border-radius:50%; display:grid; place-items:center; border:1.5px solid var(--line); background:#fff; color:var(--navy); transition:.3s var(--ease); }
.h4-round:hover{ background:var(--navy); color:#fff; border-color:var(--navy); transform:translateY(-2px); }
.h4-round:disabled{ opacity:.35; cursor:default; transform:none; background:#fff; color:var(--navy); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.h4-header{ position:fixed; inset:0 0 auto 0; z-index:1200; transition:transform .4s var(--ease); }
.h4-header.is-hidden{ transform:translateY(-100%); }
.h4-utility{ background:var(--navy); color:#cfd6e6; font-size:.78rem; overflow:hidden; transition:height .35s var(--ease); height:38px; }
.h4-header.is-scrolled .h4-utility{ height:0; }
.h4-utility-in{ display:flex; align-items:center; justify-content:space-between; gap:1.5rem; height:38px; }
.h4-util-marquee{ overflow:hidden; flex:1; -webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); }
.h4-util-track{ display:flex; gap:2rem; width:max-content; animation:h4marq 30s linear infinite; }
.h4-util-track span{ display:inline-flex; align-items:center; gap:.5em; white-space:nowrap; }
.h4-util-track .h4-ic{ width:1em; height:1em; color:var(--gold); }
.h4-util-links{ display:flex; align-items:center; gap:1.2rem; white-space:nowrap; }
.h4-util-links a{ transition:color .25s; }
.h4-util-links a:hover{ color:#fff; }
.h4-util-call{ display:inline-flex; align-items:center; gap:.4em; color:#fff; font-weight:600; }
.h4-util-call .h4-ic{ width:1em; height:1em; color:var(--gold); }
@keyframes h4marq{ to{ transform:translateX(-50%); } }

.h4-nav{ background:rgba(255,255,255,.92); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); border-bottom:1px solid var(--line); transition:box-shadow .35s; }
.h4-header.is-scrolled .h4-nav{ box-shadow:0 12px 30px -20px rgba(15,20,40,.4); }
.h4-nav-in{ display:flex; align-items:center; gap:1.5rem; height:74px; }
.h4-brand img{ height:42px; width:auto; }
.h4-menu{ display:flex; align-items:center; gap:.3rem; margin-left:auto; }
.h4-menu>li>a{ display:inline-block; padding:.5em .7em; font-size:.86rem; font-weight:600; color:var(--navy); position:relative; }
.h4-menu>li>a::after{ content:""; position:absolute; left:.7em; right:.7em; bottom:.2em; height:2px; background:var(--red); transform:scaleX(0); transform-origin:right; transition:transform .3s var(--ease); }
.h4-menu>li>a:hover::after{ transform:scaleX(1); transform-origin:left; }
.h4-nav-actions{ display:flex; align-items:center; gap:.7rem; }
.h4-icon-btn{ width:40px; height:40px; border-radius:50%; display:grid; place-items:center; color:var(--navy); transition:.3s var(--ease); }
.h4-icon-btn:hover{ background:var(--paper-2); transform:scale(1.08); }
.h4-burger{ width:44px; height:44px; border-radius:8px; display:none; flex-direction:column; align-items:center; justify-content:center; gap:5px; background:var(--navy); }
.h4-burger span{ width:20px; height:2px; background:#fff; border-radius:2px; transition:.3s var(--ease); }
.h4-burger.is-open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.h4-burger.is-open span:nth-child(2){ opacity:0; }
.h4-burger.is-open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.h4-mobile{ position:fixed; inset:112px 0 0 0; z-index:1150; background:var(--navy); transform:translateX(100%); transition:transform .45s var(--ease); overflow-y:auto; }
.h4-mobile.is-open{ transform:none; }
.h4-mobile-in{ padding:1.5rem 24px 3rem; display:flex; flex-direction:column; }
.h4-mobile-in>a{ padding:1.1rem 0; border-bottom:1px solid rgba(255,255,255,.12); color:#fff; font-family:var(--font-display); font-weight:700; font-size:1.3rem; text-transform:uppercase; }
.h4-mobile-cta{ display:grid; gap:.8rem; margin-top:1.6rem; }

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.h4-hero{ position:relative; height:100vh; min-height:560px; overflow:hidden; background:var(--navy); margin-top:112px; }
.h4-slide{ position:absolute; inset:0; opacity:0; visibility:hidden; transition:opacity .9s var(--ease), visibility .9s; }
.h4-slide.is-active{ opacity:1; visibility:visible; }
.h4-slide-img{ position:absolute; inset:0; background-size:cover; background-position:center; transform:scale(1.05); }
.h4-slide.is-active .h4-slide-img[data-kb]{ animation:h4ken 8s ease-out forwards; }
@keyframes h4ken{ from{ transform:scale(1.15); } to{ transform:scale(1); } }
.h4-slide-scrim{ position:absolute; inset:0; background:linear-gradient(90deg,rgba(8,15,35,.9) 0%,rgba(8,15,35,.55) 45%,rgba(8,15,35,.2) 100%),linear-gradient(0deg,rgba(8,15,35,.7),transparent 45%); }
.h4-slide-copy{ position:relative; z-index:2; height:100%; display:flex; flex-direction:column; justify-content:center; max-width:720px; }
.h4-kicker{ display:inline-flex; align-items:center; gap:.6em; align-self:flex-start; font-family:var(--font-display); font-weight:700; font-size:.8rem; letter-spacing:.16em; text-transform:uppercase; color:#fff; background:rgba(208,2,27,.9); padding:.5em 1em; border-radius:100px; margin-bottom:1.4rem; }
.h4-live{ width:8px; height:8px; border-radius:50%; background:#fff; box-shadow:0 0 0 0 rgba(255,255,255,.7); animation:h4pulse 1.8s infinite; }
@keyframes h4pulse{ 70%{ box-shadow:0 0 0 8px rgba(255,255,255,0); } 100%{ box-shadow:0 0 0 0 rgba(255,255,255,0); } }
.h4-slide-title{ font-family:var(--font-display); font-weight:900; font-size:clamp(2.2rem,6vw,4.6rem); line-height:1.02; text-transform:uppercase; color:#fff; letter-spacing:-.02em; }
.h4-slide-title em{ font-style:normal; color:var(--gold); }
.h4-slide-sub{ margin:1.4rem 0 2rem; font-size:clamp(1rem,1.4vw,1.2rem); color:#dfe3ee; max-width:52ch; }
.h4-slide.is-active .h4-kicker{ animation:h4up .7s var(--ease-out) both .2s; }
.h4-slide.is-active .h4-slide-title{ animation:h4up .8s var(--ease-out) both .32s; }
.h4-slide.is-active .h4-slide-sub{ animation:h4up .8s var(--ease-out) both .46s; }
.h4-slide.is-active .h4-slide-copy .h4-btn{ animation:h4up .8s var(--ease-out) both .6s; }
@keyframes h4up{ from{ opacity:0; transform:translateY(28px); } to{ opacity:1; transform:none; } }

.h4-hero-controls{ position:absolute; left:max(24px,calc((100% - var(--shell))/2 + 24px)); bottom:40px; z-index:5; display:flex; gap:.6rem; }
.h4-hero-dot{ width:38px; height:5px; border-radius:100px; background:rgba(255,255,255,.35); overflow:hidden; position:relative; }
.h4-hero-dot span{ position:absolute; inset:0; width:100%; background:#fff; transform:scaleX(0); transform-origin:left; }
.h4-hero-dot.is-active span{ animation:h4prog 6s linear forwards; }
@keyframes h4prog{ to{ transform:scaleX(1); } }

.h4-hero-next{ position:absolute; right:max(24px,calc((100% - var(--shell))/2 + 24px)); bottom:40px; z-index:5; display:flex; align-items:center; gap:.9rem; background:rgba(10,20,44,.7); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.18); border-radius:100px; padding:.5rem .6rem .5rem 1.1rem; color:#fff; transition:transform .3s var(--ease), background .3s; }
.h4-hero-next:hover{ transform:translateY(-3px); background:rgba(10,20,44,.9); }
.h4-hero-next-label{ font-family:var(--font-display); font-weight:700; font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:#aeb7cc; }
.h4-hero-next-card{ display:flex; align-items:center; gap:.6rem; }
.h4-hero-next-img{ width:42px; height:34px; border-radius:6px; background-size:cover; background-position:center; }
.h4-hero-next-txt{ font-size:.82rem; font-weight:600; max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.h4-hero-next-ring{ position:relative; width:40px; height:40px; display:grid; place-items:center; }
.h4-hero-next-ring svg:first-child{ position:absolute; inset:0; transform:rotate(-90deg); width:40px; height:40px; }
.h4-ring-bg{ fill:none; stroke:rgba(255,255,255,.2); stroke-width:2.5; }
.h4-ring-fg{ fill:none; stroke:var(--gold); stroke-width:2.5; stroke-dasharray:100.5; stroke-dashoffset:100.5; }
.h4-hero-next-ring .h4-ic{ width:1.1em; height:1.1em; }

/* ==========================================================================
   OUR COURSES
   ========================================================================== */
.h4-courses{ padding:clamp(3.5rem,6vw,6rem) 0 0; background:var(--paper); overflow:hidden; }
.h4-courses-head{ margin-bottom:2rem; }
.h4-courses-headrow{ display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.h4-courses-nav{ display:flex; gap:.6rem; }
.h4-courses-rail{ overflow-x:auto; overflow-y:hidden; scrollbar-width:none; -ms-overflow-style:none; scroll-snap-type:x mandatory; cursor:grab; padding-bottom:1rem; }
.h4-courses-rail::-webkit-scrollbar{ display:none; }
.h4-courses-rail.is-drag{ cursor:grabbing; scroll-snap-type:none; }
.h4-courses-track{ display:flex; gap:1rem; padding-inline:max(24px,calc((100% - var(--shell))/2)); width:max-content; }
.h4-course{ scroll-snap-align:start; position:relative; overflow:hidden; flex:0 0 288px; min-height:340px; border-radius:14px; padding:1.6rem; color:#fff; display:flex; flex-direction:column; background:linear-gradient(150deg,var(--c1),var(--c2)); box-shadow:var(--shadow-sm); transition:transform .45s var(--ease), box-shadow .45s var(--ease); isolation:isolate; }
.h4-course::before{ content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(120% 90% at 80% 10%, rgba(255,255,255,.28), transparent 55%); opacity:.7; animation:h4breathe 6s ease-in-out infinite; }
.h4-course::after{ content:""; position:absolute; top:-60%; left:-30%; width:60%; height:220%; z-index:1; background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent); transform:rotate(20deg) translateX(-60px); opacity:0; transition:opacity .2s; }
.h4-course:hover{ transform:translateY(-10px); box-shadow:var(--shadow-lg); }
.h4-course:hover::after{ opacity:1; animation:h4shine 1s var(--ease) forwards; }
@keyframes h4shine{ to{ transform:rotate(20deg) translateX(560px); } }
@keyframes h4breathe{ 50%{ transform:scale(1.12); opacity:1; } }
.h4-course-ic{ width:52px; height:52px; border-radius:12px; display:grid; place-items:center; background:rgba(255,255,255,.2); margin-bottom:auto; transition:transform .4s var(--ease), background .4s; }
.h4-course-ic .h4-ic{ width:1.5em; height:1.5em; }
.h4-course:hover .h4-course-ic{ transform:rotate(-8deg) scale(1.08); background:rgba(255,255,255,.32); }
.h4-course-top{ font-size:.74rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; opacity:.85; margin-top:1.2rem; }
.h4-course h3{ font-family:var(--font-display); font-weight:800; font-size:1.4rem; margin:.3rem 0 .6rem; text-transform:uppercase; letter-spacing:-.01em; }
.h4-course p{ font-size:.9rem; opacity:0; max-height:0; overflow:hidden; transition:opacity .4s var(--ease), max-height .4s var(--ease); }
.h4-course:hover p{ opacity:.95; max-height:120px; }
.h4-course-go{ display:inline-flex; align-items:center; gap:.5em; margin-top:1rem; font-family:var(--font-display); font-weight:700; font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; transform:translateY(4px); opacity:.9; transition:gap .3s; }
.h4-course:hover .h4-course-go{ gap:.9em; }

/* accreditation band */
.h4-accred{ margin-top:2.5rem; background:var(--navy); color:#fff; position:relative; overflow:hidden; }
.h4-accred::before{ content:""; position:absolute; inset:0; background:radial-gradient(60% 120% at 15% 0%, rgba(200,160,75,.28), transparent 60%); animation:h4breathe 9s ease-in-out infinite; }
.h4-accred-in{ position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:2rem; flex-wrap:wrap; padding:2.2rem 0; }
.h4-accred-kicker{ font-family:var(--font-display); font-weight:700; font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--gold); }
.h4-accred-title{ font-family:var(--font-display); font-weight:900; font-size:clamp(1.3rem,2.4vw,1.9rem); text-transform:uppercase; margin:.3rem 0; }
.h4-accred-sub{ font-size:.9rem; color:#c6cde0; max-width:44ch; }
.h4-accred-logos{ display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; }
.h4-accred-logo{ width:74px; height:74px; background:#fff; border-radius:12px; display:grid; place-items:center; padding:10px; transition:transform .35s var(--ease), box-shadow .35s; }
.h4-accred-logo:hover{ transform:translateY(-6px) scale(1.05); box-shadow:0 14px 30px -12px rgba(0,0,0,.5); }
.h4-accred-logo img{ max-width:100%; max-height:100%; object-fit:contain; }

/* ==========================================================================
   WHAT'S ON
   ========================================================================== */
.h4-whatson{ padding:clamp(3.5rem,6vw,6rem) 0; background:var(--paper-2); }
.h4-whatson .h4-vtitle{ margin-bottom:2.4rem; }
.h4-whatson-grid{ display:grid; grid-template-columns:1.15fr 1fr .95fr; gap:1.6rem; }
.h4-col-label{ font-family:var(--font-display); font-weight:700; font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin-bottom:1rem; }
.h4-col-label.light{ color:rgba(255,255,255,.8); margin:0; }
.h4-col-labelrow{ display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; }
.h4-col-labelrow .h4-col-label{ margin:0; }
.h4-tag{ display:inline-block; font-family:var(--font-display); font-weight:700; font-size:.66rem; letter-spacing:.1em; text-transform:uppercase; color:#fff; background:var(--red); padding:.35em .7em; border-radius:4px; margin-bottom:.7rem; }

.h4-news-feature{ display:block; background:#fff; border-radius:14px; overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .4s var(--ease), box-shadow .4s var(--ease); }
.h4-news-feature:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.h4-news-feature-img{ aspect-ratio:16/10; overflow:hidden; }
.h4-news-feature-img img{ width:100%; height:100%; object-fit:cover; transition:transform .7s var(--ease); }
.h4-news-feature:hover .h4-news-feature-img img{ transform:scale(1.07); }
.h4-news-feature-body{ padding:1.4rem 1.5rem 1.6rem; }
.h4-news-feature-body h3{ font-size:1.2rem; line-height:1.25; color:var(--navy); }
.h4-news-date{ display:flex; align-items:center; gap:.5em; font-size:.8rem; color:var(--muted); margin-top:.8rem; font-weight:500; }
.h4-news-date .h4-ic{ width:1em; height:1em; color:var(--red); }

.h4-news-row{ display:flex; gap:1rem; padding:1rem 0; border-top:1px solid var(--line); align-items:center; transition:padding-left .3s var(--ease); }
.h4-news-row:first-of-type{ border-top:0; }
.h4-news-row:hover{ padding-left:.5rem; }
.h4-news-row-img{ width:78px; height:64px; flex:none; border-radius:8px; overflow:hidden; }
.h4-news-row-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.h4-news-row:hover .h4-news-row-img img{ transform:scale(1.1); }
.h4-news-row h4{ font-size:.94rem; line-height:1.3; color:var(--navy); font-weight:700; transition:color .25s; }
.h4-news-row:hover h4{ color:var(--red); }
.h4-news-row .h4-news-date{ margin-top:.35rem; }

/* events panel */
.h4-events{ position:relative; overflow:hidden; background:var(--purple); color:#fff; border-radius:16px; padding:1.6rem 1.7rem; }
.h4-events-glow{ position:absolute; inset:0; background:radial-gradient(60% 60% at 90% 0%, rgba(200,160,75,.4), transparent 60%),radial-gradient(50% 60% at 0% 100%, rgba(208,2,27,.4), transparent 60%); animation:h4breathe 8s ease-in-out infinite; }
.h4-events>*{ position:relative; z-index:1; }
.h4-events-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:1.2rem; }
.h4-events-dates{ display:flex; gap:.5rem; margin-bottom:1.4rem; }
.h4-edate{ flex:1; text-align:center; padding:.7rem .2rem; border-radius:10px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.15); transition:.3s var(--ease); cursor:default; }
.h4-edate strong{ display:block; font-family:var(--font-display); font-weight:800; font-size:1.5rem; line-height:1; }
.h4-edate span{ font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; opacity:.85; }
.h4-edate.is-active,.h4-edate:hover{ background:var(--gold); color:var(--navy); border-color:var(--gold); transform:translateY(-3px); }
.h4-event-item{ padding:1rem 0; border-top:1px solid rgba(255,255,255,.15); }
.h4-event-time{ font-family:var(--font-display); font-weight:700; font-size:.74rem; letter-spacing:.06em; color:var(--gold); }
.h4-event-item h4{ font-size:1rem; margin:.3rem 0; }
.h4-event-desc{ font-size:.84rem; color:rgba(255,255,255,.82); }

/* ==========================================================================
   YOUR JOURNEY
   ========================================================================== */
.h4-journey{ position:relative; overflow:hidden; padding:clamp(4rem,7vw,7rem) 0; }
.h4-journey-fx{ position:absolute; inset:0; }
.h4-journey-fx span{ position:absolute; border-radius:50%; filter:blur(70px); opacity:.5; }
.h4-journey-fx span:nth-child(1){ width:38vw; height:38vw; left:-10vw; top:-10vw; background:radial-gradient(circle,#28407a,transparent 70%); animation:h4drift 20s ease-in-out infinite; }
.h4-journey-fx span:nth-child(2){ width:30vw; height:30vw; right:-8vw; bottom:-10vw; background:radial-gradient(circle,#7a1226,transparent 70%); animation:h4drift 24s ease-in-out infinite reverse; }
.h4-journey-fx span:nth-child(3){ width:24vw; height:24vw; left:40vw; top:30%; background:radial-gradient(circle,#a07322,transparent 70%); opacity:.35; animation:h4drift 28s ease-in-out infinite; }
@keyframes h4drift{ 50%{ transform:translate(6vw,4vw) scale(1.15); } }
.h4-journey-in{ position:relative; z-index:1; display:grid; grid-template-columns:1.1fr 1fr; gap:3rem; align-items:center; }
.h4-journey-title{ font-family:var(--font-display); font-weight:900; font-size:clamp(1.8rem,4vw,3rem); text-transform:uppercase; }
.h4-journey-title em{ font-style:normal; color:var(--gold); }
.h4-journey-stats{ display:flex; gap:2rem; margin-top:2rem; }
.h4-journey-stats strong{ display:block; font-family:var(--font-display); font-weight:900; font-size:clamp(1.8rem,3vw,2.6rem); color:#fff; }
.h4-journey-stats span{ font-size:.82rem; color:#9aa1b5; text-transform:uppercase; letter-spacing:.08em; }
.h4-journey-r p{ color:#c7ccdb; margin-bottom:1.2rem; font-size:1.02rem; }
.h4-journey-r .h4-btn{ margin-top:.6rem; }

/* ==========================================================================
   CAMPUS FACILITIES (interactive image reveal)
   ========================================================================== */
.h4-facilities{ position:relative; min-height:78vh; display:flex; align-items:center; overflow:hidden; color:#fff; background:#0a0a0c; padding:clamp(3rem,6vw,5rem) 0; }
.h4-fac-bg{ position:absolute; inset:0; z-index:0; }
.h4-fac-layer{ position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transform:scale(1.08); transition:opacity 1s var(--ease), transform 6s var(--ease); }
.h4-fac-layer.is-active{ opacity:1; transform:scale(1); }
.h4-fac-scrim{ position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgba(8,10,14,.92) 0%,rgba(8,10,14,.6) 50%,rgba(8,10,14,.35) 100%); }
.h4-fac-in{ position:relative; z-index:2; width:min(100% - 48px, var(--shell)) !important; }
.h4-fac-list{ margin-top:1.5rem; border-top:1px solid rgba(255,255,255,.18); }
.h4-fac-list li{ border-bottom:1px solid rgba(255,255,255,.18); }
.h4-fac-list a,.h4-fac-list .h4-fac-link{ display:flex; align-items:center; gap:1.2rem; padding:1.4rem 0; transition:padding-left .4s var(--ease); }
.h4-fac-list li:hover a,.h4-fac-list li.is-active a,.h4-fac-list li:hover .h4-fac-link,.h4-fac-list li.is-active .h4-fac-link{ padding-left:1.2rem; }
.h4-fac-idx{ font-family:var(--font-display); font-weight:700; font-size:.8rem; color:var(--gold); width:36px; }
/* Round list marker before each facility name (replaces the old 01-05 numbers). */
.h4-fac-list a::before,.h4-fac-list .h4-fac-link::before{ content:""; flex:none; width:10px; height:10px; margin-left:.3rem; border:1.5px solid var(--gold); border-radius:50%; transition:background .35s, box-shadow .35s, transform .35s var(--ease); }
.h4-fac-list li:hover a::before,.h4-fac-list li.is-active a::before,.h4-fac-list li:hover .h4-fac-link::before,.h4-fac-list li.is-active .h4-fac-link::before{ background:var(--gold); box-shadow:0 0 0 4px rgba(232,199,102,.18); transform:scale(1.15); }
.h4-fac-name{ font-family:var(--font-display); font-weight:600; font-size:clamp(1.4rem,3.4vw,2.0rem); text-transform:capitalize; color:rgba(255,255,255,.55); transition:color .35s, transform .35s var(--ease); }
.h4-fac-list li:hover .h4-fac-name,.h4-fac-list li.is-active .h4-fac-name{ color:#fff; }
.h4-fac-list .h4-ic{ margin-left:auto; width:1.6em; height:1.6em; opacity:0; transform:translateX(-10px); transition:.35s var(--ease); }
.h4-fac-list li:hover .h4-ic,.h4-fac-list li.is-active .h4-ic{ opacity:1; transform:none; color:var(--gold); }

/* ==========================================================================
   PLACEMENTS & PARTNERS
   ========================================================================== */
.h4-partners{ background:var(--navy); overflow-x:clip; }
.h4-partners-grid{ display:grid; grid-template-columns:1fr 1fr; }
.h4-partners-l{ background:var(--navy); position:relative; overflow:hidden; }
.h4-partners-l::before{ content:""; position:absolute; inset:0; background:radial-gradient(70% 80% at 10% 20%, rgba(200,160,75,.18), transparent 60%); animation:h4breathe 10s ease-in-out infinite; }
.h4-partners-r{ background:#0a0a0c; }
.h4-partners-pad{ position:relative; z-index:1; padding:clamp(2.6rem,4vw,4.2rem); color:#fff; }
.h4-partners-title{ font-family:var(--font-display); font-weight:900; font-size:clamp(1.7rem,3vw,2.6rem); text-transform:uppercase; line-height:1.05; margin-bottom:1.6rem; }
.h4-partners-title em{ font-style:normal; color:var(--gold); }
.h4-partners-stats{ display:flex; gap:1.6rem; flex-wrap:wrap; margin-bottom:1.2rem; }
.h4-partners-stats strong{ display:block; font-family:var(--font-display); font-weight:900; font-size:clamp(2rem,3.2vw,3rem); background:linear-gradient(120deg,#fff,var(--gold)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.h4-partners-stats p{ font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; color:#aeb7cc; }
.h4-partners-points{ display:grid; gap:.8rem; margin-bottom:1.2rem; }
.h4-partners-points li{ display:flex; align-items:flex-start; gap:.7em; font-size:.96rem; color:#dfe3ee; }
.h4-partners-points .h4-ic{ width:1.3em; height:1.3em; padding:.15em; border-radius:50%; background:var(--red); color:#fff; flex:none; }
.h4-partner-logos{ display:grid; grid-template-columns:repeat(3,1fr); gap:.8rem; }
.h4-plogo{ aspect-ratio:4/2; background:#fff; border-radius:10px; display:grid; place-items:center; padding:.8rem; transition:transform .35s var(--ease), box-shadow .35s; }
.h4-plogo img{ max-width:100%; max-height:48px; object-fit:contain; filter:grayscale(1); opacity:.75; transition:filter .35s, opacity .35s; }
.h4-plogo:hover{ transform:translateY(-5px) scale(1.04); box-shadow:0 16px 30px -14px rgba(0,0,0,.6); }
.h4-plogo:hover img{ filter:none; opacity:1; }

/* ==========================================================================
   STUDENT EXPERIENCE
   ========================================================================== */
.h4-experience{ background:#0a0a0c; color:#fff; padding:clamp(3.5rem,6vw,6rem) 0; }
.h4-exp-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:2rem; }
.h4-exp-grid{ display:grid; grid-template-columns:repeat(3,1fr); grid-auto-rows:260px; gap:1.1rem; }
.h4-exp-tile{ position:relative; overflow:hidden; border-radius:16px; display:flex; align-items:flex-end; }
.h4-exp-lg{ grid-row:span 2; grid-column:span 1; }
.h4-exp-tile img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .8s var(--ease), filter .8s; }
.h4-exp-tile::after{ content:""; position:absolute; inset:0; background:linear-gradient(transparent 30%,rgba(6,8,14,.9)); }
.h4-exp-tile:hover img{ transform:scale(1.09); filter:saturate(1.2); }
.h4-exp-body{ position:relative; z-index:1; padding:1.5rem; width:100%; }
.h4-exp-ic{ width:44px; height:44px; border-radius:11px; display:grid; place-items:center; background:rgba(255,255,255,.16); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); margin-bottom:.8rem; transition:transform .4s var(--ease), background .4s; }
.h4-exp-ic .h4-ic{ width:1.35em; height:1.35em; }
.h4-exp-tile:hover .h4-exp-ic{ transform:rotate(-8deg) scale(1.08); background:var(--red); }
.h4-exp-body h3{ font-family:var(--font-display); font-weight:800; font-size:1.35rem; text-transform:uppercase; }
.h4-exp-lg .h4-exp-body h3{ font-size:1.8rem; }
.h4-exp-body p{ font-size:.9rem; color:rgba(255,255,255,.82); margin-top:.5rem; max-width:34ch; opacity:0; max-height:0; overflow:hidden; transition:opacity .4s, max-height .4s; }
.h4-exp-tile:hover .h4-exp-body p{ opacity:1; max-height:80px; }
.h4-exp-go{ display:inline-flex; align-items:center; gap:.4em; margin-top:.8rem; font-family:var(--font-display); font-weight:700; font-size:.76rem; text-transform:uppercase; letter-spacing:.06em; color:var(--gold); transform:translateY(6px); opacity:0; transition:.4s var(--ease); }
.h4-exp-tile:hover .h4-exp-go{ transform:none; opacity:1; }

/* ==========================================================================
   VOICES MARQUEE
   ========================================================================== */
.h4-voices{ background:var(--paper); padding:clamp(3.5rem,6vw,5rem) 0; overflow:hidden; }
.h4-voices-head{ margin-bottom:2rem; }
.h4-voices-marquee{ overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); }
.h4-voices-track{ display:flex; gap:1.4rem; width:max-content; animation:h4marq 40s linear infinite; }
.h4-voices-marquee:hover .h4-voices-track{ animation-play-state:paused; }
.h4-voice{ flex:0 0 380px; margin:0; background:var(--paper-2); border:1px solid var(--line); border-radius:16px; padding:1.8rem; transition:transform .35s var(--ease), box-shadow .35s; }
.h4-voice:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.h4-voice-q{ width:40px; height:40px; color:var(--red); opacity:.25; }
.h4-voice blockquote{ margin:.6rem 0 1.2rem; font-family:var(--font-display); font-weight:600; font-size:1.2rem; line-height:1.4; color:var(--navy); }
.h4-voice figcaption{ display:flex; align-items:center; gap:.8rem; }
.h4-voice figcaption img{ width:48px; height:48px; border-radius:50%; object-fit:cover; }
.h4-voice figcaption span{ display:flex; flex-direction:column; font-size:.82rem; color:var(--muted); }
.h4-voice figcaption strong{ font-family:var(--font-display); color:var(--ink); font-size:.95rem; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.h4-cta{ position:relative; overflow:hidden; background:linear-gradient(120deg,var(--red),var(--red-2)); color:#fff; padding:clamp(3.5rem,6vw,6rem) 0; text-align:center; }
.h4-cta-fx{ position:absolute; inset:0; background:radial-gradient(50% 120% at 20% 0%, rgba(255,255,255,.25), transparent 55%),radial-gradient(50% 120% at 90% 100%, rgba(200,160,75,.35), transparent 55%); animation:h4breathe 9s ease-in-out infinite; }
.h4-cta-in{ position:relative; z-index:1; }
.h4-cta h2{ font-family:var(--font-display); font-weight:900; font-size:clamp(2rem,5vw,3.6rem); text-transform:uppercase; letter-spacing:-.01em; }
.h4-cta p{ margin:1rem auto 2rem; max-width:52ch; font-size:1.05rem; color:rgba(255,255,255,.92); }
.h4-cta-btns{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.h4-cta .h4-btn-red{ background:#fff; color:var(--red); }
.h4-cta .h4-btn-red::before{ background:var(--navy); }
.h4-cta .h4-btn-red:hover{ color:#fff; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.h4-footer{ background:#08080a; color:#9aa1b5; padding:clamp(3rem,5vw,4.5rem) 0 2rem; }
.h4-footer-top{ display:grid; grid-template-columns:1.4fr 1fr; gap:2.5rem; padding-bottom:2.5rem; border-bottom:1px solid rgba(255,255,255,.1); }
.h4-footer-brand img{ height:52px; filter:brightness(0) invert(1); margin-bottom:1.4rem; }
.h4-footer-brand address{ font-style:normal; display:grid; gap:.55rem; font-size:.9rem; }
.h4-footer-brand address p{ display:flex; align-items:center; gap:.6em; }
.h4-footer-brand .h4-ic{ color:var(--gold); width:1em; height:1em; }
.h4-footer-brand a:hover{ color:#fff; }
.h4-footer-links h4{ color:#fff; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom:1.1rem; }
.h4-footer-links a{ display:block; font-size:.92rem; padding:.35em 0; transition:color .25s, transform .25s; }
.h4-footer-links a:hover{ color:#fff; transform:translateX(5px); }
.h4-footer-social{ display:flex; gap:.7rem; justify-content:center; padding:2rem 0; }
.h4-footer-social a{ width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.08); transition:.3s var(--ease); }
.h4-footer-social a:hover{ background:var(--red); color:#fff; transform:translateY(-4px); }
.h4-footer-social .h4-ic{ width:1.1em; height:1.1em; }
.h4-footer-legal{ text-align:center; font-size:.82rem; display:grid; gap:.4rem; }
.h4-footer-legal a:hover{ color:#fff; }

/* ---------- back to top + cookie ---------- */
.h4-totop{ position:fixed; right:24px; bottom:24px; z-index:900; width:48px; height:48px; border-radius:50%; background:var(--red); color:#fff; display:grid; place-items:center; box-shadow:var(--shadow); opacity:0; visibility:hidden; transform:translateY(14px); transition:.35s var(--ease); }
.h4-totop.is-show{ opacity:1; visibility:visible; transform:none; }
.h4-totop:hover{ transform:translateY(-4px); background:var(--red-2); }
.h4-cookie{ position:fixed; left:16px; right:16px; bottom:16px; z-index:1500; display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; background:var(--navy); color:#fff; padding:1rem 1.4rem; border-radius:12px; box-shadow:var(--shadow-lg); transform:translateY(140%); transition:transform .5s var(--ease); }
.h4-cookie.is-show{ transform:none; }
.h4-cookie p{ font-size:.86rem; }
.h4-cookie a{ color:var(--gold); text-decoration:underline; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:1080px){
  .h4-menu{ display:none; }
  .h4-burger{ display:flex; }
  .h4-util-links a:not(.h4-util-call){ display:none; }
  .h4-whatson-grid{ grid-template-columns:1fr 1fr; }
  .h4-events{ grid-column:span 2; }
  .h4-journey-in{ grid-template-columns:1fr; gap:2rem; }
  .h4-partner-logos{ grid-template-columns:repeat(3,1fr); }
}

@media (min-width:2060px){
.h4-partner-logos{ grid-template-columns:repeat(4,1fr); }
}
@media (max-width:760px){
  .h4-hide-sm{ display:none !important; }
  .h4-hero{ height:88vh; }
  .h4-hero-next-txt{ display:none; }
  .h4-whatson-grid{ grid-template-columns:1fr; }
  .h4-events{ grid-column:auto; }
  .h4-partners-grid{ grid-template-columns:1fr; }
  .h4-exp-grid{ grid-template-columns:1fr 1fr; grid-auto-rows:200px; }
  .h4-exp-lg{ grid-column:span 2; grid-row:span 1; }
  .h4-footer-top{ grid-template-columns:1fr; }
  .h4-accred-in{ justify-content:flex-start; }
}
@media (max-width:520px){
  .h4-wrap{ width:min(100% - 32px, var(--shell)); }
  .h4-hero-next-label{ display:none; }
  .h4-journey-stats{ gap:1.2rem; }
  .h4-exp-grid{ grid-template-columns:1fr; grid-auto-rows:240px; }
  .h4-exp-lg{ grid-column:auto; }
  .h4-partner-logos{ grid-template-columns:repeat(3,1fr); gap:.5rem; }
  .h4-voice{ flex-basis:280px; }
  .h4-cookie{ flex-direction:column; align-items:stretch; text-align:center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  [data-reveal]{ opacity:1 !important; transform:none !important; transition:none !important; animation:none !important; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; }
  .h4-course p,.h4-exp-body p{ opacity:1; max-height:none; }
}
