/* Ornate i website button standard (Option A, approved 28 Nov 2026).
   Every public website button matches the course "Search" button: 48px tall, fully rounded, 16px semibold,
   and the same mouse-over (lifts 3px, shine sweeps across, arrow nudges right).
   Main buttons are solid red and go darker red with a red glow.
   Second buttons keep their outline and turn into the red Search look on mouse-over.
   Loaded last (templates/base.html) on website and login pages only, so staff, Associate and portal pages are unchanged.
   Not buttons, so not changed: filter tabs, Student/Staff login tabs, topic chips, menu links and course cards. */

/* ---- 1. Shape, size and text: every button ---- */
.btn48, .hb-btn, .pt-btn, .pg-btn, .pb-go, .ct-quick a,
[data-cookie-accept], [data-cookie-reject], [data-cookie-save] {
  box-sizing: border-box;
  height: 48px !important;
  min-height: 48px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}
.pb-go, .ct-quick a, [data-cookie-accept], [data-cookie-reject], [data-cookie-save] { padding-left: 24px !important; padding-right: 24px !important; }

/* ---- 2. Main buttons: solid red, exactly like Search ---- */
.btn48.b-red, .hb-btn.hb-red, .pt-btn.red, .pg-btn, .pb-go, .hb-btn.hb-white[data-oa-open], [data-cookie-accept], [data-cookie-save] {
  background: #C5242E !important;
  color: #FFFFFF !important;
  border: 0 !important;
}

/* ---- 3. Mouse-over and keyboard focus: the same movement on every button ---- */
.btn48::after, .hb-btn::after, .pt-btn::after, .pg-btn::after, .pb-go::after, .ct-quick a::after,
[data-cookie-accept]::after, [data-cookie-reject]::after, [data-cookie-save]::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent) !important;
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
  z-index: -1;
}
.btn48:hover::after, .btn48:focus-visible::after, .hb-btn:hover::after, .hb-btn:focus-visible::after,
.pt-btn:hover::after, .pt-btn:focus-visible::after, .pg-btn:hover::after, .pg-btn:focus-visible::after,
.pb-go:hover::after, .pb-go:focus-visible::after, .ct-quick a:hover::after, .ct-quick a:focus-visible::after,
[data-cookie-accept]:hover::after, [data-cookie-reject]:hover::after, [data-cookie-save]:hover::after { left: 120%; }

.btn48:hover, .btn48:focus-visible, .hb-btn:hover, .hb-btn:focus-visible, .pt-btn:hover, .pt-btn:focus-visible,
.pg-btn:hover, .pg-btn:focus-visible, .pb-go:hover, .pb-go:focus-visible, .ct-quick a:hover, .ct-quick a:focus-visible,
[data-cookie-accept]:hover, [data-cookie-accept]:focus-visible, [data-cookie-reject]:hover, [data-cookie-reject]:focus-visible,
[data-cookie-save]:hover, [data-cookie-save]:focus-visible {
  transform: translateY(-3px) !important;
}
.btn48 svg, .hb-btn svg, .hb-btn span[aria-hidden], .pt-btn svg, .pt-btn span[aria-hidden], .pg-btn svg, .pb-go svg, .ct-quick a svg {
  display: inline-block;
  transition: transform .22s ease;
}
.btn48:hover svg, .hb-btn:hover svg, .hb-btn:hover span[aria-hidden], .pt-btn:hover svg, .pt-btn:hover span[aria-hidden],
.pg-btn:hover svg, .pb-go:hover svg, .ct-quick a:hover svg { transform: translateX(3px); }
.btn48:active, .hb-btn:active, .pt-btn:active, .pg-btn:active, .pb-go:active, .ct-quick a:active,
[data-cookie-accept]:active, [data-cookie-reject]:active, [data-cookie-save]:active { transform: translateY(0) !important; transition-duration: .08s; }

/* Main buttons on mouse-over: darker red with a red glow (the Search button) */
.btn48.b-red:hover, .btn48.b-red:focus-visible, .hb-btn.hb-red:hover, .hb-btn.hb-red:focus-visible,
.pt-btn.red:hover, .pt-btn.red:focus-visible, .pg-btn:hover, .pg-btn:focus-visible, .pb-go:hover, .pb-go:focus-visible,
.hb-btn.hb-white[data-oa-open]:hover, .hb-btn.hb-white[data-oa-open]:focus-visible,
[data-cookie-accept]:hover, [data-cookie-accept]:focus-visible, [data-cookie-save]:hover, [data-cookie-save]:focus-visible {
  background: #9E1D23 !important;
  color: #FFFFFF !important;
  box-shadow: 0 12px 26px rgba(197, 36, 46, .38) !important;
}

/* Second buttons on mouse-over: they become the red Search button */
.btn48.b-ghost:hover, .btn48.b-ghost:focus-visible, .btn48.b-navy:hover, .btn48.b-navy:focus-visible,
.hb-btn.hb-ghost:hover, .hb-btn.hb-ghost:focus-visible, .pt-btn.line:hover, .pt-btn.line:focus-visible,
.ct-quick a:hover, .ct-quick a:focus-visible, [data-cookie-reject]:hover, [data-cookie-reject]:focus-visible {
  background: #C5242E !important;
  color: #FFFFFF !important;
  border-color: #C5242E !important;
  box-shadow: 0 12px 26px rgba(197, 36, 46, .38) !important;
}

/* The white button on the red "Ready to apply" band stays white (red would vanish on red);
   on mouse-over it turns navy with the same lift, shine and glow. */
.hb-btn.hb-white:not([data-oa-open]):hover, .hb-btn.hb-white:not([data-oa-open]):focus-visible {
  background: #151B54 !important;
  color: #FFFFFF !important;
  box-shadow: 0 12px 26px rgba(5, 8, 30, .35) !important;
}
/* On the red band the outlined second button turns white, so it stays visible. */
.hb-acts .hb-btn.hb-ghost:hover, .hb-acts .hb-btn.hb-ghost:focus-visible {
  background: #FFFFFF !important;
  color: #C5242E !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 12px 26px rgba(5, 8, 30, .35) !important;
}

.btn48:focus-visible, .hb-btn:focus-visible, .pt-btn:focus-visible, .pg-btn:focus-visible, .pb-go:focus-visible,
.ct-quick a:focus-visible, [data-cookie-accept]:focus-visible, [data-cookie-reject]:focus-visible, [data-cookie-save]:focus-visible {
  outline: 3px solid #8FA2FF;
  outline-offset: 3px;
}

/* Partner cards: a button never cuts its words; if two do not fit side by side, the second moves to its own row. */
.pb-acts .pt-btn, .pt-acts .pt-btn { flex: 1 1 auto; min-width: max-content; max-width: 100%; }

/* ---- 4. Phones: two buttons in a partner card share the row, so their text is a little smaller ---- */
@media (max-width: 420px) {
  .pt-btn { font-size: 15px !important; padding-left: 12px !important; padding-right: 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .btn48, .hb-btn, .pt-btn, .pg-btn, .pb-go, .ct-quick a, [data-cookie-accept], [data-cookie-reject], [data-cookie-save] { transition: none; }
  .btn48::after, .hb-btn::after, .pt-btn::after, .pg-btn::after, .pb-go::after, .ct-quick a::after,
  [data-cookie-accept]::after, [data-cookie-reject]::after, [data-cookie-save]::after { display: none; }
  .btn48:hover, .hb-btn:hover, .pt-btn:hover, .pg-btn:hover, .pb-go:hover, .ct-quick a:hover,
  [data-cookie-accept]:hover, [data-cookie-reject]:hover, [data-cookie-save]:hover { transform: none !important; }
}

/* Shared header and footer: mouse-over on every link and icon (29 Nov 2026) */
nav[aria-label] a[href]{transition:color .2s ease}
nav[aria-label="Breadcrumb"] a:hover,nav[aria-label="Breadcrumb"] a:focus-visible{color:#FF8A91 !important;text-decoration:underline}
.nl a[aria-current="page"]{transition:background-color .2s ease}
.nl a[aria-current="page"]:hover{background:#C5242E !important;color:#FFFFFF !important}
.hero-wrap>div:first-child span[style*="border-radius: 50%"]{transition:transform .25s ease}
.hero-wrap>div:first-child>span>span:hover span[style*="border-radius: 50%"]{transform:scale(1.15) rotate(-10deg)}
.hero-wrap>div:first-child>span>span{cursor:default}
.v3-foot a.ft-link:not(:has(.ft-chev)):hover,.v3-foot a.ft-link:not(:has(.ft-chev)):focus-visible{color:#FF8A91 !important}
.v3-foot div:has(>span>a.ft-link)>span:first-child{transition:transform .25s ease,background-color .25s ease,color .25s ease}
.v3-foot div:has(>span>a.ft-link):hover>span:first-child{background:#C5242E !important;color:#FFFFFF !important;transform:rotate(-8deg) scale(1.08)}
@media (prefers-reduced-motion:reduce){.v3-foot div:has(>span>a.ft-link)>span:first-child,.hero-wrap>div:first-child span[style*="border-radius: 50%"]{transition:none}}
.nl a[style*="background: #151B54"]{transition:background-color .2s ease}
.nl a[style*="background: #151B54"]:hover{background:#C5242E !important;color:#FFFFFF !important}
[data-slide-dot]{transition:width .3s ease,background-color .2s ease,transform .2s ease !important}
[data-slide-dot]:hover,[data-slide-dot]:focus-visible{background:#FF8A91 !important;transform:scaleY(1.3)}
.nf-ticker+button{transition:background-color .2s ease}
.nf-ticker+button:hover,.nf-ticker+button:focus-visible{background:#C5242E !important}
.ft-bl{transition:color .2s ease}
.ft-bl:hover,.ft-bl:focus-visible{color:#FF8A91 !important;text-decoration:underline !important}

/* Sticky menu bar (29 Nov 2026): static/js/sticky_header.js adds .hdr-fixed once the page scrolls past it. */
.hdr-ph{display:none}
header.hdr.hdr-fixed{position:fixed;top:10px;left:50%;transform:translateX(-50%);z-index:1000;margin:0;background:rgba(255,255,255,.97) !important;box-shadow:0 14px 40px rgba(5,8,30,.22) !important;animation:hdrDrop .35s ease}
@keyframes hdrDrop{from{opacity:0;transform:translate(-50%,-14px)}to{opacity:1;transform:translate(-50%,0)}}
header.hdr.hdr-fixed+.mob-wrap>.mob-menu{position:fixed;top:var(--hdr-bottom,80px);left:16px;right:16px;z-index:999;max-height:calc(100vh - var(--hdr-bottom,80px) - 12px);overflow-y:auto}
@media (prefers-reduced-motion:reduce){header.hdr.hdr-fixed{animation:none}}

/* Logo shine (approved 30 Nov 2026, option A): a soft streak of light crosses the logo every 3 seconds.
   The logo image itself is unchanged; the light is a separate layer on top. */
.hdr-logo-shine{position:relative;display:inline-flex;flex:none;line-height:0;overflow:hidden;border-radius:6px}
.hdr-logo-shine::after{content:"";position:absolute;top:-20%;bottom:-20%;left:-60%;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.85),transparent);transform:skewX(-20deg);pointer-events:none;animation:hdrLogoShine 3s ease-in-out infinite}
@keyframes hdrLogoShine{0%,55%{left:-60%}85%,100%{left:130%}}
@media (prefers-reduced-motion:reduce){.hdr-logo-shine::after{animation:none;display:none}}

/* Work With Us added to the main menu (30 Nov 2026): keep the menu bar on one line on laptop screens. */
@media (min-width:1181px) and (max-width:1420px){
  header.hdr .nav-full>a,header.hdr .nav-full .nav-dd>button{padding-left:9px!important;padding-right:9px!important}
}
@media (min-width:1181px) and (max-width:1300px){
  header.hdr .nav-full{font-size:15px!important}
}
/* French, Spanish and Hausa menu words are longer: a little tighter at every width. */
html[lang="fr"] header.hdr .nav-full>a,html[lang="fr"] header.hdr .nav-full .nav-dd>button,
html[lang="es"] header.hdr .nav-full>a,html[lang="es"] header.hdr .nav-full .nav-dd>button,
html[lang="ha"] header.hdr .nav-full>a,html[lang="ha"] header.hdr .nav-full .nav-dd>button{padding-left:7px!important;padding-right:7px!important}
html[lang="es"] header.hdr .nav-full{font-size:15px!important}
@media (min-width:1181px) and (max-width:1300px){
  html[lang="fr"] header.hdr .nav-full,html[lang="es"] header.hdr .nav-full,html[lang="ha"] header.hdr .nav-full{font-size:14px!important}
}
/* Spanish only: use the ☰ phone menu up to 1240px, where the full menu would not fit. */
@media (max-width:1240px){
  html[lang="es"] .nav-full{display:none!important}
  html[lang="es"] .burger{display:grid!important}
  html[lang="es"] .mob-menu{display:flex!important}
}
