/* AFSEI V7: approved compact multicolour design; scoped to public website. */
body.nb-site:not(.nb-branch-site) .nb-header .nb-top{background:linear-gradient(100deg,#570b14,var(--af-primary))!important}
body.nb-site:not(.nb-branch-site) .nb-header .nb-nav{background:linear-gradient(100deg,var(--af-dark),#173653)!important;border-bottom:2px solid var(--af-accent)!important}
body.nb-site:not(.nb-branch-site) .nb-header .nb-brandrow{background:#fffdf8!important}
body.nb-site:not(.nb-branch-site) .nb-header .nb-brand strong{color:var(--af-primary)!important}
body.nb-site:not(.nb-branch-site) .nb-footer{background:var(--af-dark)!important;border-top:3px solid var(--af-accent)!important}
body.nb-site:not(.nb-branch-site) .af7home{--h45-max:1800px;--h45-gutter:clamp(10px,1.3vw,24px);--h45-pad:14px;--h45-gap:12px;background:#f6f4ef!important;color:var(--af-dark)}
body.nb-site .af7home .h40band{padding:0!important;margin:0!important;background:transparent!important}
body.nb-site .af7home .h45rail{width:100%!important;max-width:1800px!important;margin:0 auto!important;padding:0 clamp(10px,1.3vw,24px)!important;box-sizing:border-box!important}
body.nb-site .af7home .h45rail > .h37wrap:not(.h37stats):not(.af4-feature),body.nb-site .af7home .h45rail > section.nb-catalog.nb-wrap{width:100%!important;max-width:none!important;margin:12px 0!important;padding:14px!important;border-radius:12px!important;background:linear-gradient(120deg,#fff,#fcf8ef)!important;box-shadow:0 3px 12px #18263812!important;border:1px solid #e5ddd0!important}
body.nb-site .af7home .h37head{margin:0 0 12px!important;text-align:left!important}
body.nb-site .af7home .h37head h2,body.nb-site .af7home .nb-cat-head h2,body.nb-site .af7home .h37wrap>h2{font-size:clamp(20px,1.65vw,29px)!important;margin:0 0 5px!important;line-height:1.22!important;letter-spacing:0!important;color:var(--af-primary)!important}
body.nb-site .af7home .h37head p{margin:0!important;font-size:14px!important;line-height:1.4!important}
body.nb-site .af7home .h40-banner{padding:10px clamp(10px,1.3vw,24px) 0!important}
body.nb-site .af7home .hni-cms-banner{border-radius:12px!important;overflow:hidden!important;box-shadow:0 4px 16px #14243b24!important}
/* Colour accents on cards, with accessible dark text and saturated buttons. */
body.nb-site .af7home :is(.h37tile,.af5-learning-card,.nb-courses article){--cardbg:#fff1d7;--cardink:#853b08;--cardborder:#e9d0a5}
body.nb-site .af7home :is(.h37tile,.af5-learning-card,.nb-courses article):nth-child(6n+2){--cardbg:#e4f3fa;--cardink:#075779;--cardborder:#b9dce9}
body.nb-site .af7home :is(.h37tile,.af5-learning-card,.nb-courses article):nth-child(6n+3){--cardbg:#fce7e2;--cardink:#8c242c;--cardborder:#efc8bf}
body.nb-site .af7home :is(.h37tile,.af5-learning-card,.nb-courses article):nth-child(6n+4){--cardbg:#e1f3ec;--cardink:#086359;--cardborder:#b8dfcf}
body.nb-site .af7home :is(.h37tile,.af5-learning-card,.nb-courses article):nth-child(6n+5){--cardbg:#f1e7fa;--cardink:#65408a;--cardborder:#ddc9ef}
body.nb-site .af7home :is(.h37tile,.af5-learning-card,.nb-courses article):nth-child(6n+6){--cardbg:#fff0dd;--cardink:#91480b;--cardborder:#efd2ac}
body.nb-site .af7home .h37tile,body.nb-site .af7home .af5-learning-card,body.nb-site .af7home .nb-catalog .nb-courses article{background:linear-gradient(160deg,var(--cardbg),#fffdf9)!important;border:1px solid var(--cardborder)!important;border-radius:10px!important;box-shadow:0 3px 8px #15243b0d!important}
body.nb-site .af7home .h37tile i{color:var(--cardink)!important;background:var(--cardbg)!important}
body.nb-site .af7home .h37tile b{color:var(--af-dark)!important}
body.nb-site .af7home .h37grid.services{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:9px!important}
body.nb-site .af7home .h40-services .h37wrap{display:grid!important;grid-template-columns:220px minmax(0,1fr);gap:12px;align-items:stretch}
body.nb-site .af7home .h40-services .h37head{background:linear-gradient(120deg,#5e1019,var(--af-primary));border-radius:9px;padding:18px;margin:0!important;display:flex;flex-direction:column;justify-content:center}
body.nb-site .af7home .h40-services .h37head :is(h2,p){color:#fff!important}
body.nb-site .af7home .h37grid.services .h37tile{min-height:83px!important;padding:8px!important;gap:4px!important;font-size:13px!important}
body.nb-site .af7home .h37grid.services .h37tile i{width:34px!important;height:34px!important;font-size:20px!important}
body.nb-site .af7home .h45rail>.h37stats{margin:12px 0!important;padding:10px!important;border-radius:10px!important}
body.nb-site .af7home .h37split{grid-template-columns:minmax(0, .85fr) minmax(0,1.65fr)!important;gap:20px!important}
body.nb-site .af7home .h37split>img{grid-column:1;grid-row:1;aspect-ratio:16/9!important;border-radius:9px!important}
body.nb-site .af7home .h41aboutcopy{grid-column:2;grid-row:1}
body.nb-site .af7home .h41aboutcopy p{font-size:15px!important;line-height:1.6!important}
body.nb-site .af7home .h40eight{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:9px!important}
body.nb-site .af7home .h40eight .h37tile{min-height:78px!important;padding:10px!important}
body.nb-site .af7home .h40why .h37grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
body.nb-site .af7home .h40why .h37tile{min-height:90px!important;padding:12px!important}
body.nb-site .af7home .nb-cat-head{background:linear-gradient(100deg,#651018,var(--af-primary));border-radius:8px;padding:12px 15px;align-items:center!important;margin-bottom:12px}
body.nb-site .af7home .nb-cat-head :is(h2,p){color:white!important;margin:0!important}
body.nb-site .af7home .nb-cat-head>a.nb-btn{background:var(--af-accent)!important;color:#251a0d!important}
body.nb-site .af7home .nb-catalog .nb-courses{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
body.nb-site .af7home .nb-catalog .nb-courses article{padding:8px!important;align-items:stretch!important}
body.nb-site .af7home .nb-catalog .nb-courses article[hidden]{display:none!important}
body.nb-site .af7home .nb-catalog .nb-courses img{aspect-ratio:16/9!important;margin:0 0 8px!important;border-radius:7px!important}
body.nb-site .af7home .nb-catalog .nb-courses h3{font-size:15px!important;min-height:2.7em!important;line-height:1.35!important;margin:0 0 7px!important}
body.nb-site .af7home .nb-catalog .nb-courses .nb-btn{background:var(--cardink)!important;color:white!important;padding:8px!important;border-radius:20px!important}
body.nb-site .af7home .nb-course-cat{color:var(--cardink)!important;background:var(--cardbg)!important}
body.nb-site .af7home .nb-cat-filters button{padding:6px 10px!important;font-size:12px!important}
body.nb-site .af7home .af5-learning-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}
body.nb-site .af7home .af5-learning-card img{aspect-ratio:16/10!important}
body.nb-site .af7home .af5-learning-card b{background:var(--cardink)!important;color:#fff!important;min-height:42px!important;padding:9px!important;font-size:13px!important}
body.nb-site .af7home .h40process .h37tile{min-height:70px!important;padding:10px!important}
body.nb-site .af7home .h45rail>.af4-feature{margin:12px 0!important;padding:18px!important;border-radius:12px!important;gap:20px!important}
body.nb-site .af7home .h45rail>.af4-careers{background:linear-gradient(110deg,#e1f3ec,#fff9ed)!important;border-color:#badbd0!important}
body.nb-site .af7home .af4-feature figure img{aspect-ratio:16/8!important;border-radius:8px!important}
body.nb-site .af7home .af4-feature h2{font-size:clamp(23px,2vw,32px)!important}
body.nb-site .af7home .af7faq>h2{background:#07565c!important;color:white!important;border-radius:8px;padding:12px 15px;margin-bottom:10px!important}
body.nb-site .af7home .h42faq details{padding:10px 14px!important;margin-bottom:7px!important;background:#fffdf7!important}
body.nb-site .af7home .h40contactgrid{grid-template-columns:minmax(240px,.8fr) minmax(0,1.8fr)!important;gap:14px!important}
body.nb-site .af7home .h40contactinfo{background:linear-gradient(130deg,#68131d,var(--af-primary))!important;color:white!important;border-radius:10px!important;padding:20px!important}
body.nb-site .af7home .h40contactinfo :is(h3,p,a,i){color:white!important}
body.nb-site .af7home .h37form{padding:14px!important;border-radius:10px!important}
body.nb-site .af7home a:focus-visible,body.nb-site .af7home button:focus-visible{outline:3px solid #087d9d!important;outline-offset:3px}
@media(max-width:1200px){body.nb-site .af7home .h40-services .h37wrap{grid-template-columns:1fr}body.nb-site .af7home .nb-catalog .nb-courses{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:900px){body.nb-site .af7home .h37grid.services{grid-template-columns:repeat(4,minmax(0,1fr))!important}body.nb-site .af7home .nb-catalog .nb-courses,body.nb-site .af7home .af5-learning-grid,body.nb-site .af7home .h40eight{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:620px){body.nb-site .af7home .h37grid.services,body.nb-site .af7home .nb-catalog .nb-courses,body.nb-site .af7home .af5-learning-grid,body.nb-site .af7home .h40eight,body.nb-site .af7home .h40why .h37grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.nb-site .af7home .h37split,body.nb-site .af7home .h40contactgrid,body.nb-site .af7home .h45rail>.af4-feature{grid-template-columns:1fr!important}body.nb-site .af7home .h37split>img,body.nb-site .af7home .h41aboutcopy{grid-column:auto;grid-row:auto}body.nb-site .af7home .h37split>img{order:-1}body.nb-site .af7home .nb-cat-head{padding:10px!important}body.nb-site .af7home .nb-catalog .nb-courses h3{font-size:13px!important}}
@media print{body.nb-site .af7home{print-color-adjust:exact;-webkit-print-color-adjust:exact}body.nb-site .af7home .h37wrap{break-inside:avoid}}
/* V8: compact reference-led horizontal modules. Keep all original PHP links and forms. */
body.nb-site .af8home{--h45-gutter:12px;--h45-gap:8px;background:#f6f3ec!important}
body.nb-site .af8home .h45rail{padding:0 12px!important;max-width:1920px!important}
body.nb-site .af8home .h45rail > .h37wrap:not(.h37stats):not(.af4-feature),body.nb-site .af8home .h45rail > section.nb-catalog.nb-wrap{margin:8px 0!important;padding:10px!important;border-radius:10px!important;background:linear-gradient(120deg,#fff,#faf5e9)!important;border:1px solid #ddd5c7!important;box-shadow:0 2px 5px #30201412!important}
body.nb-site .af8home .h40-banner{padding:8px 12px 0!important}
body.nb-site .af8home .hni-cms-banner{min-height:0!important;height:auto!important;max-height:none!important}
body.nb-site .af8home .hni-cms-banner .hni-image-only:not([hidden]){display:block!important;min-height:0!important;height:auto!important;max-height:none!important}
body.nb-site .af8home .hni-cms-banner .hni-image-only>img{height:auto!important;max-height:none!important;position:static!important;object-fit:contain!important;display:block!important}
body.nb-site .af8home .hni-cms-banner .nbv-slide[hidden]{display:none!important}
body.nb-site .af8home .h40-services .h37wrap,body.nb-site .af8home .h40why,body.nb-site .af8home .h40learning,body.nb-site .af8home .h40process{display:grid!important;grid-template-columns:minmax(160px,18%) minmax(0,1fr);align-items:stretch!important;gap:10px!important}
body.nb-site .af8home :is(.h40-services .h37head,.h40why .h37head,.h40learning .h37head,.h40process>h2){margin:0!important;padding:16px 22px 16px 14px!important;background:linear-gradient(115deg,#650812,#a31625)!important;color:#fff!important;border-radius:8px 0 0 8px!important;display:flex;flex-direction:column;justify-content:center;clip-path:polygon(0 0,100% 0,94% 100%,0 100%);font-family:Georgia,serif;font-weight:700}
body.nb-site .af8home :is(.h40-services .h37head,.h40why .h37head,.h40learning .h37head) :is(h2,p,small){color:#fff!important}
body.nb-site .af8home :is(.h40-services .h37head,.h40why .h37head,.h40learning .h37head) h2{font-family:Georgia,serif!important;font-size:clamp(19px,1.7vw,27px)!important}
body.nb-site .af8home .h37grid.services{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:7px!important}
body.nb-site .af8home .h37grid.services .h37tile{min-height:72px!important;padding:7px!important;border-radius:8px!important}
body.nb-site .af8home .h37grid.services .h37tile i{background:transparent!important;font-size:23px!important;height:26px!important}
body.nb-site .af8home .h37grid.services .h37tile b{font-size:12px!important;line-height:1.22!important}
body.nb-site .af8home .h37split{grid-template-columns:minmax(0,34fr) minmax(0,66fr)!important;gap:16px!important}
body.nb-site .af8home .h37split>img{aspect-ratio:2/1!important;max-height:240px!important;object-fit:cover!important}
body.nb-site .af8home .h41aboutcopy h2{font-family:Georgia,serif!important;color:var(--af-primary)!important;font-size:clamp(21px,2vw,30px)!important}
body.nb-site .af8home .af8-about-points{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px;font-weight:700;font-size:12px;color:var(--af-dark)}
body.nb-site .af8home .af8-about-points i{color:#a14a0a;margin-right:4px}
body.nb-site .af8home .nb-cat-head{padding:8px 12px!important;margin:0 0 8px!important;border-radius:7px!important;background:linear-gradient(100deg,#680811,#a31625)!important}
body.nb-site .af8home .nb-cat-head>div{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
body.nb-site .af8home .nb-cat-head h2{font-family:Georgia,serif!important;font-size:clamp(20px,1.7vw,27px)!important}
body.nb-site .af8home .nb-cat-head p{font-size:12px!important}
body.nb-site .af8home .nb-catalog .nb-courses{gap:8px!important}
body.nb-site .af8home .nb-catalog .nb-courses article{padding:6px!important;text-align:left!important;box-shadow:0 2px 4px #1a1a1a15!important}
body.nb-site .af8home .nb-catalog .nb-courses img{height:auto!important;aspect-ratio:2.3/1!important;object-fit:cover!important}
body.nb-site .af8home .nb-catalog .nb-courses h3{min-height:2.6em!important;font-size:clamp(13px,1.08vw,17px)!important;color:var(--af-dark)!important}
body.nb-site .af8home .nb-catalog .nb-courses .nb-btn{align-self:center!important;width:auto!important;min-width:65%;padding:6px 12px!important}
body.nb-site .af8home .nb-cat-meta{justify-content:flex-start!important;margin-bottom:6px!important}
body.nb-site .af8home .h40why .h37grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.nb-site .af8home .h40why .h37tile{min-height:70px!important;padding:7px!important}
body.nb-site .af8home .h40process .h37grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
body.nb-site .af8home .h40process .h37tile{background:#fae9e1!important;border-color:#efd8c9!important;min-height:64px!important}
body.nb-site .af8home .af5-learning-card img{aspect-ratio:1.8/1!important;height:auto!important;object-fit:cover!important}
body.nb-site .af8home .af5-learning-card b{min-height:36px!important;font-size:12px!important;padding:6px!important}
body.nb-site .af8home .h45rail>.af4-feature{margin:8px 0!important;padding:12px!important;gap:16px!important;border-radius:10px!important}
body.nb-site .af8home .af4-feature figure img{aspect-ratio:2.8/1!important;object-fit:cover!important}
body.nb-site .af8home .h40contactinfo :is(h3,p,a,i){color:#fff!important}
body.nb-site .af8home .h40contactinfo .h37btn{background:#ffc34b!important;color:#301b14!important}
body.nb-site .af8home .h37form{gap:8px!important;padding:10px!important}
body.nb-site .af8home .h37form :is(input:not([type=checkbox]),select,textarea){padding:7px 9px!important}
body.nb-site .af8home .h42faq{grid-template-columns:1fr!important}.af8home .h42faqart{display:none!important}
body.nb-site .af8home .af7faq>h2{padding:8px 12px!important;font-family:Georgia,serif!important}
@media(max-width:1000px){body.nb-site .af8home :is(.h40-services .h37wrap,.h40why,.h40learning,.h40process){grid-template-columns:1fr!important}body.nb-site .af8home :is(.h40-services .h37head,.h40why .h37head,.h40learning .h37head,.h40process>h2){clip-path:none;border-radius:8px!important;padding:10px!important}body.nb-site .af8home .h37grid.services{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:620px){body.nb-site .af8home .h45rail{padding:0 8px!important}body.nb-site .af8home .h37grid.services,body.nb-site .af8home .h40why .h37grid,body.nb-site .af8home .h40process .h37grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.nb-site .af8home .h37split{grid-template-columns:1fr!important}body.nb-site .af8home .af8-hero>img{min-height:0!important}}
@media print{body.nb-site .af8home .hni-cms-banner{display:block!important;visibility:visible!important;opacity:1!important}body.nb-site .af8home .hni-cms-banner .nbv-slide:not([hidden]){display:block!important;visibility:visible!important;opacity:1!important}}
/* Header typography from approved concept. Main campus only. */
body.nb-site:not(.nb-branch-site) .nb-header .af8-brand-name,body.nb-site:not(.nb-branch-site) .nb-header .af8-brand-sub{display:block;font-family:Georgia,'Times New Roman',serif;font-weight:900;line-height:1.06;letter-spacing:-.02em}
body.nb-site:not(.nb-branch-site) .nb-header .af8-brand-name{color:var(--af-primary);font-size:clamp(23px,2.7vw,42px)}
body.nb-site:not(.nb-branch-site) .nb-header .af8-brand-sub{color:var(--af-dark);font-size:clamp(14px,1.45vw,24px)}
body.nb-site:not(.nb-branch-site) .nb-header .nb-brand img{object-fit:contain!important}
body.nb-site:not(.nb-branch-site) .nb-header .nb-board-parent{display:inline-block!important;background:#fff0c5;color:#62410a!important;border-radius:14px;padding:3px 8px!important;font-weight:700}
@media(min-width:1200px){body.nb-site:not(.nb-branch-site) .nb-header .nb-brand img{width:104px!important;height:104px!important;max-height:104px!important}body.nb-site:not(.nb-branch-site) .nb-header .nb-brandrow{gap:12px!important;padding-block:8px!important}}
@media(max-width:620px){body.nb-site:not(.nb-branch-site) .nb-header .af8-brand-name{font-size:22px}body.nb-site:not(.nb-branch-site) .nb-header .af8-brand-sub{font-size:12px}}
/* V8.1: explicit contrast for the homepage enquiry panel. Higher specificity
   than the legacy .h45home contact rules, without affecting form fields. */
body.nb-site .af7home.af8home .h40contactgrid > aside.h40contactinfo {
  background:linear-gradient(135deg,#650812,#8c242c)!important;
  color:#fff!important;
  padding:clamp(18px,2vw,32px)!important;
  border:1px solid #8c242c!important;
  border-radius:12px!important;
  display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px!important;
}
body.nb-site .af7home.af8home .h40contactgrid > aside.h40contactinfo :is(h3,p,a:not(.h37btn),span,b,strong,small){color:#fff!important;opacity:1!important;-webkit-text-fill-color:#fff!important}
body.nb-site .af7home.af8home .h40contactgrid > aside.h40contactinfo h3{font-weight:800!important;font-size:clamp(22px,2vw,30px)!important;margin:0!important;line-height:1.2!important}
body.nb-site .af7home.af8home .h40contactgrid > aside.h40contactinfo p{margin:0!important;line-height:1.6!important}
body.nb-site .af7home.af8home .h40contactgrid > aside.h40contactinfo p:empty{display:none!important}
body.nb-site .af7home.af8home .h40contactgrid > aside.h40contactinfo i{color:#ffc34b!important;-webkit-text-fill-color:#ffc34b!important;font-size:30px!important}
body.nb-site .af7home.af8home .h40contactgrid > aside.h40contactinfo a.h37btn{background:#ffc34b!important;color:#301b14!important;-webkit-text-fill-color:#301b14!important;font-weight:800!important;box-shadow:none!important}
body.nb-site .af7home.af8home .h40contactgrid > aside.h40contactinfo a:not(.h37btn){text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
body.nb-site .af7home.af8home .h40contactgrid > aside.h40contactinfo a:focus-visible{outline:3px solid #ffc34b!important;outline-offset:3px}
body.nb-site .af7home.af8home .h40contactgrid > form.h37form{background:#fff!important;color:#10243b!important;padding:clamp(14px,1.5vw,24px)!important;border-radius:12px!important;min-width:0;gap:12px!important}
body.nb-site .af7home.af8home .h40contactgrid > form.h37form label{color:#10243b!important}
body.nb-site .af7home.af8home .h40contactgrid > form.h37form :is(input:not([type=checkbox]),textarea,select){background:#fff!important;color:#10243b!important;border:1px solid #d8cfc5!important;border-radius:8px!important;min-width:0}
body.nb-site .af7home.af8home .h40contactgrid > form.h37form :is(input,textarea,select):focus-visible{outline:2px solid #8c242c!important;outline-offset:2px}
@media(max-width:760px){body.nb-site .af7home.af8home .h40contactgrid{grid-template-columns:minmax(0,1fr)!important}body.nb-site .af7home.af8home .h40contactgrid > form.h37form{grid-template-columns:minmax(0,1fr)!important}}

/* V8.2: stable slider frame, no vertical jump between slides. */
body.nb-site .af8home .hni-cms-banner{position:relative!important;aspect-ratio: 16/7!important;height:auto!important;min-height:0!important;max-height:none!important;background:#10243b!important;overflow:hidden!important}
body.nb-site .af8home .hni-cms-banner .nbv-slide:not([hidden]){position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important}
body.nb-site .af8home .hni-cms-banner .nbv-slide>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;max-height:none!important}
body.nb-site .af8home .hni-cms-banner .hni-art-link{display:none!important} /* Letterboxing changes baked button coordinates; use real links below. */
body.nb-site .af8home .af82-banner-actions{position:absolute;bottom:12px;left:12px;z-index:6;display:flex;gap:8px;flex-wrap:wrap}
body.nb-site .af8home .af82-banner-actions a{background:#800b16;color:white!important;border:1px solid #ffc34b;padding:6px 12px;border-radius:6px;font-size:clamp(10px,1vw,15px);text-decoration:none}
@media(max-width:600px){body.nb-site .af8home .hni-cms-banner{aspect-ratio:16/10!important}.af82-banner-actions{bottom:4px!important}}
@media print{body.nb-site .af8home .hni-cms-banner{break-inside:avoid}}
