/* Shared design for the subject course pages (Health & Social Care, Business,
   Computing, Construction, Accounting & Finance, Psychology). */
.hw-card{background:#fff;border-radius:18px;box-shadow:0 24px 64px rgba(0,0,0,.35);overflow:hidden;position:relative}
.hw-card.has-scroll::after{content:"";position:absolute;left:0;right:0;bottom:0;height:28px;background:linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.96));pointer-events:none}
.hw-head-white{padding:26px 26px 0}
.hw-head-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.hw-head-row h3{font:800 20px/26px Inter;color:var(--navy-0);margin:0}
.hw-step-badge{font:600 13px/18px Inter;color:var(--slate-400);white-space:nowrap}
.hw-progress{height:6px;background:var(--slate-200);border-radius:999px;overflow:hidden}
.hw-progress-bar{height:100%;background:linear-gradient(90deg,var(--gold) 0%,var(--gold-2) 100%);border-radius:999px;transition:width .3s ease}
.hw-body{padding:26px;max-height:480px;overflow-y:auto;box-sizing:border-box;overflow-anchor:none;scrollbar-width:thin;scrollbar-color:var(--slate-300) transparent}
.hw-body::-webkit-scrollbar{width:7px}
.hw-body::-webkit-scrollbar-track{background:transparent}
.hw-body::-webkit-scrollbar-thumb{background:var(--slate-300);border-radius:999px}
.hw-step-label{font:700 12px/16px Inter;color:var(--slate-400);text-align:right;margin-bottom:4px}
.hw-step h4{font:800 20px/26px Inter;color:var(--navy-0);margin:0 0 6px}
.hw-step>p{font:400 13px/18px 'Open Sans';color:var(--slate-500);margin:0 0 18px}
.hw-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}
.hw-opt{padding:13px 12px;border:1.5px solid var(--slate-200);border-radius:10px;background:#fff;font:600 13px/18px Inter;color:var(--navy-0);text-align:left;cursor:pointer;transition:border-color .2s,background .2s}
.hw-opt:hover{border-color:var(--gold)}
.hw-opt.hw-active{border-color:var(--gold);background:#FFFBEF}
.hw-nav{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hw-btn{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border-radius:999px;font:700 13px/18px Inter;border:none;cursor:pointer;transition:background .2s,opacity .2s}
.hw-continue{background:var(--navy-0);color:#fff;margin-left:auto}
.hw-continue:disabled{opacity:1;background:#fff;color:var(--slate-400);border:1px solid var(--slate-300);cursor:not-allowed}
.hw-continue:not(:disabled):hover{background:var(--navy-1)}
.hw-continue-full{width:100%;justify-content:center;margin-left:0;border-radius:10px;padding:14px 18px;font-size:14px}
.hw-back{background:var(--slate-100);color:var(--navy-0)}
.hw-back:hover{background:var(--slate-200)}
.hw-field{margin-bottom:14px}
.hw-field label{display:block;font:700 12px/16px Inter;color:var(--navy-0);margin-bottom:6px}
.hw-field input,.hw-field select{width:100%;padding:12px 14px;border:1.5px solid var(--slate-200);border-radius:10px;font:500 14px/20px 'Open Sans';color:var(--navy-0);box-sizing:border-box;background:#fff}
.hw-field input:focus,.hw-field select:focus{outline:none;border-color:var(--gold)}
.hw-footnote{display:flex;align-items:center;justify-content:center;gap:6px;font:400 12px/18px 'Open Sans';color:var(--slate-500);margin-top:14px}
.hw-iframe-crop{border-radius:8px;position:relative}
.hw-sub{font:400 13px/19px 'Open Sans';color:var(--slate-500);margin:0 0 4px;padding-bottom:16px;border-bottom:1px solid var(--slate-200)}
.hw-head-row{margin-bottom:6px}
.hw-card .hw-body{padding:8px 14px 0}
.hw-card>.hw-footnote{margin:0;padding:12px 20px 16px;border-top:1px solid var(--slate-100)}
.hw-card.has-scroll::after{bottom:45px}
@media(max-width:1024px){
  .hw-card{margin-top:28px;max-width:480px}
}

/* FAQ sidebar + animated accordion */
.hsc-faq-layout{display:grid;grid-template-columns:320px 1fr;gap:48px;align-items:start;max-width:1140px;margin:0 auto}
.hsc-faq-sidebar{position:sticky;top:120px}
.hsc-faq-whatsapp{margin-top:24px;background:#fff;border:1px solid var(--slate-200);border-radius:16px;padding:22px;box-shadow:0 10px 30px rgba(10,19,48,.06)}
.hsc-faq-whatsapp strong{display:block;font:800 15px/20px Inter;color:var(--navy-0)}
.hsc-faq-whatsapp span{display:block;font:400 13px/18px 'Open Sans';color:var(--slate-500);margin-top:4px}
.hsc-faq-whatsapp .btn-whatsapp{margin-top:14px;width:100%;justify-content:center;transition:transform .25s,box-shadow .25s}
.hsc-faq-whatsapp .btn-whatsapp:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(31,157,85,.3)}
.hsc-faq-list{display:flex;flex-direction:column;gap:14px}
#faqs .faq-item{position:relative;background:#fff;border:1px solid var(--slate-200);border-radius:16px;overflow:hidden;box-shadow:0 2px 8px rgba(10,19,48,.04);transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s,border-color .3s}
#faqs .hsc-faq-list.js-reveal .faq-item{opacity:0;transform:translateY(18px)}
#faqs .faq-item::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,var(--gold) 0%,var(--gold-2) 100%);transform:scaleY(0);transform-origin:top;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
#faqs .hsc-faq-list.is-visible .faq-item{opacity:1;transform:none;transition:opacity .5s ease,transform .5s cubic-bezier(.2,.8,.2,1),box-shadow .3s,border-color .3s}
#faqs .hsc-faq-list.is-visible .faq-item:nth-child(2){transition-delay:.06s}
#faqs .hsc-faq-list.is-visible .faq-item:nth-child(3){transition-delay:.12s}
#faqs .hsc-faq-list.is-visible .faq-item:nth-child(4){transition-delay:.18s}
#faqs .hsc-faq-list.is-visible .faq-item:nth-child(5){transition-delay:.24s}
#faqs .hsc-faq-list.is-visible .faq-item:nth-child(6){transition-delay:.3s}
#faqs .hsc-faq-list.is-visible .faq-item:nth-child(7){transition-delay:.36s}
#faqs .hsc-faq-list.is-visible .faq-item:nth-child(8){transition-delay:.42s}
#faqs .hsc-faq-list .faq-item:hover,#faqs .hsc-faq-list.is-visible .faq-item:hover{border-color:rgba(232,183,0,.55);box-shadow:0 14px 34px rgba(10,19,48,.10);transform:translateY(-2px);transition-delay:0s}
#faqs .faq-item:hover::before,#faqs .faq-item.open::before{transform:scaleY(1)}
#faqs .faq-item.open{border-color:var(--gold);box-shadow:0 18px 40px rgba(10,19,48,.12)}
#faqs .faq-q{display:flex;align-items:center;gap:16px;width:100%;padding:20px 22px;background:transparent;border:none;text-align:left;cursor:pointer}
#faqs .faq-q:hover,#faqs .faq-item.open .faq-q{background:transparent}
#faqs .faq-q:focus-visible{outline:2px solid var(--gold);outline-offset:-2px;border-radius:16px}
#faqs .hsc-faq-num{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:var(--slate-50);border:1px solid var(--slate-200);font:800 13px/1 Inter;color:var(--navy-1);transition:background .3s,color .3s,border-color .3s,transform .3s}
#faqs .faq-item:hover .hsc-faq-num{transform:scale(1.06)}
#faqs .faq-item.open .hsc-faq-num{background:var(--navy-0);border-color:var(--navy-0);color:var(--gold-2)}
#faqs .hsc-faq-text{flex:1;font:700 16px/24px Inter;color:var(--navy-0);transition:color .25s}
#faqs .faq-item:hover .hsc-faq-text{color:var(--navy-1)}
#faqs .hsc-faq-icon{position:relative;flex-shrink:0;width:34px;height:34px;border-radius:999px;background:#FFF8DD;transition:background .3s,transform .4s cubic-bezier(.2,.8,.2,1)}
.hsc-faq-icon::before,.hsc-faq-icon::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:2px;margin:-1px 0 0 -6px;border-radius:2px;background:var(--navy-0);transition:transform .4s cubic-bezier(.2,.8,.2,1),background .3s}
.hsc-faq-icon::after{transform:rotate(90deg)}
#faqs .faq-item:hover .hsc-faq-icon{background:var(--gold)}
#faqs .faq-item.open .hsc-faq-icon{background:var(--gold);transform:rotate(180deg)}
#faqs .faq-item.open .hsc-faq-icon::after{transform:rotate(0deg)}
#faqs .faq-a{padding:0;border-top:0;display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s cubic-bezier(.2,.8,.2,1)}
#faqs .faq-item.open .faq-a{display:grid;grid-template-rows:1fr}
#faqs .faq-a-inner{overflow:hidden;min-height:0}
#faqs .faq-a p{margin:0;padding:0 22px 22px 76px;font:400 15px/25px 'Open Sans';color:var(--slate-600);opacity:0;transform:translateY(-6px);transition:opacity .3s ease,transform .35s ease}
#faqs .faq-item.open .faq-a p{opacity:1;transform:none;transition-delay:.12s}
@media(max-width:960px){.hsc-faq-layout{grid-template-columns:1fr;gap:28px}.hsc-faq-sidebar{position:static}}
@media(max-width:600px){#faqs .faq-q{padding:16px;gap:12px}.hsc-faq-num{width:32px;height:32px;border-radius:10px;font-size:12px}.hsc-faq-text{font-size:15px;line-height:22px}#faqs .faq-a p{padding:0 16px 18px 16px}}
@media(prefers-reduced-motion:reduce){#faqs .faq-item,#faqs .faq-a,#faqs .faq-a p,.hsc-faq-icon,.hsc-faq-icon::before,.hsc-faq-icon::after{transition:none!important}#faqs .faq-item{opacity:1;transform:none}}


/* Apply in four steps: stats + animated step timeline */
#why-aec{position:relative;overflow:hidden;background:linear-gradient(180deg,#fff 0%,var(--ivory) 100%) !important}
#why-aec::before{content:"";position:absolute;width:520px;height:520px;right:-180px;top:-200px;border-radius:50%;background:radial-gradient(circle,rgba(245,200,66,.16) 0%,rgba(245,200,66,0) 70%);pointer-events:none}
#why-aec .container{position:relative}
.hsc-why-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;max-width:1100px;margin:36px auto 0}
.hsc-why-stat{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--slate-200);border-radius:16px;padding:18px 20px;box-shadow:0 4px 16px rgba(10,19,48,.05);transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s,border-color .3s}
.hsc-why-stat:hover{transform:translateY(-4px);border-color:rgba(230,184,0,.6);box-shadow:0 16px 34px rgba(10,19,48,.1)}
.hsc-why-stat-icon{flex-shrink:0;width:46px;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--navy-0);color:var(--gold-2);font-size:18px;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.hsc-why-stat:hover .hsc-why-stat-icon{transform:rotate(-8deg) scale(1.08)}
.hsc-why-stat strong{display:block;font:800 28px/34px Inter;color:var(--navy-0);font-variant-numeric:tabular-nums}
.hsc-why-stat div>span{display:block;font:500 13px/18px 'Open Sans';color:var(--slate-500)}
.hsc-steps-grid{position:relative;list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin:56px auto 0;max-width:1100px;counter-reset:none}
.hsc-steps-line{position:absolute;left:12.5%;right:12.5%;top:47px;height:3px;border-radius:3px;background:var(--slate-200);z-index:0}
.hsc-steps-line span{display:block;height:100%;width:0;border-radius:3px;background:linear-gradient(90deg,var(--gold) 0%,var(--gold-2) 100%);transition:width 1.4s cubic-bezier(.4,0,.2,1) .2s}
.hsc-steps-grid.is-visible .hsc-steps-line span{width:100%}
.hsc-steps-card{position:relative;z-index:1;background:#fff;border:1px solid var(--slate-200);border-radius:20px;padding:24px 22px 22px;text-align:left;box-shadow:0 6px 20px rgba(10,19,48,.06);overflow:hidden;transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s,border-color .35s,background .35s}
.hsc-steps-card::after{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,var(--gold) 0%,var(--gold-2) 100%);transform:scaleX(0);transform-origin:left;transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.hsc-steps-grid.js-reveal .hsc-steps-card{opacity:0;transform:translateY(28px)}
.hsc-steps-grid.js-reveal.is-visible .hsc-steps-card{opacity:1;transform:none;transition:opacity .6s ease calc(var(--i) * .15s + .1s),transform .6s cubic-bezier(.2,.8,.2,1) calc(var(--i) * .15s + .1s),box-shadow .35s,border-color .35s,background .35s}
.hsc-steps-grid .hsc-steps-card:hover,.hsc-steps-grid.js-reveal.is-visible .hsc-steps-card:hover{transform:translateY(-8px);border-color:transparent;background:var(--navy-0);box-shadow:0 24px 48px rgba(10,19,48,.28);transition-delay:0s}
.hsc-steps-card:hover::after{transform:scaleX(1)}
.hsc-steps-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.hsc-steps-num{position:relative;width:46px;height:46px;border-radius:50%;background:#fff;border:3px solid var(--gold);display:flex;align-items:center;justify-content:center;font:800 17px/1 Inter;color:var(--navy-0);box-shadow:0 0 0 6px #fff;transition:background .35s,color .35s,box-shadow .35s,transform .35s}
.hsc-steps-num::before{content:"";position:absolute;inset:-9px;border-radius:50%;border:2px solid rgba(230,184,0,.45);opacity:0}
.hsc-steps-grid.is-visible .hsc-steps-num::before{animation:hscPulse 2.4s ease-out calc(var(--i) * .35s + 1s) infinite}
@keyframes hscPulse{0%{transform:scale(.85);opacity:.9}70%,100%{transform:scale(1.35);opacity:0}}
.hsc-steps-card:hover .hsc-steps-num{background:var(--gold);color:var(--navy-0);box-shadow:0 0 0 6px rgba(255,255,255,.08);transform:scale(1.08)}
.hsc-steps-bignum{font:800 44px/1 Inter;letter-spacing:-1px;color:transparent;-webkit-text-stroke:1.5px var(--slate-200);transition:-webkit-text-stroke-color .35s,transform .35s}
.hsc-steps-card:hover .hsc-steps-bignum{-webkit-text-stroke-color:rgba(245,200,66,.55);transform:translateX(-4px)}
.hsc-steps-icon{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#FFF8DD;color:var(--navy-0);font-size:20px;margin-bottom:16px;transition:background .35s,color .35s,transform .45s cubic-bezier(.34,1.56,.64,1)}
.hsc-steps-card:hover .hsc-steps-icon{background:rgba(255,255,255,.1);color:var(--gold-2);transform:translateY(-3px) rotate(-6deg) scale(1.06)}
.hsc-steps-card h4{font:800 18px/24px Inter;color:var(--navy-0);margin:0 0 8px;transition:color .35s}
.hsc-steps-card p{font:400 14px/21px 'Open Sans';color:var(--slate-500);margin:0 0 18px;transition:color .35s}
.hsc-steps-card:hover h4{color:#fff}
.hsc-steps-card:hover p{color:rgba(255,255,255,.72)}
.hsc-steps-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;background:var(--slate-50);border:1px solid var(--slate-200);font:700 12px/16px Inter;color:var(--navy-1);transition:background .35s,color .35s,border-color .35s}
.hsc-steps-chip i{color:var(--gold);font-size:11px}
.hsc-steps-card:hover .hsc-steps-chip{background:rgba(245,200,66,.14);border-color:rgba(245,200,66,.35);color:var(--gold-2)}
.hsc-steps-cta{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:40px}
.hsc-steps-cta-main{transition:transform .25s,box-shadow .25s}
.hsc-steps-cta-main:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(230,184,0,.35)}
.hsc-steps-call{display:inline-flex;align-items:center;gap:10px;padding:0 22px;height:52px;border-radius:10px;background:#fff;border:1.5px solid var(--slate-200);color:var(--navy-0);font:700 15px/20px 'Open Sans';text-decoration:none;transition:background .25s,color .25s,border-color .25s,transform .25s,box-shadow .25s}
.hsc-steps-call i{color:var(--gold);transition:transform .3s}
.hsc-steps-call:hover{background:var(--navy-0);border-color:var(--navy-0);color:#fff;transform:translateY(-2px);box-shadow:0 12px 26px rgba(10,19,48,.2)}
.hsc-steps-call:hover i{animation:hscRing .6s ease}
@keyframes hscRing{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-15deg)}40%,80%{transform:rotate(15deg)}}
@media(max-width:1024px){.hsc-why-stats{grid-template-columns:repeat(2,1fr)}.hsc-steps-grid{grid-template-columns:repeat(2,1fr)}.hsc-steps-line{display:none}}
@media(max-width:374px){.hsc-why-stats{grid-template-columns:1fr}}
@media(max-width:560px){.hsc-why-stats{gap:12px}.hsc-why-stat{padding:14px;gap:10px}.hsc-why-stat-icon{width:38px;height:38px;font-size:15px}.hsc-why-stat strong{font-size:22px;line-height:28px}.hsc-steps-grid{grid-template-columns:1fr;gap:16px;margin-top:40px}.hsc-steps-cta a{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.hsc-steps-grid.js-reveal .hsc-steps-card{opacity:1;transform:none}.hsc-steps-line span{transition:none}.hsc-steps-grid.is-visible .hsc-steps-num::before{animation:none}}

/* Course option filter pills + cards */
.hsc-filter-pills{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:28px}
.hsc-filter-pill{padding:9px 18px;border-radius:999px;border:1.5px solid var(--slate-200);background:#fff;font:700 13px/18px Inter;color:var(--navy-0);cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.hsc-filter-pill.is-active{background:var(--navy-0);border-color:var(--navy-0);color:#fff}
.hsc-course-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:32px}
.hsc-course-card{background:#fff;border:1px solid var(--slate-200);border-radius:14px;overflow:hidden;transition:transform .25s,box-shadow .25s}
.hsc-course-card:hover{transform:translateY(-4px);box-shadow:0 20px 48px rgba(10,19,48,.12)}
.hsc-course-banner{position:relative;height:120px;display:flex;flex-direction:column;justify-content:space-between;padding:16px}
.hsc-course-banner>i{color:#fff;font-size:22px}
.hsc-course-tag{display:inline-block;align-self:flex-start;padding:4px 12px;border-radius:999px;background:var(--gold);font:700 11px/16px Inter;color:var(--navy-0)}
.hsc-course-card .pc-body{padding-top:18px}
.hsc-course-media{aspect-ratio:1200/444;background:var(--navy-0);overflow:hidden}
.hsc-course-media img{display:block;width:100%;height:100%;object-fit:contain}
.hsc-course-noalevel{font:700 12px/18px Inter;color:#1F9D55;margin:8px 0 0}
.hsc-course-best{font:400 13px/19px 'Open Sans';color:var(--slate-600);margin:10px 0 0}
.hsc-course-best strong{color:var(--navy-0)}
@media(max-width:1024px){.hsc-course-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.hsc-course-grid{grid-template-columns:1fr}}

/* Entry requirements info panel + outline whatsapp button */
.hsc-entry-info{display:grid;grid-template-columns:1fr 1fr;gap:24px;background:#fff;border-radius:14px;padding:24px;border:1px solid var(--slate-200)}
.hsc-entry-info strong{display:block;font:800 14px/20px Inter;color:var(--navy-0);margin-bottom:6px}
.hsc-entry-info p{margin:0;font:400 14px/20px 'Open Sans';color:var(--slate-500)}
.hsc-btn-whatsapp-outline{display:inline-flex;align-items:center;padding:13px 24px;border-radius:999px;background:#fff;border:1.5px solid #1F9D55;color:#1F9D55;font:700 14px/20px Inter;text-decoration:none}
@media(max-width:700px){.hsc-entry-info{grid-template-columns:1fr}}

/* Gold CTA band */
.hsc-gold-cta{background:var(--gold);border-radius:20px;padding:36px 40px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.hsc-gold-cta h2{font:800 26px/32px Inter;color:var(--navy-0);margin:0 0 8px}
.hsc-gold-cta p{font:400 15px/22px 'Open Sans';color:rgba(10,19,48,.8);margin:0;max-width:480px}
.hsc-gold-cta-actions{display:flex;gap:14px;flex-wrap:wrap}
.hsc-gold-btn-dark{display:inline-flex;align-items:center;padding:13px 24px;border-radius:999px;background:var(--navy-0);color:#fff;font:700 14px/20px Inter;text-decoration:none}
.hsc-gold-btn-outline{display:inline-flex;align-items:center;padding:13px 24px;border-radius:999px;background:transparent;border:1.5px solid var(--navy-0);color:var(--navy-0);font:700 14px/20px Inter;text-decoration:none}
@media(max-width:700px){.hsc-gold-cta{flex-direction:column;align-items:flex-start}}

/* Curriculum two-column layout */
.hsc-curriculum-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:48px;align-items:start}
.hsc-curriculum-note{background:var(--slate-50);border-radius:10px;padding:14px 16px;font:400 13px/19px 'Open Sans';color:var(--slate-600);margin-top:20px}
.hsc-btn-outline-navy{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:999px;background:#fff;border:1.5px solid var(--navy-0);color:var(--navy-0);font:700 14px/20px Inter;text-decoration:none}
.hsc-curriculum-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.hsc-curriculum-card{background:#fff;border:1px solid var(--slate-200);border-radius:12px;padding:18px}
.hsc-curriculum-card h4{font:800 15px/20px Inter;color:var(--navy-0);margin:0 0 6px}
.hsc-curriculum-card p{font:400 13px/19px 'Open Sans';color:var(--slate-500);margin:0}
.hsc-curriculum-cards--3{grid-template-columns:repeat(3,1fr)}
@media(max-width:860px){.hsc-curriculum-grid{grid-template-columns:1fr}.hsc-curriculum-cards--3{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.hsc-curriculum-cards{grid-template-columns:1fr}}

/* Study route cards */
.hsc-routes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;margin-top:40px;align-items:stretch}
.hsc-route-card{display:flex;flex-direction:column}
.hsc-route-card .hsc-route-btn{margin-top:auto}
.hsc-route-card{position:relative;background:#fff;border:1px solid var(--slate-200);border-radius:16px;padding:28px;box-shadow:0 4px 20px rgba(10,19,48,.06);transition:background .35s ease,border-color .35s ease,box-shadow .35s ease,transform .35s cubic-bezier(.2,.8,.2,1)}
.hsc-route-card h3{font:800 24px/30px Inter;color:var(--navy-0);margin:0 0 10px}
.hsc-route-label{font:700 12px/16px Inter;letter-spacing:.06em;text-transform:uppercase;color:var(--slate-500);margin-bottom:6px}
.hsc-route-desc{font:400 14px/20px 'Open Sans';color:var(--slate-500);margin:0 0 18px}
.hsc-route-table{border-radius:10px;overflow:hidden;margin-bottom:20px;border:1px solid var(--slate-200)}
.hsc-route-row{display:flex;justify-content:space-between;padding:10px 14px;font:700 13px/18px Inter;color:var(--navy-0);border-bottom:1px solid var(--slate-200)}
.hsc-route-row:last-child{border-bottom:none}
.hsc-route-total span:last-child{color:var(--navy-1)}
.hsc-route-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px 18px;border-radius:999px;font:700 14px/20px Inter;text-decoration:none;box-sizing:border-box}
.hsc-route-btn-outline{background:#fff;border:1.5px solid var(--navy-0);color:var(--navy-0)}
.hsc-route-btn-gold{background:var(--gold);border:1.5px solid var(--gold);color:var(--navy-0)}
.hsc-route-card h3,.hsc-route-label,.hsc-route-desc,.hsc-route-row,.hsc-route-total span:last-child{transition:color .35s ease,border-color .35s ease}
.hsc-route-table{transition:border-color .35s ease}
.hsc-route-btn{transition:background .35s ease,border-color .35s ease,color .35s ease}
.hsc-route-card:hover{background:var(--navy-0);border-color:var(--navy-0);box-shadow:0 18px 40px rgba(10,19,48,.25);transform:translateY(-6px)}
.hsc-route-card:hover h3{color:#fff}
.hsc-route-card:hover .hsc-route-label{color:var(--gold-2)}
.hsc-route-card:hover .hsc-route-desc{color:rgba(255,255,255,.7)}
.hsc-route-card:hover .hsc-route-table{border-color:rgba(255,255,255,.15)}
.hsc-route-card:hover .hsc-route-row{color:#fff;border-bottom-color:rgba(255,255,255,.15)}
.hsc-route-card:hover .hsc-route-total span:last-child{color:var(--gold-2)}
.hsc-route-card:hover .hsc-route-btn{background:var(--gold);border-color:var(--gold);color:var(--navy-0)}
.hsc-route-badge{position:absolute;top:-12px;right:24px;background:var(--gold);color:var(--navy-0);font:800 11px/16px Inter;padding:4px 12px;border-radius:999px}

/* Study topic icon cards */
.hsc-study-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin:28px 0}
.hsc-study-card{background:#fff;border:1px solid var(--slate-200);border-radius:14px;padding:22px;box-shadow:0 4px 16px rgba(10,19,48,.05)}
.hsc-study-icon{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,var(--gold) 0%,var(--gold-2) 100%);display:flex;align-items:center;justify-content:center;color:#fff;font-size:17px;margin-bottom:14px}
.hsc-study-card h4{font:800 15px/20px Inter;color:var(--navy-0);margin:0 0 6px}
.hsc-study-card p{font:400 13px/19px 'Open Sans';color:var(--slate-500);margin:0}

/* Hero trust stats */
.hsc-hero-stats{display:flex;gap:28px;margin-top:26px;padding-top:22px;border-top:1px solid rgba(255,255,255,.15)}
.hsc-hero-stats strong{display:block;font:800 22px/28px Inter;color:#fff}
.hsc-hero-stats span{display:block;font:500 12px/16px 'Open Sans';color:rgba(255,255,255,.65);margin-top:2px}
@media(max-width:480px){.hsc-hero-stats{gap:18px;flex-wrap:wrap}}

/* At-a-glance header + fact boxes */
.hsc-glance-header{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;margin-bottom:28px}
.hsc-glance-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.hsc-glance-box{background:var(--slate-50);border:1px solid var(--slate-200);border-radius:14px;padding:20px}
.hsc-glance-label{display:block;font:700 11px/16px Inter;letter-spacing:.05em;text-transform:uppercase;color:var(--slate-500);margin-bottom:6px}
.hsc-glance-box strong{display:block;font:800 16px/22px Inter;color:var(--navy-0)}
.hsc-glance-entry{margin-top:16px}
.hsc-glance-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px 24px;background:#fff;border:1px solid var(--slate-200);border-radius:14px;margin-top:16px}
.hsc-glance-cta>span{font:400 14px/20px 'Open Sans';color:var(--slate-600)}
.hsc-glance-cta>span strong{color:var(--navy-0)}
.hsc-glance-whatsapp{font:700 13px/18px Inter;color:#1F9D55;text-decoration:underline}
@media(max-width:860px){.hsc-glance-header{grid-template-columns:1fr}}
@media(max-width:700px){.hsc-glance-row{grid-template-columns:repeat(2,1fr)}}

/* Funding split layout */
.hsc-btn-guide{display:inline-flex;align-items:center;gap:10px;padding:12px 22px;border-radius:999px;background:var(--navy-0);border:1.5px solid var(--navy-0);color:#fff;font:700 14px/20px Inter;text-decoration:none;box-shadow:0 8px 20px rgba(10,19,48,.18);transition:background .25s,color .25s,box-shadow .25s,transform .25s}
.hsc-btn-guide i{color:var(--gold-2);transition:color .25s,transform .25s}
.hsc-btn-guide:hover{background:#fff;color:var(--navy-0);transform:translateY(-2px);box-shadow:0 12px 26px rgba(10,19,48,.16)}
.hsc-btn-guide:hover i{color:var(--navy-0)}
.hsc-btn-guide:hover .hsc-btn-guide-arrow{transform:translateX(4px)}
.hsc-funding-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.hsc-funding-card{background:var(--navy-0);border-radius:16px;overflow:hidden}
.hsc-funding-row{display:flex;justify-content:space-between;gap:12px;padding:14px 22px;font:400 14px/20px 'Open Sans';color:rgba(255,255,255,.85);border-bottom:1px solid rgba(255,255,255,.1)}
.hsc-funding-row:last-child{border-bottom:none}
.hsc-funding-row span:last-child{font-weight:700;color:var(--gold-2);white-space:nowrap}
.hsc-funding-head{background:rgba(255,255,255,.08);font:700 12px/16px Inter;letter-spacing:.04em;text-transform:uppercase;color:var(--gold-2)}
.hsc-funding-head span{color:var(--gold-2) !important}
@media(max-width:900px){.hsc-funding-grid{grid-template-columns:1fr}}

/* Careers section (dark) */
.hsc-careers-header{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;margin-bottom:32px}
.hsc-career-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.hsc-career-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:20px}
.hsc-career-card h4{font:800 15px/20px Inter;color:#fff;margin:0 0 6px}
.hsc-career-card p{font:400 13px/19px 'Open Sans';color:rgba(255,255,255,.6);margin:0 0 14px}
.hsc-career-card strong{display:block;font:800 16px/22px Inter;color:var(--gold-2)}
.hsc-careers-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:24px}
.hsc-careers-foot p{margin:0;font:400 13px/18px 'Open Sans';color:rgba(255,255,255,.45)}
.hsc-careers-foot p a{color:rgba(255,255,255,.6);text-decoration:underline}
@media(max-width:900px){.hsc-careers-header{grid-template-columns:1fr;gap:12px}.hsc-careers-header p{margin-top:0!important}.hsc-career-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.hsc-career-grid{grid-template-columns:1fr}}
/* ── Typography matched to the home page ─────────────────────── */
.page-hero h1.courses-hero-title{font:700 50px/62px Inter}
.courses-hero-copy{font-size:17px;line-height:28px}
.hero-chip{font:600 13px/20px 'Open Sans'}
.hsc-count,.hsc-why-stat strong{font:800 32px/36px Inter}
.course-cta-panel h2,.hsc-gold-cta h2{font:700 36px/44px Inter}
.hw-head-row h3{font-weight:700}
.hsc-route-card h3{font:700 17px/26px Inter}
.hsc-steps-card h4,.pc-body h4,.hsc-curriculum-card h4,.hsc-career-card h4,.hsc-faq-whatsapp strong{font:700 16px/24px Inter}
.hsc-glance-box strong,.hsc-career-card strong{font-weight:700}
#faqs .hsc-faq-text{font:500 15px/22.5px Inter}
.hsc-route-btn,.hsc-gold-btn-dark,.hsc-gold-btn-outline,.hsc-btn-outline-navy,.hsc-btn-guide,.hsc-btn-whatsapp-outline{font:700 15px/20px 'Open Sans';border-radius:10px;padding:15px 24px}

/* "On this page" links: wrap instead of hiding off-screen on phones */
.hsc-onpage-links{display:flex;gap:22px;white-space:nowrap;font:600 13px/18px Inter}
@media(max-width:768px){
  .hsc-onpage{overflow-x:visible!important}
  .hsc-onpage-links{flex-wrap:wrap;justify-content:center;gap:8px}
  .hsc-onpage-links a{padding:7px 12px;border:1px solid var(--slate-200);border-radius:999px;background:#fff}
}

@media(max-width:768px){
  .page-hero h1.courses-hero-title{font-size:32px;line-height:44px}
  .course-cta-panel h2,.hsc-gold-cta h2{font-size:28px;line-height:36px}
  .hsc-count,.hsc-why-stat strong{font-size:26px;line-height:36px}
}

/* ── Mobile: every call-to-action button the same size, centred ── */
@media(max-width:600px){
  section a.btn-primary,section a.btn-whatsapp,section a.btn-ghost-dark,section a.hsc-steps-call,
  section a.hsc-route-btn,section a.hsc-gold-btn-dark,section a.hsc-gold-btn-outline,
  section a.hsc-btn-outline-navy,section a.hsc-btn-guide,section a.hsc-btn-whatsapp-outline{
    display:flex!important;align-items:center;justify-content:center;gap:8px;
    width:100%!important;max-width:100%;min-height:52px;height:auto;box-sizing:border-box;
    margin-left:0!important;margin-right:0!important;padding:14px 20px!important;
    border-radius:10px!important;font:700 15px/20px 'Open Sans'!important;text-align:center;white-space:normal
  }
  .hsc-gold-cta-actions,.course-cta-actions,.courses-hero-actions,.hsc-steps-cta,.hsc-careers-foot,.hsc-glance-cta{flex-direction:column;align-items:stretch;width:100%}
}

/* -- Extra pieces used by the other subject pages (same HSC look) -- */
body.subject-page .hw-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:480px){body.subject-page .hw-row{grid-template-columns:1fr}}
body.subject-page .hw-head-white .hw-progress{margin-top:14px}

/* Course cards: real photos fill the frame; keep the course-type tag */
body.subject-page .hsc-course-grid{display:flex;flex-wrap:wrap;justify-content:center}
body.subject-page .hsc-course-grid > .hsc-course-card{flex:0 1 calc(25% - 15px);min-width:250px}
body.subject-page .hsc-course-media{position:relative}
body.subject-page .hsc-course-media img{object-fit:cover}
body.subject-page .hsc-course-media--empty{display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:32px}

/* Two study routes: centre them instead of stretching */
.hsc-routes-grid--2{max-width:820px;margin-left:auto;margin-right:auto}

/* Gold CTA strip eyebrow */
.hsc-gold-cta-eyebrow{font:700 11px/11px 'DM Sans';letter-spacing:.14em;text-transform:uppercase;color:var(--navy-0);opacity:.7;margin-bottom:10px}
.hsc-gold-cta-eyebrow:empty{display:none}

/* Topic cards (What You'll Study) */
.hsc-topic-cards .hsc-curriculum-card{display:flex;align-items:center;gap:12px}
.hsc-topic-cards .hsc-curriculum-card h4{margin:0}
.hsc-topic-icon{flex-shrink:0;width:34px;height:34px;border-radius:10px;background:#FFF8DD;color:var(--navy-0);display:flex;align-items:center;justify-content:center;font-size:13px}

/* Progression (text-only study route) */
.hsc-text-split{margin-bottom:0}

/* Course families: text left, cards right */
.hsc-families .hsc-family{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:40px;align-items:start;padding:36px 0;border-bottom:1px solid var(--slate-200)}
.hsc-families .hsc-family:first-of-type{padding-top:0}
.hsc-families .hsc-family:last-child{border-bottom:0;padding-bottom:0}
.hsc-family-title{font:700 26px/34px Inter;color:var(--navy-0);margin:0 0 12px}
.hsc-family-text .copy-16{margin:0 0 12px}
.hsc-family-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}
.hsc-family-cards .pc-foot{flex-wrap:wrap;gap:8px}
.hsc-family-cards:empty{display:none}
.hsc-families .hsc-family:has(.hsc-family-cards:empty){grid-template-columns:minmax(0,1fr);max-width:760px}
.hsc-anchor{display:block;position:relative;top:-90px}
@media(max-width:900px){.hsc-families .hsc-family{grid-template-columns:1fr;gap:20px}}

/* Careers prose under the cards */
.hsc-careers-more{color:rgba(255,255,255,.75)!important;margin:24px 0 0;max-width:900px}
.hsc-careers-dark .hsc-careers-foot p a{color:rgba(255,255,255,.75)}

/* Steps heading inside the Why AEC section */
.hsc-steps-head{margin-top:56px}

/* -- Animations: hero entrance + staggered scroll reveals -- */
@keyframes saUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes saGlow{0%,100%{text-shadow:0 0 0 rgba(230,184,0,0)}50%{text-shadow:0 0 22px rgba(230,184,0,.35)}}
body.subject-page .page-hero .eyebrow,body.subject-page .page-hero h1,body.subject-page .page-hero .courses-hero-copy,
body.subject-page .page-hero .hero-chip,body.subject-page .page-hero .courses-hero-actions > *,body.subject-page .hsc-hero-stats{animation:saUp .7s cubic-bezier(.2,.8,.2,1) both}
body.subject-page .page-hero h1{animation-delay:.08s}
body.subject-page .page-hero .courses-hero-copy{animation-delay:.18s}
body.subject-page .page-hero .hero-chip{animation-delay:.28s}
body.subject-page .page-hero .courses-hero-actions > *{animation-delay:.4s}
body.subject-page .hsc-hero-stats{animation-delay:.5s}
body.subject-page .page-hero h1 em{display:inline-block;animation:saGlow 3.2s ease-in-out 1s infinite}
html.sa-ready body.subject-page .sa-item{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .7s cubic-bezier(.2,.8,.2,1),box-shadow .3s,border-color .3s,background .3s;transition-delay:calc(var(--sa-i,0) * 70ms)}
html.sa-ready body.subject-page .sa-item.sa-in{opacity:1;transform:none}
html.sa-ready body.subject-page .sa-item.sa-in:hover{transition-delay:0s}
html.sa-ready body.subject-page .section-head .h2-underline.sa-item{transform:scaleX(0)}
html.sa-ready body.subject-page .section-head .h2-underline.sa-item.sa-in{transform:scaleX(1)}

/* Hover effects */
body.subject-page section a.btn-primary,body.subject-page section a.btn-whatsapp,body.subject-page section a.btn-ghost-dark,
body.subject-page .hsc-gold-btn-dark,body.subject-page .hsc-gold-btn-outline,body.subject-page .hsc-btn-outline-navy,body.subject-page .hsc-route-btn,body.subject-page .hsc-steps-call{transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s,filter .25s,background .25s,color .25s}
body.subject-page section a.btn-primary:hover,body.subject-page section a.btn-whatsapp:hover,body.subject-page section a.btn-ghost-dark:hover,
body.subject-page .hsc-gold-btn-dark:hover,body.subject-page .hsc-gold-btn-outline:hover,body.subject-page .hsc-btn-outline-navy:hover,body.subject-page .hsc-steps-call:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(10,19,48,.2);filter:brightness(1.05)}
body.subject-page section a i.fa-arrow-right{transition:transform .25s}
body.subject-page section a:hover i.fa-arrow-right{transform:translateX(4px)}
body.subject-page .hsc-course-card:hover,body.subject-page .hsc-glance-box:hover,body.subject-page .hsc-curriculum-card:hover,body.subject-page .hsc-career-card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(10,19,48,.12);border-color:rgba(230,184,0,.6)}
body.subject-page .hsc-glance-box,body.subject-page .hsc-curriculum-card,body.subject-page .hsc-career-card{transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s,border-color .35s}
body.subject-page .hsc-course-media img{transition:transform .6s cubic-bezier(.2,.8,.2,1)}
body.subject-page .hsc-course-card:hover .hsc-course-media img{transform:scale(1.06)}
body.subject-page .hsc-funding-row:not(.hsc-funding-head){transition:background .2s}
body.subject-page .hsc-funding-row:not(.hsc-funding-head):hover{background:rgba(255,255,255,.06)}
body.subject-page #related-subjects a{transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s,background .3s}
body.subject-page #related-subjects a:hover{transform:translateY(-4px);background:#FFF8DD!important;box-shadow:0 12px 26px rgba(10,19,48,.1)}
body.subject-page #related-subjects a i{display:inline-block;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
body.subject-page #related-subjects a:hover i{transform:scale(1.2) rotate(-8deg)}
body.subject-page .section-head .h2-underline{transition:width .35s cubic-bezier(.2,.8,.2,1),transform .7s cubic-bezier(.2,.8,.2,1),opacity .6s}
body.subject-page .section-head:hover .h2-underline{width:72px}
@keyframes saPan{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
body.subject-page .course-cta-panel{background-size:180% 180%!important;animation:saPan 12s ease-in-out infinite}

/* Mobile: same full-width buttons as the HSC page */
@media(max-width:600px){
  body.subject-page section a.btn-primary,body.subject-page section a.btn-whatsapp,body.subject-page section a.btn-ghost-dark,body.subject-page a.hsc-steps-call,
  body.subject-page a.hsc-route-btn,body.subject-page a.hsc-gold-btn-dark,body.subject-page a.hsc-gold-btn-outline,body.subject-page a.hsc-btn-outline-navy,body.subject-page a.hsc-btn-guide{
    display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;max-width:100%;min-height:52px;height:auto;box-sizing:border-box;
    margin-left:0!important;margin-right:0!important;padding:14px 20px!important;border-radius:10px!important;font:700 15px/20px 'Open Sans'!important;text-align:center;white-space:normal}
  body.subject-page .hsc-gold-cta-actions,body.subject-page .course-cta-actions,body.subject-page .courses-hero-actions,body.subject-page .hsc-steps-cta,body.subject-page .hsc-careers-foot,body.subject-page .hsc-glance-cta{flex-direction:column;align-items:stretch;width:100%}
  body.subject-page .hsc-course-grid > .hsc-course-card{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){
  body.subject-page *,body.subject-page *::before{animation:none!important;transition:none!important}
  html.sa-ready body.subject-page .sa-item{opacity:1!important;transform:none!important}
}

/* -- Course groups (Business, Computing, Construction, Psychology): redesign -- */
.hsc-families{padding:0!important;background:transparent!important}
.hsc-families .hsc-family{display:block;padding:72px 0!important;border:0!important;position:relative;
  background:var(--fam-bg);box-shadow:0 0 0 100vmax var(--fam-bg);clip-path:inset(0 -100vmax)}
.hsc-family--1{--fam-bg:#F1F5FB}
.hsc-family--2{--fam-bg:var(--navy-0)}
.hsc-family--3{--fam-bg:#fff}
.hsc-family--4{--fam-bg:var(--navy-0)}
/* header: label + title left, description right */
.hsc-families .hsc-family-text{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);column-gap:56px;align-items:start;margin-bottom:36px}
.hsc-families .hsc-family-label,.hsc-families .hsc-family-title{grid-column:1}
.hsc-families .hsc-family-text > .copy-16{grid-column:2;margin:0 0 12px!important;font-size:16px;line-height:27px;color:var(--slate-600)}
.hsc-families .hsc-family-text > .copy-16:first-of-type{grid-row:1 / span 6}
.hsc-family-label{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.hsc-family-num{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:var(--gold);color:var(--navy-0);font:800 15px/1 Inter}
.hsc-family-count{padding:6px 12px;border-radius:999px;background:rgba(10,19,48,.06);color:var(--navy-1);font:700 12px/16px Inter;letter-spacing:.02em}
.hsc-families .hsc-family-title{font:700 32px/40px Inter;color:var(--navy-0);margin:0;position:relative;padding-bottom:16px}
.hsc-families .hsc-family-title span{color:inherit!important}
.hsc-families .hsc-family-title::after{content:"";position:absolute;left:0;bottom:0;width:48px;height:3px;border-radius:3px;background:var(--gold)}
/* dark group */
.hsc-family--2 .hsc-family-title{color:#fff}
.hsc-family--2 .hsc-family-text > .copy-16{color:rgba(255,255,255,.75)}
.hsc-family--2 .hsc-family-count{background:rgba(255,255,255,.1);color:#fff}
.hsc-family--2 .hsc-course-card{border-color:transparent}
/* cards: one size everywhere, centred row */
.hsc-families .hsc-family-cards{display:flex;flex-wrap:wrap;justify-content:center;gap:24px}
.hsc-families .hsc-family-cards > .hsc-course-card{flex:0 1 calc((100% - 48px) / 3);min-width:260px;max-width:380px;display:flex;flex-direction:column;
  box-shadow:0 6px 20px rgba(10,19,48,.06)}
.hsc-families .hsc-course-card .pc-body{display:flex;flex-direction:column;flex:1}
.hsc-families .hsc-course-card .pc-foot{margin-top:auto}
.hsc-course-card .hsc-course-best{border-bottom:0}
@media(max-width:900px){
  .hsc-families .hsc-family{padding:52px 0!important}
  .hsc-families .hsc-family-text{grid-template-columns:1fr;margin-bottom:28px}
  .hsc-families .hsc-family-text > .copy-16,.hsc-families .hsc-family-text > .copy-16:first-of-type{grid-column:1;grid-row:auto}
  .hsc-families .hsc-family-title{font-size:26px;line-height:34px;margin-bottom:16px}
}
@media(max-width:600px){.hsc-families .hsc-family-cards > .hsc-course-card{flex-basis:100%;max-width:none}}

/* Course groups with 1 or 2 courses: cards fill the row */
.hsc-families .hsc-family-cards > .hsc-course-card{flex:1 1 calc((100% - 48px) / 3);max-width:none}
.hsc-families .hsc-family-cards > .hsc-course-card:only-child{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);max-width:none}
.hsc-families .hsc-family-cards > .hsc-course-card:only-child .hsc-course-media{aspect-ratio:auto;height:100%;min-height:300px}
.hsc-families .hsc-family-cards > .hsc-course-card:only-child .pc-body{padding:36px 40px;justify-content:center}
.hsc-families .hsc-family-cards > .hsc-course-card:only-child .pc-body h4{font-size:22px;line-height:30px}
.hsc-families .hsc-family-cards > .hsc-course-card:only-child .pc-foot{margin-top:24px}
@media(max-width:760px){
  .hsc-families .hsc-family-cards > .hsc-course-card:only-child{display:flex}
  .hsc-families .hsc-family-cards > .hsc-course-card:only-child .hsc-course-media{aspect-ratio:1200/444;height:auto;min-height:0}
  .hsc-families .hsc-family-cards > .hsc-course-card:only-child .pc-body{padding:21px}
  .hsc-families .hsc-family-cards > .hsc-course-card:only-child .pc-body h4{font-size:17px;line-height:24px}
}

/* Course groups with 1-2 courses (v3): heading left, stacked horizontal course cards right */
.hsc-families .hsc-family--split{display:grid!important;grid-template-columns:minmax(0,.85fr) minmax(0,1.55fr);gap:56px;align-items:center}
.hsc-families .hsc-family--split .hsc-family-text{display:block;margin:0;padding-left:28px}
.hsc-families .hsc-family--split .hsc-family-title{font:700 34px/42px Inter;padding-bottom:22px;margin:0 0 22px}
.hsc-families .hsc-family--split .hsc-family-title::before{content:"";position:absolute;left:-28px;top:4px;bottom:22px;width:4px;border-radius:4px;background:var(--gold)}
.hsc-families .hsc-family--split .hsc-family-title::after{width:56px;height:4px}
.hsc-families .hsc-family--split .hsc-family-text > .copy-16{margin:0 0 12px!important;font-size:15px;line-height:26px}
/* cards: one per row, photo left */
.hsc-families .hsc-family--split .hsc-family-cards{display:flex;flex-direction:column;gap:20px}
.hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card,
.hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card:only-child{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1fr);flex:none;max-width:none;min-width:0;
  border-radius:16px;padding:10px;box-shadow:0 10px 30px rgba(10,19,48,.08)}
.hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card .hsc-course-media,
.hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card:only-child .hsc-course-media{aspect-ratio:auto;height:100%;min-height:190px;border-radius:12px}
.hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card .pc-body,
.hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card:only-child .pc-body{padding:14px 16px 10px 24px;justify-content:center}
.hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card .pc-body h4,
.hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card:only-child .pc-body h4{font:700 17px/24px Inter}
.hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card .pc-foot,
.hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card:only-child .pc-foot{margin-top:14px;border-top:0;padding-top:0}
.hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card .hsc-course-best{border-bottom:0}
.hsc-family--2 .hsc-family-text > .copy-16{color:rgba(255,255,255,.82)}
@media(max-width:1000px){
  .hsc-families .hsc-family--split{grid-template-columns:1fr;gap:32px}
}
@media(max-width:600px){
  .hsc-families .hsc-family--split .hsc-family-title{font-size:26px;line-height:34px}
  .hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card,
  .hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card:only-child{display:flex;flex-direction:column}
  .hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card .hsc-course-media,
  .hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card:only-child .hsc-course-media{aspect-ratio:1200/444;height:auto;min-height:0}
  .hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card .pc-body,
  .hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card:only-child .pc-body{padding:16px 10px 6px}
}
.hsc-families .hsc-family--split .hsc-family-cards > .hsc-course-card .pc-body h4{min-height:0!important;margin-bottom:8px}

/* Band 4 is dark navy too: light text, white cards */
.hsc-family--4 .hsc-family-title{color:#fff}
.hsc-family--4 .hsc-family-text > .copy-16{color:rgba(255,255,255,.82)}
.hsc-family--4 .hsc-course-card{border-color:transparent}

/* Course Options: a single leftover card on the last row of 4 becomes a wide horizontal card */
@media(min-width:1100px){
  body.subject-page #hsc-course-grid > .hsc-course-card.is-wide{
    flex:1 1 100%;max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:10px;border-radius:16px}
  body.subject-page #hsc-course-grid > .hsc-course-card.is-wide .hsc-course-media{
    aspect-ratio:auto;height:100%;min-height:240px;border-radius:12px}
  body.subject-page #hsc-course-grid > .hsc-course-card.is-wide .pc-body{
    padding:28px 36px;display:flex;flex-direction:column;justify-content:center}
  body.subject-page #hsc-course-grid > .hsc-course-card.is-wide .pc-body h4{
    font:700 22px/30px Inter;min-height:0}
}
@media(min-width:1100px){body.subject-page #hsc-course-grid > .hsc-course-card.is-wide .pc-foot{margin-top:22px}}

/* Course list layout (Computing): horizontal cards, photo left, details middle, chip + link right */
body.subject-page #hsc-course-grid.hsc-course-list{display:flex;flex-direction:column;gap:16px;max-width:1080px;margin:32px auto 0}
body.subject-page #hsc-course-grid.hsc-course-list > .hsc-course-card,
body.subject-page #hsc-course-grid.hsc-course-list > .hsc-course-card.is-wide{display:grid;grid-template-columns:240px minmax(0,1fr);gap:0;flex:none;
  max-width:none;min-width:0;padding:10px;border-radius:14px;box-shadow:0 6px 20px rgba(10,19,48,.06)}
body.subject-page #hsc-course-grid.hsc-course-list > .hsc-course-card .hsc-course-media,
body.subject-page #hsc-course-grid.hsc-course-list > .hsc-course-card.is-wide .hsc-course-media{aspect-ratio:auto;height:100%;min-height:140px;border-radius:10px}
body.subject-page #hsc-course-grid.hsc-course-list .pc-body,
body.subject-page #hsc-course-grid.hsc-course-list > .hsc-course-card.is-wide .pc-body{display:grid;grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto auto 1fr;column-gap:24px;align-items:start;padding:10px 14px 8px 24px}
body.subject-page #hsc-course-grid.hsc-course-list .pc-body > :not(.pc-foot){grid-column:1}
body.subject-page #hsc-course-grid.hsc-course-list .pc-body h4,
body.subject-page #hsc-course-grid.hsc-course-list > .hsc-course-card.is-wide .pc-body h4{font:700 18px/26px Inter;min-height:0;margin:0 0 6px}
body.subject-page #hsc-course-grid.hsc-course-list .pc-meta{margin:0 0 4px}
body.subject-page #hsc-course-grid.hsc-course-list .hsc-course-noalevel{margin:2px 0 4px}
body.subject-page #hsc-course-grid.hsc-course-list .hsc-course-best{margin:0;border-bottom:0;padding:0}
body.subject-page #hsc-course-grid.hsc-course-list .pc-foot,
body.subject-page #hsc-course-grid.hsc-course-list > .hsc-course-card.is-wide .pc-foot{grid-column:2;grid-row:1 / -1;display:flex;flex-direction:column;
  align-items:flex-end;justify-content:space-between;gap:12px;margin:0;padding:0;border:0;height:100%}
body.subject-page #hsc-course-grid.hsc-course-list .pc-foot a{white-space:nowrap}
@media(max-width:700px){
  body.subject-page #hsc-course-grid.hsc-course-list > .hsc-course-card,
  body.subject-page #hsc-course-grid.hsc-course-list > .hsc-course-card.is-wide{display:flex;flex-direction:column}
  body.subject-page #hsc-course-grid.hsc-course-list > .hsc-course-card .hsc-course-media,
  body.subject-page #hsc-course-grid.hsc-course-list > .hsc-course-card.is-wide .hsc-course-media{aspect-ratio:1200/444;height:auto;min-height:0}
  body.subject-page #hsc-course-grid.hsc-course-list .pc-body,
  body.subject-page #hsc-course-grid.hsc-course-list > .hsc-course-card.is-wide .pc-body{display:flex;flex-direction:column;padding:16px 8px 6px}
  body.subject-page #hsc-course-grid.hsc-course-list .pc-foot,
  body.subject-page #hsc-course-grid.hsc-course-list > .hsc-course-card.is-wide .pc-foot{flex-direction:row;align-items:center;justify-content:space-between;
    margin-top:14px;padding-top:14px;border-top:1px solid var(--slate-100);height:auto}
}
@media(max-width:700px){body.subject-page #hsc-course-grid.hsc-course-list .pc-foot{width:100%;align-self:stretch;box-sizing:border-box}}

/* Explore Other Subject Areas: darker shade of the same grey-blue */
#related-subjects .container > div > a{background:var(--slate-200)!important}
#related-subjects .container > div > a:hover{background:#FFF8DD!important}

/* What You'll Study, dark variant (Psychology): centred intro + icon cards */
.study-dark .section-head{max-width:900px;margin:0 auto}
.study-dark .section-head .h2-underline{margin:12px auto 0}
.study-dark .study-intro{color:rgba(255,255,255,.8)!important;text-align:center;font-size:15px;line-height:26px;margin:14px auto 0!important;max-width:880px}
.study-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:40px}
.study-card{display:flex;align-items:center;gap:20px;background:#fff;border-radius:16px;padding:24px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s}
.study-card:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(0,0,0,.28)}
.study-card h4{font:700 17px/24px Inter;color:var(--navy-0);margin:0 0 4px}
.study-card p{font:400 14px/22px 'Open Sans';color:var(--slate-500);margin:0}
.study-icon{flex-shrink:0;width:68px;height:68px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:26px;
  transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.study-card:hover .study-icon{transform:scale(1.08) rotate(-6deg)}
.study-icon--gold{background:#FFF1BF;color:#C99A00}
.study-icon--teal{background:#D9F5EF;color:#0F766E}
@media(max-width:1000px){.study-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  .study-grid{grid-template-columns:1fr;gap:14px;margin-top:28px}
  .study-card{padding:18px;gap:16px}
  .study-icon{width:56px;height:56px;font-size:22px}
  .study-dark .study-intro{font-size:15px;text-align:left}
}

/* Study cards: 3 per row, a last row of 1 or 2 stretches to fill the full width */
.study-grid{display:flex;flex-wrap:wrap}
.study-grid > .study-card{flex:1 1 calc((100% - 40px) / 3);min-width:0}
@media(max-width:1000px){.study-grid > .study-card{flex-basis:calc((100% - 20px) / 2)}}
@media(max-width:600px){.study-grid > .study-card{flex-basis:100%}}

/* A single leftover study card: width of two cards, centred */
.study-grid{justify-content:center}
@media(min-width:1001px){
  .study-grid > .study-card:last-child:nth-child(3n+1){flex:0 1 calc((100% - 40px) / 3 * 2 + 20px)}
}

/* Careers: 'Your Future in ...' illustrated cards */
.cf-head{text-align:center;max-width:760px;margin:0 auto}
.cf-sub{color:rgba(255,255,255,.85);font:400 19px/28px 'Open Sans';margin:10px 0 0}
.cf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:40px}
.cf-card{background:#16285a;border:1px solid rgba(255,255,255,.08);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;
  transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s,border-color .35s}
.cf-card:hover{transform:translateY(-6px);border-color:rgba(242,194,48,.55);box-shadow:0 22px 44px rgba(0,0,0,.35)}
.cf-img{aspect-ratio:6/5;overflow:hidden;background:#14244d}
.cf-img img{display:block;width:100%;height:100%;object-fit:cover;animation:cfFloat 6s ease-in-out infinite;transform-origin:center bottom;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.cf-card:nth-child(2) .cf-img img{animation-delay:-1.5s}.cf-card:nth-child(3) .cf-img img{animation-delay:-3s}.cf-card:nth-child(4) .cf-img img{animation-delay:-4.5s}
.cf-card:hover .cf-img img{animation-play-state:paused;transform:scale(1.07)}
@keyframes cfFloat{0%,100%{transform:scale(1.02) translateY(0)}50%{transform:scale(1.04) translateY(-6px)}}
.cf-body{padding:22px 22px 24px}
.cf-body h3{font:700 21px/28px Inter;color:#fff;margin:0;position:relative;padding-bottom:14px}
.cf-body h3::after{content:"";position:absolute;left:0;bottom:0;width:40px;height:3px;border-radius:3px;background:var(--gold);transition:width .35s}
.cf-card:hover .cf-body h3::after{width:70px}
.cf-label{font:700 11px/16px 'DM Sans';letter-spacing:.14em;text-transform:uppercase;color:var(--gold-2,#f5c842);margin:18px 0 6px}
.cf-where{font:400 15px/22px 'Open Sans';color:rgba(255,255,255,.88);margin:0}
.cf-roles{list-style:none;padding:0;margin:0}
.cf-roles li{font:500 15px/24px 'Open Sans';color:#fff}
.cf-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:32px}
.cf-foot p{margin:0;font:400 13px/20px 'Open Sans';color:rgba(255,255,255,.7);max-width:720px}
.cf-btn{display:inline-flex;align-items:center;gap:10px;padding:15px 26px;border-radius:10px;background:var(--gold);color:var(--navy-0);font:700 15px/20px 'Open Sans';text-decoration:none;
  transition:transform .25s,box-shadow .25s,filter .25s}
.cf-btn:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(0,0,0,.3);filter:brightness(1.05)}
.cf-btn i{transition:transform .25s}.cf-btn:hover i{transform:translateX(4px)}
@media(max-width:1100px){.cf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.cf-grid{grid-template-columns:1fr}.cf-sub{font-size:16px;line-height:24px}.cf-btn{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.cf-img img{animation:none}}
