/* Zewail V8 public-site landing extensions. No external CSS framework. */
.academy-header--v8{background:#fff;box-shadow:0 4px 22px rgba(15,39,82,.07);position:relative;z-index:90}
.academy-header--v8 .academy-nav-wrap{padding-block:6px}
.academy-header-mobile-brand{display:none}
.academy-v8-hero{background:#f7faff;padding:18px 0 42px}
.academy-v8-hero-stage{min-height:610px;border-radius:30px;position:relative;overflow:hidden;background:radial-gradient(circle at 22% 20%,#1d4785,#06183c 74%);box-shadow:0 24px 60px rgba(8,25,58,.23)}
.academy-v8-hero-slide{display:grid;grid-template-columns:1fr 1fr;position:absolute;inset:0;visibility:hidden;opacity:0;transition:opacity .7s ease,visibility .7s ease;pointer-events:none}
.academy-v8-hero-slide.is-active{opacity:1;visibility:visible;pointer-events:auto;z-index:1}
.academy-v8-hero-copy{grid-column:1;grid-row:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(25px,6vw,100px);text-align:start;color:#fff;order:1;z-index:2}
.academy-v8-hero-copy h1{font-size:clamp(35px,3.5vw,65px);line-height:1.33;margin:24px 0;font-weight:900;color:#fff;max-width:680px}
.academy-v8-hero-copy p{font-size:clamp(14px,1.14vw,20px);line-height:1.95;color:#d9e7ff;max-width:570px}
.academy-v8-hero-eyebrow{display:inline-flex;align-items:center;gap:9px;border:1px solid #fff4;border-radius:50px;padding:10px 19px;background:#ffffff1a;font-weight:800;color:#d8ebff}
.academy-v8-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:13px;margin:29px 0 19px}
.academy-v8-btn{border:1px solid #b2ccf8;border-radius:13px;padding:13px 22px;display:inline-flex;gap:10px;align-items:center;justify-content:center;text-decoration:none;font-weight:800;color:#f5faff;background:#ffffff1c;transition:transform .25s,background .25s}
.academy-v8-btn:hover{transform:translateY(-3px);background:#ffffff35;color:white}
.academy-v8-btn.is-primary{background:#fff;color:#0a2a62;border-color:#fff}
.academy-v8-hero-trust{color:#c8dcfa;display:flex;align-items:center;gap:9px;font-weight:700}
.academy-v8-hero-media{grid-column:2;grid-row:1;overflow:hidden;position:relative;min-height:100%;order:0}
.academy-v8-hero-media:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 60%,#06183c 100%);pointer-events:none}
[dir=ltr] .academy-v8-hero-media:after{background:linear-gradient(270deg,transparent 60%,#06183c 100%)}
.academy-v8-hero-media img{width:100%;height:100%;object-fit:cover;display:block}
.academy-v8-hero-placeholder{height:100%;display:grid;place-items:center;font-size:150px;background:linear-gradient(125deg,#274c92,#86b6e5);color:#ffffffa0}
.academy-v8-hero-controls{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:15px;align-items:center;color:#fff;background:#061a46bd;padding:8px 14px;border-radius:50px;z-index:5;direction:ltr}
.academy-v8-hero-controls button,.academy-v8-slider-buttons button{border:1px solid #ffffff6e;border-radius:50%;height:35px;width:35px;display:grid;place-items:center;color:#fff;background:#ffffff25;cursor:pointer}
.academy-v8-section .academy-section-heading{margin-bottom:30px}
.academy-v8-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}
.academy-v8-proof{background:#fff;border:1px solid #dfe7f7;box-shadow:0 10px 29px #18396a12;border-radius:22px;overflow:hidden;min-height:160px;color:#132e5e;text-decoration:none;display:flex;flex-direction:column}
.academy-v8-proof img,.academy-v8-proof video,.academy-v8-proof iframe{width:100%;aspect-ratio:16/10;object-fit:cover;border:0;background:#101d37}
.academy-v8-proof>i{font-size:70px;align-self:center;margin:auto}
.academy-v8-proof span{display:block;padding:14px 18px;font-weight:800;color:#132e5e}
.academy-v8-instructor-track{display:flex;overflow-x:auto;gap:17px;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:12px 2px 24px}
.academy-v8-instructor{width:220px;flex:0 0 220px;display:flex;flex-direction:column;align-items:center;text-decoration:none;color:#132e5e;gap:9px;background:#fff;border-radius:19px;padding:20px 13px;box-shadow:0 10px 32px #11285d17;scroll-snap-align:start}
.academy-v8-instructor img,.academy-v8-instructor-empty{width:150px;height:150px;border-radius:50%;object-fit:cover;background:#ebf1fc;display:grid;place-items:center;color:#4164ab;font-size:45px}
.academy-v8-instructor strong{font-size:16px;text-align:center}.academy-v8-instructor small{color:#7586a4;text-align:center;line-height:1.6}
.academy-v8-slider-buttons{display:flex;gap:9px}.academy-v8-slider-buttons button{background:#2b5199;border:0}
.academy-v8-textlink{display:inline-flex;gap:10px;margin-top:16px;color:#2856a0;font-weight:800}
.academy-v8-float-contact{position:fixed;bottom:22px;left:14px;z-index:95;display:flex;flex-direction:column;gap:10px}
.academy-v8-float-contact a{display:grid;place-items:center;width:55px;height:55px;border-radius:17px;color:white;font-size:27px;box-shadow:0 10px 28px #06173f44}.academy-v8-float-contact .is-wa{background:#10b970}.academy-v8-float-contact .is-messenger{background:#227bf5}
.academy-v8-popup{border:0;border-radius:28px;width:min(94vw,550px);padding:38px;direction:rtl;text-align:center;box-shadow:0 35px 110px #081c4c66;color:#142b57;background:#fff}
.academy-v8-popup::backdrop{background:rgba(2,12,35,.72);backdrop-filter:blur(4px)}
.academy-v8-popup h2{font-size:clamp(27px,3vw,41px);color:#112c65;margin:15px 0;line-height:1.4}
.academy-v8-popup p{white-space:pre-line;line-height:1.9;color:#687b98}
.academy-v8-popup-badge{display:inline-flex;gap:8px;background:#eaf0fa;color:#2352a4;padding:9px 16px;border-radius:50px;font-weight:800}
.academy-v8-popup-close{position:absolute;left:16px;top:13px;border:0;background:#ebf0f8;border-radius:50%;height:34px;width:34px;cursor:pointer}
.academy-v8-popup-cta{display:inline-block;text-decoration:none;background:#204fa1;color:#fff;border-radius:14px;padding:14px 24px;margin-top:14px;font-weight:800}
.academy-footer__branches{margin-top:13px}.academy-footer__branches h3{font-size:16px;color:#e8f2ff}.academy-footer__branches p{margin:5px 0;color:#bbcfec;line-height:1.7}
@media(max-width:850px){.academy-v8-hero-stage{min-height:660px}.academy-v8-hero-slide{grid-template-columns:1fr;grid-template-rows:260px 1fr}.academy-v8-hero-media{grid-row:1;grid-column:1;min-height:260px}.academy-v8-hero-media:after{background:linear-gradient(0deg,#06183c,transparent 80%)}.academy-v8-hero-copy{grid-row:2;grid-column:1;padding:17px 26px 63px;justify-content:flex-start}.academy-v8-hero-copy h1{font-size:clamp(28px,5vw,42px);margin:8px 0}.academy-v8-hero-copy p{font-size:13px;margin:0}.academy-v8-hero-actions{margin:14px 0}.academy-v8-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.academy-header--v8 .academy-header-mobile-brand{display:flex;align-items:center;justify-content:space-between;padding:8px 20px;gap:12px;background:#fff}.academy-header-mobile-brand img{width:46px;height:46px;object-fit:contain;border-radius:50%}.academy-header-mobile-brand strong{color:#16366f;font-size:13px}.academy-header--v8 .academy-nav-wrap{padding:0 10px}.academy-header--v8 .academy-nav-utility .academy-phone{display:none}.academy-v8-hero-stage{min-height:650px;border-radius:0}.academy-v8-hero{padding:0 0 35px}.academy-v8-hero>.academy-container{padding-inline:0}.academy-v8-hero-controls{bottom:16px}.academy-v8-media-grid{grid-template-columns:1fr 1fr;gap:10px}.academy-v8-proof span{font-size:12px;padding:10px}.academy-v8-instructor{width:180px;flex-basis:180px}.academy-v8-instructor img{width:125px;height:125px}.academy-v8-float-contact a{width:46px;height:46px;font-size:22px}}
@media(max-width:460px){.academy-v8-media-grid{grid-template-columns:1fr}.academy-v8-hero-slide{grid-template-rows:220px 1fr}.academy-v8-hero-stage{min-height:600px}.academy-v8-hero-actions .academy-v8-btn{font-size:12px;padding:11px}.academy-v8-hero-media{min-height:220px}}
@media(prefers-reduced-motion:reduce){.academy-v8-hero-slide{transition:none}.academy-v8-btn{transition:none}}

.academy-v8-nav-brand{display:flex;align-items:center;margin-inline-end:14px}.academy-v8-nav-brand img{width:43px;height:43px;object-fit:contain;border-radius:50%;background:#fff}@media(max-width:720px){.academy-v8-nav-brand{display:none}}

/* Reveal animations, respecting reduced-motion preferences. */
@media(prefers-reduced-motion:no-preference){[data-v8-reveal]{opacity:0;transform:translateY(35px);transition:opacity .85s ease,transform .85s cubic-bezier(.22,.7,.2,1)}[data-v8-reveal].is-visible{opacity:1;transform:translateY(0)}}


/* V9 diagonal, full-bleed hero — image and copy still come from the existing
   home_hero_slides settings. No additional database columns are necessary. */
.academy-v8-hero{
    width:100%;padding:0;margin:0 0 44px;background:#071735;
}
.academy-v8-hero-viewport{
    width:100%;max-width:none;margin:0;padding:0;
}
.academy-v8-hero-stage{
    position:relative;width:100%;height:clamp(640px,80svh,780px);
    min-height:640px;overflow:hidden;border-radius:0;
    background:radial-gradient(ellipse at 88% 25%,#213f7b 0%,#0a1c42 54%,#051330 100%);
    box-shadow:none;isolation:isolate;
}
.academy-v8-hero-slide{
    position:absolute;inset:0;display:block;grid-template-columns:none;
    visibility:hidden;opacity:0;pointer-events:none;
    transition:opacity .8s ease,visibility .8s ease;
}
.academy-v8-hero-slide.is-active{visibility:visible;opacity:1;pointer-events:auto;z-index:1}
/* On RTL pages the photo owns the left side. Its edge follows the requested
   diagonal: 58% at the top, 35% at the bottom. */
.academy-v8-hero-media{
    position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;
    overflow:hidden;clip-path:polygon(0 0,58% 0,35% 100%,0 100%);
    z-index:1;grid-row:auto;grid-column:auto;order:initial;
    background:linear-gradient(125deg,#193c75,#071b43);
}
.academy-v8-hero-media img{
    display:block;width:62%;height:100%;max-width:none;object-fit:cover;
    object-position:center center;margin-right:auto;
}
.academy-v8-hero-placeholder{width:62%;height:100%;font-size:clamp(90px,12vw,190px)}
.academy-v8-hero-media::after{
    content:'';position:absolute;inset:0;pointer-events:none;
    background:linear-gradient(90deg,rgba(3,15,39,.09),rgba(3,15,39,.3) 50%,rgba(3,15,39,.55) 73%);
}
/* A restrained lit edge makes the diagonal deliberate, not a harsh seam. */
.academy-v8-hero-slide::after{
    content:'';position:absolute;inset:0;z-index:2;pointer-events:none;
    background:linear-gradient(180deg,rgba(119,191,255,.65),rgba(83,224,208,.53));
    clip-path:polygon(57.8% 0,58.15% 0,35.15% 100%,34.8% 100%);
    filter:drop-shadow(0 0 12px rgba(104,193,255,.35));
}
.academy-v8-hero-copy{
    position:absolute;top:0;right:0;bottom:0;left:auto;
    display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
    width:53%;max-width:none;height:100%;z-index:3;
    padding:65px clamp(34px,7.7vw,155px) 88px clamp(24px,3.8vw,76px);
    color:#fff;text-align:start;direction:rtl;
    grid-row:auto;grid-column:auto;order:initial;
}
.academy-v8-hero-copy h1{
    max-width:780px;font-size:clamp(37px,3.8vw,78px);line-height:1.3;
    margin:21px 0 24px;text-wrap:balance;
}
.academy-v8-hero-copy p{
    max-width:660px;font-size:clamp(14px,1.19vw,21px);line-height:1.95;
}
.academy-v8-hero-actions{margin:30px 0 20px}
.academy-v8-hero-controls{
    left:50%;bottom:29px;transform:translateX(-50%);z-index:6;
    box-shadow:0 8px 25px rgba(2,10,29,.25);
}
/* Mirror the diagonal for English rather than clipping over English copy. */
[dir=ltr] .academy-v8-hero-media{clip-path:polygon(42% 0,100% 0,100% 100%,65% 100%)}
[dir=ltr] .academy-v8-hero-media img{margin-left:auto;margin-right:0}
[dir=ltr] .academy-v8-hero-placeholder{margin-left:auto}
[dir=ltr] .academy-v8-hero-media::after{background:linear-gradient(270deg,rgba(3,15,39,.09),rgba(3,15,39,.3) 50%,rgba(3,15,39,.55) 73%)}
[dir=ltr] .academy-v8-hero-slide::after{clip-path:polygon(41.85% 0,42.2% 0,65.2% 100%,64.85% 100%)}
[dir=ltr] .academy-v8-hero-copy{
    right:auto;left:0;direction:ltr;
    padding:65px clamp(24px,3.8vw,76px) 88px clamp(34px,7.7vw,155px);
}
@media(max-width:1100px) and (min-width:901px){
    .academy-v8-hero-copy{width:56%;padding-inline:30px 45px}
    [dir=ltr] .academy-v8-hero-copy{padding-inline:45px 30px}
    .academy-v8-hero-copy h1{font-size:clamp(32px,4vw,52px)}
}
@media(max-width:900px){
    .academy-v8-hero{margin-bottom:30px}
    .academy-v8-hero-stage{min-height:0;height:780px;border-radius:0}
    .academy-v8-hero-slide{display:flex;flex-direction:column}
    .academy-v8-hero-slide::after{display:none}
    .academy-v8-hero-media,
    [dir=ltr] .academy-v8-hero-media{
        position:relative;inset:auto;flex:0 0 39%;height:39%;width:100%;min-height:0;
        clip-path:polygon(0 0,100% 0,100% 78%,0 100%);
    }
    .academy-v8-hero-media img,
    [dir=ltr] .academy-v8-hero-media img{
        width:100%;height:100%;margin:0;object-position:center center;
    }
    .academy-v8-hero-placeholder{width:100%;height:100%;margin:0}
    .academy-v8-hero-media::after,
    [dir=ltr] .academy-v8-hero-media::after{
        background:linear-gradient(180deg,rgba(4,13,38,.08),rgba(5,20,54,.45));
    }
    .academy-v8-hero-copy,
    [dir=ltr] .academy-v8-hero-copy{
        position:relative;top:auto;right:auto;left:auto;bottom:auto;
        width:100%;max-width:none;height:auto;min-height:0;flex:1;
        justify-content:center;align-items:flex-start;
        padding:8px 8% 76px;margin:0;order:2;
    }
    .academy-v8-hero-copy h1{font-size:clamp(32px,5.3vw,53px);margin:11px 0}
    .academy-v8-hero-copy p{font-size:15px;line-height:1.8;margin:0}
    .academy-v8-hero-actions{margin:20px 0 15px}
}
@media(max-width:640px){
    .academy-v8-hero-stage{height:750px}
    .academy-v8-hero-media,
    [dir=ltr] .academy-v8-hero-media{flex-basis:35%;height:35%}
    .academy-v8-hero-copy,
    [dir=ltr] .academy-v8-hero-copy{padding:7px 23px 64px;justify-content:flex-start}
    .academy-v8-hero-copy h1{font-size:clamp(29px,7vw,40px);line-height:1.35;margin:12px 0}
    .academy-v8-hero-copy p{font-size:13.5px;line-height:1.8}
    .academy-v8-hero-eyebrow{font-size:12px;padding:7px 12px}
    .academy-v8-hero-actions{margin:16px 0 13px;gap:8px}
    .academy-v8-hero-actions .academy-v8-btn{font-size:12px;padding:10px 13px}
    .academy-v8-hero-controls{bottom:15px}
}
@media(max-width:380px){
    .academy-v8-hero-stage{height:780px}
    .academy-v8-hero-media,[dir=ltr] .academy-v8-hero-media{flex-basis:32%;height:32%}
}
@media(prefers-reduced-motion:no-preference){
    .academy-v8-hero-slide.is-active .academy-v8-hero-copy>*{
        animation:academyDiagonalReveal .75s both;
    }
    .academy-v8-hero-slide.is-active .academy-v8-hero-copy>*:nth-child(2){animation-delay:.12s}
    .academy-v8-hero-slide.is-active .academy-v8-hero-copy>*:nth-child(3){animation-delay:.21s}
    .academy-v8-hero-slide.is-active .academy-v8-hero-copy>*:nth-child(4){animation-delay:.3s}
    @keyframes academyDiagonalReveal{
        from{opacity:0;transform:translateY(16px)}
        to{opacity:1;transform:translateY(0)}
    }
}


/* ================================================================
   V10 • Zewail Cinematic Hero + authentic accreditation module
   Uses the existing slide images / titles / descriptions and brand logo.
   No SQL additions. Focuses on transform/opacity for GPU efficiency.
   ================================================================ */
.academy-v8-hero-stage {
    background:radial-gradient(ellipse at 87% 30%,#1d3f83 0%,#0c2455 45%,#071631 100%);
}
.academy-v8-hero-slide::before {
    content:"";position:absolute;z-index:0;pointer-events:none;
    inset:0 0 0 41%;
    background:
        radial-gradient(circle at 56% 11%,rgba(90,160,255,.15),transparent 26%),
        radial-gradient(circle at 95% 68%,rgba(26,234,209,.1),transparent 33%),
        repeating-linear-gradient(135deg,transparent 0 54px,rgba(156,202,255,.028) 55px,transparent 57px);
}
.academy-v8-hero-slide::after {display:none!important}
.academy-v8-hero-media {
    clip-path:polygon(0 0, 58% 0, 56.87% 4.46%, 55.82% 8.83%, 54.85% 13.13%, 53.94% 17.35%, 53.11% 21.49%, 52.33% 25.55%, 51.59% 29.55%, 50.90% 33.47%, 50.25% 37.32%, 49.62% 41.11%, 49.02% 44.83%, 48.42% 48.49%, 47.84% 52.09%, 47.25% 55.62%, 46.66% 59.11%, 46.05% 62.53%, 45.42% 65.90%, 44.76% 69.22%, 44.06% 72.49%, 43.32% 75.71%, 42.53% 78.89%, 41.68% 82.02%, 40.77% 85.11%, 39.79% 88.16%, 38.73% 91.18%, 37.58% 94.15%, 36.34% 97.09%, 35.00% 100.00%, 0 100%);
    overflow:hidden;will-change:opacity;
}
[dir="ltr"] .academy-v8-hero-media {clip-path:polygon(100% 0, 42% 0, 43.13% 4.46%, 44.18% 8.83%, 45.15% 13.13%, 46.06% 17.35%, 46.89% 21.49%, 47.67% 25.55%, 48.41% 29.55%, 49.10% 33.47%, 49.75% 37.32%, 50.38% 41.11%, 50.98% 44.83%, 51.58% 48.49%, 52.16% 52.09%, 52.75% 55.62%, 53.34% 59.11%, 53.95% 62.53%, 54.58% 65.90%, 55.24% 69.22%, 55.94% 72.49%, 56.68% 75.71%, 57.47% 78.89%, 58.32% 82.02%, 59.23% 85.11%, 60.21% 88.16%, 61.27% 91.18%, 62.42% 94.15%, 63.66% 97.09%, 65.00% 100.00%, 100% 100%)}
.academy-v8-hero-media img {
    width:67%;height:100%;display:block;object-fit:cover;
    transform-origin:50% 50%;opacity:1;
}
.academy-v8-hero-media::after {
    background:linear-gradient(90deg,rgba(2,12,34,.08),rgba(2,15,37,.3) 55%,rgba(4,16,43,.56));
}
.academy-v10-divider {
    position:absolute;inset:0;width:100%;height:100%;z-index:3;
    overflow:visible;pointer-events:none;filter:drop-shadow(0 0 11px rgba(112,204,246,.34));
}
.academy-v10-divider path {fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round}
.academy-v10-divider__stroke {stroke-width:3;opacity:.8}
.academy-v10-divider__glow {stroke:#75c7f5;stroke-width:13;opacity:.14;filter:blur(6px)}
[dir="ltr"] .academy-v10-divider {transform:scaleX(-1)}
.academy-v8-hero-copy {
    width:52%;padding-right:clamp(29px,6vw,116px);
    padding-left:clamp(48px,5vw,97px);
    align-items:flex-start;isolation:isolate;z-index:4;
}
[dir="ltr"] .academy-v8-hero-copy {
    padding-left:clamp(29px,6vw,116px);
    padding-right:clamp(48px,5vw,97px);
}
.academy-v8-hero-copy::before {
    content:"";position:absolute;z-index:-1;pointer-events:none;
    inset:8% 0 7% 13%;border:1px solid rgba(180,216,255,.065);
    border-radius:50%;transform:rotate(-13deg);
    box-shadow:0 0 0 42px rgba(180,216,255,.028),0 0 0 94px rgba(180,216,255,.019);
}
.academy-v10-brand {
    display:flex;align-items:center;justify-content:center;
    position:relative;isolation:isolate;
    width:clamp(95px,9.2vw,156px);height:clamp(95px,9.2vw,156px);
    margin-bottom:22px;
}
.academy-v10-brand__ring {
    position:relative;z-index:2;border-radius:50%;width:100%;height:100%;padding:7px;
    background:#fff;border:1px solid rgba(255,255,255,.9);
    box-shadow:0 18px 48px rgba(1,10,30,.35),0 0 0 8px rgba(255,255,255,.09);
}
.academy-v10-brand__ring img {display:block;width:100%;height:100%;object-fit:contain;border-radius:50%;background:#fff}
.academy-v10-brand__aura {
    position:absolute;z-index:1;width:142%;height:142%;border-radius:50%;
    border:1px dashed rgba(151,204,255,.38);
    box-shadow:0 0 0 14px rgba(94,173,255,.025);
}
.academy-v8-hero-copy h1 {
    font-size:clamp(34px,3.45vw,67px);max-width:760px;
    line-height:1.28;margin:20px 0 20px;
    overflow-wrap:anywhere;min-height:1.2em;
}
.academy-v10-type-caret {
    display:inline-block;vertical-align:middle;width:3px;height:.83em;
    margin-inline-start:5px;background:#94f6e5;
    border-radius:4px;opacity:0;
}
.academy-v8-hero-copy h1.is-typing .academy-v10-type-caret {opacity:1;animation:v10CaretBlink .67s steps(1) infinite}
@keyframes v10CaretBlink {50%{opacity:0}}
.academy-v8-hero-copy p {font-size:clamp(14px,1.1vw,19px);line-height:1.9}
.academy-v8-hero-actions {margin:24px 0 16px}
.academy-v10-floating-badges {
    display:flex;gap:12px;flex-wrap:wrap;margin-top:23px;
    pointer-events:none;
}
.academy-v10-floating-badges span {
    display:inline-flex;align-items:center;gap:9px;padding:9px 14px;
    color:#dceeff;font-size:12px;font-weight:750;border:1px solid rgba(255,255,255,.15);
    border-radius:100px;background:rgba(162,206,255,.085);
    box-shadow:0 9px 24px rgba(2,11,38,.12);backdrop-filter:blur(8px);
}
.academy-v10-floating-badges i {color:#7ee3e0;font-size:15px}
.academy-v8-hero-controls {z-index:7}

/* Restore the actual 6-card accreditation catalogue already used by the
   student portal About page, rather than an empty title and verify link. */
.academy-v10-accredit-section {
    position:relative;overflow:hidden;background:linear-gradient(135deg,#f7faff,#eff5ff);
}
.academy-v10-accredit-section::before {
    content:"";position:absolute;inset:-220px auto auto -190px;width:470px;height:470px;
    border-radius:50%;background:radial-gradient(circle,rgba(51,120,228,.12),transparent 65%);
    pointer-events:none;
}
.academy-v10-verify-link {
    display:inline-flex;align-items:center;justify-content:center;gap:10px;
    background:#fff;border:1px solid #dce7f8;border-radius:16px;
    color:#20509d;text-decoration:none;font-weight:800;
    padding:13px 18px;white-space:nowrap;box-shadow:0 8px 20px rgba(19,67,142,.05);
    transition:transform .3s,box-shadow .3s;
}
.academy-v10-verify-link:hover {transform:translateY(-4px);box-shadow:0 12px 26px #1f559022}
.academy-v10-accredit-grid {
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;
    margin-top:32px;
}
.academy-v10-accredit-card {
    position:relative;overflow:hidden;min-height:220px;
    display:flex;align-items:center;justify-content:center;flex-direction:column;gap:17px;
    padding:25px;text-align:center;
    background:#fff;border:1px solid #e3ebf9;border-radius:25px;
    box-shadow:0 14px 32px rgba(20,63,129,.06);
    backface-visibility:hidden;
    transition:box-shadow .35s ease,transform .35s ease,border-color .35s ease;
}
.academy-v10-accredit-card:hover {
    transform:translateY(-8px) rotate(-.3deg);
    border-color:#a3c5f8;box-shadow:0 21px 45px rgba(27,89,176,.15)
}
.academy-v10-accredit-icon {
    display:grid;place-items:center;position:relative;width:100px;height:100px;
    border:1px solid #e5edfa;border-radius:24px;
    background:linear-gradient(150deg,#f9fbff,#e7f1ff);color:#2454a4;
    font-size:25px;font-weight:900;letter-spacing:.02em;
}
.academy-v10-accredit-icon img {
    position:absolute;inset:0;width:100%;height:100%;padding:8px;
    object-fit:contain;border-radius:24px;background:#fff;
}
.academy-v10-accredit-card h3 {font-size:17px;font-weight:850;line-height:1.7;color:#122b59;margin:0}
.academy-v10-accredit-mark {position:absolute;top:18px;right:20px;color:#b9cbed}
[dir="ltr"] .academy-v10-accredit-mark {left:20px;right:auto}

/* Distinct section entrances, with staggered cards. */
@media(prefers-reduced-motion:no-preference) {
  .academy-v8-hero-slide.is-active .academy-v8-hero-media {animation:v10MediaFade .92s both}
  .academy-v8-hero-slide.is-active .academy-v8-hero-media img {animation:v10PhotoPullback 7.2s ease-out both}
  .academy-v8-hero-slide.is-active .academy-v10-divider__stroke,
  .academy-v8-hero-slide.is-active .academy-v10-divider__glow {
      stroke-dasharray:1650;stroke-dashoffset:1650;
      animation:v10DrawLine 1.85s cubic-bezier(.22,.68,.23,1) .14s both;
  }
  .academy-v8-hero-slide.is-active .academy-v10-brand {animation:v10BrandEnter .95s cubic-bezier(.18,.8,.24,1) .1s both}
  .academy-v8-hero-slide.is-active .academy-v10-brand__aura {animation:v10Orbit 24s linear infinite}
  .academy-v8-hero-slide.is-active .academy-v10-floating-badges span {animation:v10Float 4.8s ease-in-out infinite alternate}
  .academy-v8-hero-slide.is-active .academy-v10-floating-badges span:nth-child(2){animation-delay:1.1s}
  .academy-v8-hero-slide.is-active .academy-v10-brand__ring {animation:v10Breathe 5s ease-in-out infinite}
  @keyframes v10MediaFade {from{opacity:0}to{opacity:1}}
  @keyframes v10PhotoPullback {from{transform:scale(1.2);filter:brightness(.75)}to{transform:scale(1);filter:brightness(1)}}
  @keyframes v10DrawLine {to{stroke-dashoffset:0}}
  @keyframes v10BrandEnter {from{opacity:0;transform:scale(.65) translateY(24px)}to{opacity:1;transform:scale(1) translateY(0)}}
  @keyframes v10Orbit {to{transform:rotate(360deg)}}
  @keyframes v10Float {from{transform:translateY(0)}to{transform:translateY(-10px)}}
  @keyframes v10Breathe {50%{box-shadow:0 18px 55px rgba(1,10,30,.45),0 0 0 13px rgba(255,255,255,.05)}}
  html.v10-motion-ready [data-v10-motion] .academy-section-heading {opacity:0;transform:translateY(38px);transition:opacity 1s ease,transform 1s cubic-bezier(.2,.75,.3,1)}
  html.v10-motion-ready [data-v10-motion].v10-in-view .academy-section-heading {opacity:1;transform:none}
  html.v10-motion-ready [data-v10-motion] .academy-category-slide,
  html.v10-motion-ready [data-v10-motion] .academy-v8-proof,
  html.v10-motion-ready [data-v10-motion] .academy-v8-instructor,
  html.v10-motion-ready [data-v10-motion] .academy-partner-logo,
  html.v10-motion-ready [data-v10-motion] .academy-v10-accredit-card {
      opacity:0;transition-property:opacity,transform,box-shadow,border-color;
      transition-duration:.9s;transition-timing-function:cubic-bezier(.2,.78,.22,1);
      transition-delay:calc(var(--v10-i,0)*85ms);
  }
  html.v10-motion-ready [data-v10-motion="cascade"] .academy-category-slide,
  html.v10-motion-ready [data-v10-motion="cascade"] .academy-partner-logo {transform:translateY(65px) scale(.91)}
  html.v10-motion-ready [data-v10-motion="slide-in"] .academy-v8-proof,
  html.v10-motion-ready [data-v10-motion="slide-in"] .academy-v8-instructor {transform:translateX(56px) rotate(1.2deg)}
  html.v10-motion-ready [data-v10-motion="cinema"] .academy-v8-proof {transform:perspective(900px) rotateX(11deg) scale(.83)}
  html.v10-motion-ready [data-v10-motion="flip"] .academy-v10-accredit-card {transform:perspective(900px) rotateY(17deg) translateY(28px)}
  html.v10-motion-ready [data-v10-motion].v10-in-view .academy-category-slide,
  html.v10-motion-ready [data-v10-motion].v10-in-view .academy-v8-proof,
  html.v10-motion-ready [data-v10-motion].v10-in-view .academy-v8-instructor,
  html.v10-motion-ready [data-v10-motion].v10-in-view .academy-partner-logo,
  html.v10-motion-ready [data-v10-motion].v10-in-view .academy-v10-accredit-card {opacity:1;transform:none}
  html.v10-motion-ready [data-v10-motion].v10-in-view .academy-v10-accredit-card:hover {transform:translateY(-8px)}
  .academy-v8-proof img,.academy-v8-proof video,.academy-v8-instructor img {transition:transform .9s ease}
  .academy-v8-proof:hover img,.academy-v8-instructor:hover img {transform:scale(1.06)}
  .academy-v10-accredit-icon img {transition:transform .9s ease}
  .academy-v10-accredit-card:hover .academy-v10-accredit-icon img {transform:scale(1.08) rotate(-2deg)}
}
@media(max-width:1000px) {
  .academy-v8-hero-copy {padding-right:40px;padding-left:60px}
  [dir="ltr"] .academy-v8-hero-copy {padding-left:40px;padding-right:60px}
  .academy-v10-accredit-grid {gap:15px}
}
@media(max-width:900px) {
  .academy-v8-hero-media,
  [dir="ltr"] .academy-v8-hero-media {clip-path:polygon(0 0,100% 0,100% 87%,0 100%)}
  .academy-v10-divider {display:none}
  .academy-v8-hero-media img {width:100%}
  .academy-v8-hero-copy,[dir="ltr"] .academy-v8-hero-copy {padding:18px 6% 77px;align-items:flex-start}
  .academy-v8-hero-copy::before {inset:6% 0 8% 12%}
  .academy-v10-brand {width:81px;height:81px;margin-bottom:12px}
  .academy-v8-hero-copy h1 {font-size:clamp(27px,5vw,46px);margin:11px 0}
  .academy-v10-floating-badges {display:none}
  .academy-v10-accredit-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .academy-v8-hero-stage {height:780px}
  .academy-v8-hero-media,[dir="ltr"] .academy-v8-hero-media {flex-basis:33%;height:33%}
  .academy-v8-hero-copy,[dir="ltr"] .academy-v8-hero-copy {padding:12px 22px 70px}
  .academy-v10-brand {width:68px;height:68px;margin-bottom:10px}
  .academy-v8-hero-copy h1 {font-size:clamp(26px,6.6vw,36px)}
  .academy-v10-accredit-grid {gap:12px}
  .academy-v10-accredit-card {min-height:181px;padding:15px 10px;border-radius:18px;gap:10px}
  .academy-v10-accredit-icon {width:72px;height:72px;font-size:19px;border-radius:17px}
  .academy-v10-accredit-icon img {border-radius:17px}
  .academy-v10-accredit-card h3 {font-size:13px}
  .academy-v10-accredit-mark {top:9px;right:11px}
  .academy-v10-verify-link {font-size:12px;padding:11px 14px}
}
@media(prefers-reduced-motion:reduce){
 .academy-v10-divider__stroke,.academy-v10-divider__glow {stroke-dasharray:none!important;stroke-dashoffset:0!important}
 .academy-v8-hero-copy h1 .academy-v10-type-caret {display:none!important}
 [data-v8-reveal],[data-v8-reveal].is-visible {opacity:1!important;transform:none!important}
 .academy-v10-accredit-card,.academy-v10-verify-link {transition:none!important}
}

/* V10 refinements: reserve the entire heading height while letters type so
   the logo, CTA, and media do not jump during the animation. */
.academy-v10-heading{position:relative}
.academy-v10-heading__sizer{display:block;visibility:hidden;pointer-events:none}
.academy-v10-heading__animated{position:absolute;inset:0;display:block}
@media(prefers-reduced-motion:no-preference){
  html.v10-motion-ready [data-v10-motion="float-up"] .academy-v8-instructor {transform:translateY(72px) rotate(-4deg) scale(.95)}
  html.v10-motion-ready [data-v10-motion="zoom-pop"] .academy-v8-proof {transform:scale(.72) rotate(-2deg)}
  html.v10-motion-ready [data-v10-motion="marquee-in"] .academy-partner-logo {transform:translateX(-65px) scale(.96)}
  html.v10-motion-ready [data-v10-motion="float-up"] .academy-section-heading {transform:translateX(-36px)}
  html.v10-motion-ready [data-v10-motion="zoom-pop"] .academy-section-heading {transform:scale(.9)}
  html.v10-motion-ready [data-v10-motion="flip"] .academy-section-heading {transform:translateY(-35px)}
  html.v10-motion-ready [data-v10-motion="marquee-in"] .academy-section-heading {transform:translateX(45px)}
  body:has(.academy-v8-hero) .academy-header--v8 {animation:v10NavEnter .7s ease-out both}
  @keyframes v10NavEnter{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:translateY(0)}}
  body:has(.academy-v8-hero) .academy-footer.v10-in-view .academy-footer__main > * {animation:v10FooterEnter .8s ease both;animation-delay:calc(var(--v10-i,0)*120ms)}
  @keyframes v10FooterEnter {from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
}
@media(max-height:710px) and (min-width:901px) {
  .academy-v10-brand{width:90px;height:90px;margin-bottom:9px}
  .academy-v8-hero-copy h1{margin:10px 0;font-size:clamp(30px,3vw,55px)}
  .academy-v8-hero-actions{margin:14px 0 10px}
  .academy-v10-floating-badges{margin-top:10px}
}


/* V14 — TITLE ONLY. Preserve V10 cinematic hero without card or metrics.
   Keep the entire title on a single line inside the right-side copy boundary.
   JS scales the font down only when this slide's actual text needs more room. */
.academy-v8-hero-copy h1.academy-v10-heading {
    position:relative;
    display:block;
    width:100%;max-width:100%;min-width:0;
    font-size:clamp(28px,2.95vw,55px);
    line-height:1.24;
    min-height:1.24em;
    margin:18px 0 20px;
    white-space:nowrap;
    word-break:normal;
    overflow-wrap:normal;
    text-wrap:nowrap;
}
.academy-v10-heading__sizer{
    display:block;
    visibility:hidden;
    width:100%;
    white-space:nowrap;
    word-break:normal;
    overflow-wrap:normal;
    pointer-events:none;
}
.academy-v10-heading__animated{
    position:absolute;inset:0;display:block;
    white-space:nowrap;
    word-break:normal;
    overflow-wrap:normal;
}
@media(max-width:900px){
    .academy-v8-hero-copy h1.academy-v10-heading{
        font-size:clamp(24px,5.5vw,43px);
        margin:11px 0 14px;
    }
}
@media(max-width:560px){
    .academy-v8-hero-copy h1.academy-v10-heading{
        font-size:clamp(23px,6.2vw,36px);
        margin:9px 0 12px;
    }
}

/* Preserve the small, unboxed highlights shown in the requested earlier hero. */
.academy-v14-inline-metrics{
    display:flex;align-items:center;flex-wrap:wrap;gap:12px;
    margin-top:12px;color:#c8dafa;font-size:12px;font-weight:650;
}
.academy-v14-inline-metrics span{display:inline-flex;align-items:baseline;gap:3px}
.academy-v14-inline-metrics strong{color:#fff;font-weight:850;font-variant-numeric:tabular-nums}
@media(max-width:560px){.academy-v14-inline-metrics{margin-top:8px;font-size:11px;gap:8px}}

/* V15: headline-only correction, restoring the large V10/V12 title.
   No card, no new counters, no hero layout changes. */
@media (min-width: 901px) {
  .academy-v8-hero-copy h1.academy-v10-heading {
    width:min(100%,720px);
    max-width:100%;
    font-size:clamp(48px,3.8vw,68px);
    line-height:1.22;
    min-height:1.22em;
    margin:18px 0 20px;
    white-space:nowrap;
    word-break:normal;
    overflow-wrap:normal;
  }
}
@media (max-width:900px){
  .academy-v8-hero-copy h1.academy-v10-heading{
    font-size:clamp(32px,5.5vw,46px);
    width:100%;max-width:100%;white-space:nowrap;
  }
}
@media (max-width:560px){
  .academy-v8-hero-copy h1.academy-v10-heading{font-size:clamp(28px,6.7vw,40px)}
}
.academy-v8-hero-copy h1.academy-v10-heading .academy-v10-heading__sizer{
  width:max-content;max-width:none;white-space:nowrap;
}
.academy-v8-hero-copy h1.academy-v10-heading .academy-v10-heading__animated{
  width:max-content;max-width:none;white-space:nowrap;
  transform:scaleX(var(--hero-title-scale-x,1));
  transform-origin:right center;
}
[dir=ltr] .academy-v8-hero-copy h1.academy-v10-heading .academy-v10-heading__animated{
  transform-origin:left center;
}

/* ==============================================================
   V16 — MOBILE HERO WIDTH FIX (desktop intentionally untouched)
   V10 had a later width:52% overriding V9's responsive width:100%.
   Let the entire text panel span the phone beneath the full-width photo.
   ============================================================== */
@media (max-width:900px) {
  .academy-v8-hero-slide .academy-v8-hero-copy,
  [dir="ltr"] .academy-v8-hero-slide .academy-v8-hero-copy {
    position:relative;
    inset:auto;
    display:flex;
    flex:1 1 auto;
    width:100%;
    max-width:100%;
    min-width:0;
    height:auto;
    margin:0;
    box-sizing:border-box;
    padding:16px clamp(18px,5vw,32px) 78px;
    text-align:start;
    align-items:stretch;
    justify-content:center;
  }
  .academy-v8-hero-slide .academy-v8-hero-media,
  [dir="ltr"] .academy-v8-hero-slide .academy-v8-hero-media {
    flex:0 0 34%;
    width:100%;
    height:34%;
    max-width:100%;
    min-height:0;
    clip-path:polygon(0 0,100% 0,100% 86%,0 100%);
  }
  .academy-v8-hero-slide .academy-v8-hero-media img,
  [dir="ltr"] .academy-v8-hero-slide .academy-v8-hero-media img {
    display:block;width:100%;height:100%;object-fit:cover;
  }
  .academy-v8-hero-slide .academy-v8-hero-copy h1.academy-v10-heading {
    width:100%;max-width:100%;min-width:0;
    font-size:clamp(30px,6.7vw,44px);
    line-height:1.3;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:normal;
    margin:12px 0 14px;
  }
  .academy-v8-hero-slide .academy-v8-hero-copy h1.academy-v10-heading .academy-v10-heading__sizer,
  .academy-v8-hero-slide .academy-v8-hero-copy h1.academy-v10-heading .academy-v10-heading__animated {
    width:100%;max-width:100%;min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:normal;
    transform:none;
  }
  .academy-v8-hero-slide .academy-v8-hero-copy p {
    width:100%;max-width:100%;
    margin:0;line-height:1.8;
  }
  .academy-v8-hero-slide .academy-v8-hero-copy .academy-v8-hero-actions {
    width:100%;margin:16px 0 12px;
    justify-content:flex-start;
  }
  .academy-v8-hero-slide .academy-v8-hero-copy .academy-v8-hero-trust,
  .academy-v8-hero-slide .academy-v8-hero-copy .academy-v14-inline-metrics {
    max-width:100%;
  }
  .academy-v8-hero-slide .academy-v8-hero-copy .academy-v10-brand {
    align-self:flex-start;
  }
  .academy-v8-hero-slide .academy-v8-hero-copy::before {
    inset:5% 0 10% 5%;
  }
  .academy-v8-hero-slide .academy-v10-floating-badges {
    max-width:100%;
  }
}
@media (max-width:560px) {
  .academy-v8-hero-stage {height:780px}
  .academy-v8-hero-slide .academy-v8-hero-copy,
  [dir="ltr"] .academy-v8-hero-slide .academy-v8-hero-copy {
    padding:12px 21px 73px;
    justify-content:flex-start;
  }
  .academy-v8-hero-slide .academy-v8-hero-copy h1.academy-v10-heading {
    font-size:clamp(30px,7.7vw,38px);
  }
}
@media(max-width:380px){
  .academy-v8-hero-stage{height:830px}
  .academy-v8-hero-slide .academy-v8-hero-copy,
  [dir="ltr"] .academy-v8-hero-slide .academy-v8-hero-copy {padding-inline:16px}
}

/* V18: The mobile menu toggle is now physically INSIDE the white header row.
   This avoids absolute positioning against the 0-height nav shell. */
@media (max-width:720px) {
  .academy-header--v8 {position:relative;z-index:100}
  .academy-header--v8 .academy-header-mobile-brand {
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%;
    min-height:64px;
    height:auto;
    box-sizing:border-box;
    padding:9px 16px!important;
    gap:12px;
    background:#fff;
    position:relative;
    z-index:2;
  }
  .academy-header--v8 .academy-mobile-header-logo {display:inline-flex;flex:0 0 auto;align-items:center}
  .academy-header--v8 .academy-mobile-header-logo img {width:44px;height:44px;object-fit:contain;display:block}
  .academy-header--v8 .academy-mobile-header-controls {
    display:flex;align-items:center;gap:10px;min-width:0;
  }
  .academy-header--v8 .academy-mobile-header-controls strong {
    margin:0!important;
    color:#16366f;font-size:clamp(12px,3vw,14px);line-height:1.45;
    white-space:normal;max-width:190px;
  }
  .academy-header--v8 .academy-nav-wrap,
  .academy-header--v8 .academy-nav-shell {
    min-height:0!important;height:0!important;
    margin:0!important;padding:0!important;border:0!important;
    background:transparent!important;box-shadow:none!important;
    overflow:visible!important;
  }
  .academy-header--v8 .academy-nav-shell > .academy-nav-toggle {display:none!important}
  .academy-header--v8 .academy-header-mobile-brand .academy-mobile-menu-toggle {
    position:static!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
    transform:none!important;float:none!important;
    width:44px!important;height:44px!important;
    min-width:44px!important;min-height:44px!important;
    margin:0!important;padding:0!important;
    display:inline-flex!important;flex:0 0 44px!important;
    justify-content:center!important;align-items:center!important;
    color:#173a79!important;background:#edf3ff!important;
    border:1px solid #d5e2f7!important;border-radius:13px!important;
    box-shadow:none!important;z-index:auto!important;
    cursor:pointer;
  }
  .academy-header--v8 .academy-header-mobile-brand .academy-mobile-menu-toggle i {font-size:25px;line-height:1}
  .academy-header--v8 .academy-header-mobile-brand .academy-mobile-menu-toggle:focus-visible {outline:3px solid #68c7f2;outline-offset:2px}
  .academy-header--v8 .academy-navigation {
    position:absolute!important;top:100%!important;left:12px!important;right:12px!important;
    width:auto!important;max-height:calc(100dvh - 84px);overflow-y:auto;
    z-index:109;border-radius:18px;box-shadow:0 20px 45px rgba(9,24,63,.18);
  }
  .academy-header--v8 .academy-navigation:not(.is-open) {display:none!important}
  .academy-header--v8 .academy-navigation.is-open {display:flex!important;flex-direction:column;align-items:stretch}
}
