/* header dropdowns (13 Nov 2026): Opportunities, Why Azerbaijan, ICT Ecosystem, News & Events */
/* each panel opens under its own item (Magi, 23 Nov 2026); nav.js nudges it left if it would run off the screen.
   Closed panels are display:none, so they never widen the page */
.menu .dd{position:relative}
.dd-btn{text-decoration:none;display:flex;align-items:center;gap:8px;padding:10px 14px;border:0;border-radius:10px;background:none;font:inherit;font-size:15px;color:var(--ink-2);white-space:nowrap;cursor:pointer;transition:color .2s,background .2s}
.dd-btn:hover,.dd-btn[aria-expanded=true],.dd-btn[aria-current]{color:#fff;background:rgba(255,255,255,.1)}
.dd-chev{width:12px;height:12px;flex:none;opacity:.7;transition:transform .3s var(--ease)}
.dd-btn[aria-expanded=true] .dd-chev{transform:rotate(180deg)}

.mm{position:absolute;top:calc(100% + 16px);left:0;transform:translate(var(--shift,0),0);z-index:70;
  grid-auto-flow:column;grid-template-rows:repeat(var(--rows),auto);grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;
  width:min(660px,calc(100vw - 32px));padding:14px;border-radius:22px;background:#fff;color:#1b1630;
  box-shadow:0 0 0 1px rgba(27,22,48,.06),0 30px 70px -24px rgba(12,4,48,.55);
  display:none}
.mm.mm-1{grid-template-columns:minmax(0,1fr);width:300px}
.mm::before{content:"";position:absolute;left:0;right:0;top:-18px;height:18px} /* keeps hover alive across the gap */
.dd.open .mm{display:grid;animation:mmIn .25s var(--ease)}
@keyframes mmIn{from{opacity:0;translate:0 -6px}to{opacity:1;translate:0 0}}
.mm a{display:flex;align-items:center;gap:14px;min-height:56px;padding:8px 12px;border-radius:14px;text-decoration:none;color:#2b2645;font-size:16px;line-height:1.3;transition:background .18s,color .18s}
.mm a:hover,.mm a:focus-visible{background:#f4f0fe;color:#5a07c4}
.mm a[aria-current]{color:#5a07c4;font-weight:600}
.mm-ic{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:12px;background:#f1ebfe;color:var(--violet,#7101E3);transition:background .18s,color .18s}
.mm-ic svg{width:19px;height:19px;stroke-width:1.8}
.mm a:hover .mm-ic,.mm a:focus-visible .mm-ic{background:var(--violet,#7101E3);color:#fff}
.mm a:focus-visible{outline:2px solid var(--violet,#7101E3);outline-offset:-2px}

.sheet-menu a.sm-link{display:block;padding:14px 0;font-size:26px;border-bottom:1px solid rgba(255,255,255,.1)}

/* phone menu: one fold-out group per dropdown (scoped tightly: the home page styles every details/summary as an FAQ card) */
.sheet-menu .sm-group{margin:0;border-radius:0;background:none;border-bottom:1px solid rgba(255,255,255,.1)}
.sheet-menu .sm-group summary{display:flex;align-items:center;justify-content:space-between;gap:12px;position:static;padding:14px 0;font-size:26px;font-weight:400;letter-spacing:-.02em;color:#fff;list-style:none;cursor:pointer}
.sheet-menu .sm-group summary::after{display:none}
.sheet-menu .sm-group summary::-webkit-details-marker{display:none}
.sheet-menu .sm-group summary .dd-chev{width:16px;height:16px}
.sheet-menu .sm-group[open] summary .dd-chev{transform:rotate(180deg)}
.sheet-menu .sm-group>div{display:grid;max-width:none;padding:0 0 14px;font-size:17px;color:inherit}
.sheet-menu .sm-group a{font-size:17px;letter-spacing:0;padding:9px 0;color:var(--ink-2)}
.sheet-menu .sm-group a:hover{color:#fff}

/* Get Assistance sits in the Register spot on every page but the ICT one; it is wider, so the bar leaves more room */
@media (min-width:761px){body:has(.reg-ga) .bar{padding-right:186px}}

/* ===== search button and panel, door menu (MDDT feedback 19 Nov 2026); Magi's logo and hero are never restyled ===== */
.srch{display:grid;place-items:center;flex:none;width:52px;height:52px;border:0;border-radius:16px;color:#fff;cursor:pointer;transition:background .25s}
.srch:hover{background:rgba(50,28,110,.75)}.srch svg{width:20px;height:20px}
@media (max-width:1180px){.srch{display:none}}
/* Register in Technopark sits in the Register spot: wider, so the bar leaves more room */
@media (min-width:761px){body:has(.reg-tp) .bar{padding-right:236px}}
/* Opportunities: the three doors */
.mm.mm-doors{width:380px}
.mm a small{display:block;margin-top:2px;font-size:13.5px;font-weight:400;color:#6b6585}
/* search panel */
/* header fit (23 Nov 2026): with Get Assistance and Register in Technopark, the new search button goes first on narrower screens, then the language (it stays in the phone menu) */
@media (max-width:1499px){body:has(.reg-tp) .srch{display:none}}
@media (max-width:1379px){body:has(.reg-tp) .langsel{display:none}}
.sheet-menu button.small{all:unset;cursor:pointer;font-size:18px;color:var(--ink-2);padding:8px 0}
/* ===== header (Magi, 27 Nov 2026): no background behind the logo or the menu, Register in Technopark the same size as
   Get Assistance (in purple), and the search button always on desktop ===== */
.bar .brand.glass{background:none;backdrop-filter:none;-webkit-backdrop-filter:none;width:96px;padding:10px 0}
.bar .menu.glass{background:none;backdrop-filter:none;-webkit-backdrop-filter:none;padding:0}
@media (min-width:761px){
  .btn.reg{height:52px;padding:0 22px;border-radius:16px;font-size:15px;box-shadow:none}
  body:has(.reg-tp) .bar{padding-right:212px}
}
@media (min-width:1281px){body:has(.reg-tp) .srch{display:grid}}
@media (min-width:1340px){body:has(.reg-tp) .langsel{display:block}}
html{scroll-padding-top:24px}
/* Get Assistance and Register in Technopark on one line (Magi, 27 Nov 2026): Register sits on the bar's centre line */
@media (min-width:761px){.btn.reg{top:19px}body:has(.hero) .btn.reg{top:20px}}
/* inner pages (Magi, 27 Nov 2026): lighter header buttons on the coloured heroes, Register in Technopark in white */
body:not(:has(.hero)) .bar .glass:not(.menu):not(.brand){background:rgba(255,255,255,.14)}
body:not(:has(.hero)) .bar .srch:hover,body:not(:has(.hero)) .bar .talk:hover{background:rgba(255,255,255,.24)}
@media (min-width:761px){body:not(:has(.hero)) .btn.reg{background:#fff;color:var(--violet,#7101E3)}body:not(:has(.hero)) .btn.reg:hover{background:#f1e8ff}}
/* "Explore … →" at the top of every menu (Magi, 30 Nov 2026) */
.mm a.mm-x{grid-column:1/-1;grid-row:1;display:block;min-height:0;padding:14px 16px;margin-bottom:4px;border-radius:14px;background:#f6f2ff}
.mm a.mm-x b{display:block;font-size:16px;font-weight:600;color:#5a07c4}
.mm a.mm-x small{display:block;margin-top:3px;font-size:13.5px;color:#6b6585}
.mm a.mm-x:hover,.mm a.mm-x:focus-visible{background:#ece3ff}
.sheet-menu .sm-group a.sm-x{font-weight:600;color:#fff}
/* menu text wraps inside its panel on every page (Magi, 30 Nov 2026) */
.menu .mm a,.mm a small{white-space:normal}
.mm:not(.mm-1){width:min(720px,calc(100vw - 32px))}
.mm.mm-doors{width:min(420px,calc(100vw - 32px))}
/* Magi, 30 Nov 2026: Learn more (outline buttons) turn purple on hover; no explanation text on the right of section titles */
.btn-ghost-dk:hover{background:var(--violet,#7101E3);color:#fff;box-shadow:none}
.head>p.sub{display:none}
/* phones: the floating Register in Technopark button only on the tech companies page (Magi, 30 Nov 2026) */
@media (max-width:760px){body:not(.tech-companies) .btn.reg{display:none!important}}
/* tech companies (Magi, 30 Nov 2026): Register in Technopark frozen at the bottom centre on desktop too, as on phones */
@media (min-width:761px){
  body.tech-companies .bar{padding-right:0}
  body.tech-companies .btn.reg{position:fixed;top:auto!important;bottom:24px;left:0;right:0;margin:0 auto;width:max-content;height:56px;padding:0 32px;font-size:16px;border-radius:16px;background:var(--violet,#7101E3)!important;color:#fff!important;box-shadow:0 18px 40px -14px rgba(30,6,110,.55);transform:translateY(160%);opacity:0;pointer-events:none;transition:transform .45s var(--ease,ease),opacity .3s}
  body.tech-companies.past-hero:not(.menu-open) .btn.reg{transform:none;opacity:1;pointer-events:auto}
  body.tech-companies .btn.reg:hover{background:#5a07c4!important}
}
@media (min-width:1281px){body.tech-companies .srch{display:grid}}
@media (min-width:1340px){body.tech-companies .langsel{display:block}}
/* the home logo the same size as on the inner pages, in the new version (Magi, 2 Dec 2026) */
body.jis .bar .brand.glass{width:110px}
/* story video: play button and player (every page, the home page too; Magi, 2 Dec 2026) */
.ph,.sph{position:relative}
.yt-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:76px;height:76px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:var(--violet);cursor:pointer;box-shadow:0 18px 40px -12px rgba(20,10,51,.5);transition:transform .3s}
.yt-play svg{width:30px;height:30px;margin-left:4px}.yt-play:hover{transform:translate(-50%,-50%) scale(1.08)}
.yt-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px;background:rgba(10,6,25,.82)}
.yt-box{position:relative;width:min(1000px,100%);aspect-ratio:16/9;border-radius:18px;overflow:hidden;background:#000}
.yt-box iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.yt-x{position:absolute;top:10px;right:10px;z-index:2;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.9);font-size:24px;line-height:1;cursor:pointer}
/* Register in Technopark: the header button keeps its 16px corners; the floating one (tech companies) is round (Magi, 2 Dec 2026) */
body.jis.tech-companies .btn.reg{border-radius:999px}
@media (min-width:761px){body.jis:not(.tech-companies) .btn.reg{border-radius:16px}}

/* ===== round 8 (Magi, 2 Dec 2026) ===== */
/* every header button the same height; the home header the same as the inner pages */
body.jis .bar .dd-btn{min-height:52px;display:inline-flex;align-items:center;border-radius:16px}
body.jis .bar .brand.glass{padding:6px 0}
/* play button: bottom left of the photo, never in the middle */
.yt-play{left:18px;top:auto;bottom:18px;transform:none;width:64px;height:64px}
.yt-play:hover{transform:scale(1.08)}
.yt-play svg{width:26px;height:26px}
/* menus fit their items: two columns side by side, no wide gap; the "Explore … →" box always full width (Magi, 2 Dec 2026) */
body.jis .mm:not(.mm-1){width:auto;max-width:calc(100vw - 32px);grid-template-columns:repeat(2,max-content);column-gap:28px}
body.jis .mm:not(.mm-1) a.mm-x{justify-self:stretch;width:auto}
/* play button half the size (Magi, 2 Dec 2026) */
.yt-play{width:32px;height:32px;left:14px;bottom:14px}
.yt-play svg{width:14px;height:14px;margin-left:2px}
/* home header = inner header: same gaps, so search and language never move (Magi, 2 Dec 2026) */
body.jis .bar{gap:12px}
/* one story on its own is a big photo: its play button bigger (Magi, 3 Dec 2026) */
.js-n1 .yt-play{width:64px;height:64px;left:24px;bottom:24px}
.js-n1 .yt-play svg{width:26px;height:26px;margin-left:3px}

/* ===== search (redesigned, Magi 3 Dec 2026): dark full-screen panel in the site's style ===== */
html.sx-open{overflow:hidden}
.sx{position:fixed;inset:0;z-index:200;overflow:auto;background:rgba(17,8,44,.97);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);color:#fff;animation:sxIn .22s ease}
.sx[hidden]{display:none}
@keyframes sxIn{from{opacity:0}to{opacity:1}}
.sx::before{content:'';position:fixed;left:50%;top:-30vh;width:90vw;height:70vh;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(113,1,227,.35),transparent);pointer-events:none}
.sx-box{position:relative;width:min(920px,100%);margin:0 auto;padding:clamp(20px,5vh,56px) 16px 48px}
.sx-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:clamp(20px,5vh,48px)}
.sx-k{font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.55)}
.sx-x{display:grid;place-items:center;width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;cursor:pointer;transition:background .2s}
.sx-x:hover{background:rgba(255,255,255,.2)}.sx-x svg{width:20px;height:20px}
.sx-in{display:flex;align-items:center;gap:16px;padding:0 0 18px;border-bottom:2px solid rgba(255,255,255,.18);transition:border-color .2s}
.sx-in:focus-within{border-color:#9a4dff}
.sx-in svg{width:clamp(26px,3vw,34px);height:clamp(26px,3vw,34px);color:#b98bff;flex:none}
.sx-in input{flex:1;min-width:0;border:0;outline:0;background:none;color:#fff;font:inherit;font-size:clamp(26px,3.4vw,44px);font-weight:500;letter-spacing:-.02em}
.sx-in input::placeholder{color:rgba(255,255,255,.35)}
.sx-in input::-webkit-search-cancel-button{display:none}
.sx-res{padding-top:28px}
.sx-h{margin:0 0 14px;font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.5)}
.sx-pop{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:36px}
.sx-pop button{height:44px;padding:0 18px;border:0;border-radius:99px;background:rgba(255,255,255,.1);color:#fff;font:inherit;font-size:15px;cursor:pointer;transition:background .2s}
.sx-pop button:hover{background:#7101e3}
.sx-br{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sx-br a{display:flex;flex-direction:column;gap:8px;padding:20px;border-radius:20px;background:rgba(255,255,255,.06);color:#fff;text-decoration:none;transition:background .2s,transform .2s}
.sx-br a:hover{background:rgba(255,255,255,.12);transform:translateY(-2px)}
.sx-br b{font-size:17px;font-weight:600;margin-top:6px}.sx-br small{font-size:14px;line-height:1.4;color:rgba(255,255,255,.62)}
.sx-ic{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:rgba(154,77,255,.2);color:#c9a6ff}
.sx-ic svg{width:22px;height:22px}
.sx-r{display:flex;align-items:center;gap:16px;padding:14px 16px;margin:0 -16px;border-radius:18px;color:#fff;text-decoration:none;transition:background .15s}
.sx-r:hover,.sx-r.on,.sx-r:focus-visible{background:rgba(255,255,255,.08);outline:0}
.sx-t{flex:1;min-width:0;display:grid;gap:3px}
.sx-t b{font-size:18px;font-weight:600;letter-spacing:-.01em}
.sx-t small{font-size:14.5px;line-height:1.4;color:rgba(255,255,255,.6);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sx mark{background:none;color:#c9a6ff}
.sx-c{flex:none;font-size:12.5px;font-weight:600;padding:5px 11px;border-radius:99px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.75)}
.sx-go{flex:none;color:rgba(255,255,255,.35);transition:color .15s,transform .15s}.sx-go svg{width:20px;height:20px;display:block}
.sx-r:hover .sx-go,.sx-r.on .sx-go{color:#fff;transform:translateX(3px)}
.sx-none{display:grid;justify-items:start;gap:10px;padding:8px 0}
.sx-none b{font-size:22px;font-weight:600}.sx-none span{color:rgba(255,255,255,.65)}.sx-none .btn{margin-top:8px}
.sx .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:760px){.sx-br{grid-template-columns:repeat(2,minmax(0,1fr))}.sx-c{display:none}.sx-br a{padding:16px}}
