/* Full-width mega menu (What we do / Who we are / Careers).
   Desktop (>=1061px): dark full-width panel. Below that the original dropdown / mobile menu behaviour is kept. */
.mega-arrow{display:none}
.mega-promo,.mega-subs{display:none}
.mega-inner{display:block}
.mega-cats a,.mega-links a{display:block}

@media(min-width:1061px){
  /* panel is positioned against the (fixed) header, so it spans the full width */
  .header .mega-item{position:static!important}
  .header .mega-item>a{position:relative}
  .header .mega-item:hover>a:before,
  .header .mega-item:focus-within>a:before{content:"";position:absolute;left:-18px;right:-18px;top:100%;height:48px}

  .header .mega-item>.mega-panel{
    position:absolute!important;top:100%!important;left:0!important;right:auto!important;
    width:100%!important;min-width:0!important;margin:0!important;
    background:#061a37!important;border:0!important;border-top:1px solid #ffffff1c!important;border-radius:0!important;
    padding:0!important;box-shadow:0 34px 60px #00000070!important;
    opacity:0;visibility:hidden;pointer-events:none;
    transform:translateY(12px)!important;
    transition:opacity .25s ease,transform .35s cubic-bezier(.16,.84,.34,1),visibility .25s ease!important;
    max-height:calc(100vh - 80px);overflow:auto;z-index:40
  }
  .header .mega-item:hover>.mega-panel,
  .header .mega-item:focus-within>.mega-panel{opacity:1;visibility:visible;pointer-events:auto;transform:none!important}

  /* header bar turns solid so it joins the panel seamlessly */
  .header:has(.mega-item:hover>.mega-panel),
  .header:has(.mega-item:focus-within>.mega-panel){background:#061a37!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}

  .mega-inner{display:grid;grid-template-columns:minmax(280px,.9fr) 1.7fr;gap:72px;width:min(1180px,90%);margin:0 auto;padding:54px 0 58px;min-height:330px}
  .mega-inner.has-subs{grid-template-columns:minmax(280px,.95fr) minmax(220px,.7fr) 1.6fr;gap:56px}

  .mega-promo,.mega-subs{display:block}
  .mega-promo h3{font-family:var(--display,'Sora',Inter,Arial,sans-serif);font-weight:500;font-size:clamp(24px,2.2vw,31px);line-height:1.25;letter-spacing:-.01em;color:#fff;margin:0 0 20px;max-width:380px}
  .mega-promo p{color:#8da2bd;font-size:15px;line-height:1.9;margin:0 0 36px;max-width:380px}
  .mega-promo a.mega-cta{display:inline-flex;align-items:center;gap:12px;font-size:16px;font-weight:500;color:#fff!important;opacity:1!important;padding:0!important;background:none!important;white-space:normal;transform:none!important}
  .mega-promo a.mega-cta .mega-arrow{display:inline-block;transition:transform .25s ease}
  .mega-promo a.mega-cta:hover .mega-arrow{transform:translateX(5px)}
  .mega-promo a.mega-cta:hover{color:#35c7ff!important}

  .mega-links,.mega-cats{display:grid;grid-template-columns:1fr;align-content:start}
  .mega-sub{display:none;column-gap:48px;align-content:start}
  .mega-sub.is-active{display:grid;grid-template-columns:1fr;animation:megaFade .25s ease}
  .mega-sub.cols-2.is-active{grid-template-columns:1fr 1fr}
  @keyframes megaFade{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}

  .mega-links a,.mega-cats a,.mega-sub a{display:flex!important;align-items:center;justify-content:space-between;gap:16px;
    padding:15px 4px!important;margin:0!important;border:0!important;border-bottom:1px solid #ffffff22!important;border-radius:0!important;
    font-size:15.5px!important;font-weight:400;line-height:1.4;color:#a9b9cf!important;opacity:1!important;background:none!important;
    white-space:normal!important;transform:none!important;transition:color .2s ease,border-color .2s ease,padding .2s ease!important}
  .mega-links a:hover,.mega-cats a:hover,.mega-sub a:hover{color:#fff!important;border-bottom-color:#35c7ff!important;padding-left:10px!important;background:none!important}
  .mega-cats a.is-active{color:#fff!important;border-bottom-color:#35c7ff!important}
  .mega-links a.is-current,.mega-sub a.is-current{color:#35c7ff!important}
  .mega-links .mega-arrow,.mega-sub .mega-arrow,.mega-cats .mega-arrow{display:inline-block;flex:none;width:9px;height:9px;border-right:2px solid currentColor;border-top:2px solid currentColor;transform:rotate(45deg);margin-right:6px;opacity:.9}
  /* categories with no sub-list (e.g. Solutions) show no chevron, like the reference menu */
  .mega-cats a:not([data-target]) .mega-arrow{visibility:hidden}

  /* kill the old per-link underline/hover effects inside the panel */
  .mega-panel a:before,.mega-panel a:after{display:none!important}
}

/* tablet / mobile: keep the compact original behaviour */
@media(max-width:1060px){
  .mega-subs{display:none!important}
  .mega-cats a,.mega-links a{display:block}
}
