/* Miraavi Event Ribbon 1.1.0 — the team's design (miraavi-gitex-homepage-ribbon.html), class names
   kept. The design's rules come first, unchanged apart from the logo (<img> instead of a CSS
   background) and the outer band; the WORDPRESS block at the bottom guards against theme styles. */
.mgx{--ink:#F4F6FF;--mut:#A9B2CF;--grad:linear-gradient(100deg,#7EA2FF 0%,#4B7BFF 30%,#8C6BFF 58%,#FF4B00 85%,#FF7A1A 100%);
  position:relative;overflow:hidden;font-family:Nunito,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);
  background:#05060F;box-sizing:border-box}
.mgx-band{position:relative;background:radial-gradient(520px 220px at 88% 120%,rgba(255,75,0,.32),transparent 70%),radial-gradient(640px 260px at 8% -40%,rgba(75,123,255,.38),transparent 70%),#05060F}
.mgx *,.mgx *::before,.mgx *::after{box-sizing:border-box}
.mgx-band::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--grad)}
.mgx-in{max-width:1240px;margin:0 auto;padding:26px 28px;display:flex;align-items:center;gap:28px}
.mgx-logo{flex:none;display:grid;place-items:center;width:132px;height:62px;border-radius:16px;background:#fff}
.mgx-logo img{display:block;width:104px;height:38px;object-fit:contain;max-width:none}
.mgx-txt{flex:1;min-width:0}
.mgx-txt h2{margin:0;font-size:clamp(19px,2vw,24px);line-height:1.25;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.mgx-txt p{margin:6px 0 0;font-size:15px;line-height:1.5;color:var(--mut)}
.mgx-txt p b{color:var(--ink);font-weight:700}
.mgx-count{flex:none;display:flex;align-items:baseline;gap:8px;padding:10px 18px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.mgx-count strong{font-size:34px;line-height:1;font-weight:800;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.mgx-count span{font-size:13px;line-height:1.25;color:var(--mut)}
.mgx-count.live{border-color:rgba(43,227,139,.4);background:rgba(43,227,139,.08);align-items:center}
.mgx-count.live strong{display:none}
.mgx-count.live span{color:#8EF3C4;font-weight:700;font-size:14px}
.mgx-count.live span::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:#2BE38B;vertical-align:1px;animation:mgxpulse 2s infinite}
@keyframes mgxpulse{0%{box-shadow:0 0 0 0 rgba(43,227,139,.6)}70%,100%{box-shadow:0 0 0 10px rgba(43,227,139,0)}}
.mgx-cta{flex:none;display:flex;align-items:center;gap:18px}
.mgx-btn{display:inline-flex;align-items:center;gap:10px;height:50px;padding:0 22px;border-radius:99px;background:#fff;color:#05060D;font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap;transition:transform .15s}
.mgx-btn:hover{transform:translateY(-1px)}
.mgx-btn svg{width:16px;height:16px}
.mgx{cursor:pointer}
.mgx:hover .mgx-btn{transform:translateY(-1px)}
.mgx a:focus-visible{outline:2px solid #7EA2FF;outline-offset:3px}
@media(max-width:900px){
  .mgx-in{flex-wrap:wrap;gap:16px 18px;padding:24px 22px}
  .mgx-txt{flex:1 1 calc(100% - 160px)}
  .mgx-count{order:3}
  .mgx-cta{order:4;margin-left:auto}
}
@media(max-width:560px){
  .mgx-in{padding:22px 18px}
  .mgx-logo{width:104px;height:50px;border-radius:12px}.mgx-logo img{width:84px;height:31px}
  .mgx-txt{flex-basis:100%}
  .mgx-count{padding:8px 14px}.mgx-count strong{font-size:28px}
  .mgx-cta{flex:1;margin-left:0}.mgx-btn{width:100%;justify-content:center}
}
@media(prefers-reduced-motion:reduce){.mgx *{animation:none!important;transition:none!important}}

/* ---------------------------------------------------------------- WORDPRESS */
/* Theme styles for h2/p/a/b would otherwise leak in. */
.mgx h2,.mgx p,.mgx b,.mgx strong,.mgx span,.mgx a{font-family:inherit;text-transform:none;font-style:normal}
.mgx h2,.mgx p{padding:0;border:0;background:none}
.mgx .mgx-btn,.mgx .mgx-btn:hover,.mgx .mgx-btn:focus,.mgx .mgx-btn:visited{color:#05060D;text-decoration:none;background:#fff}
.mgx .mgx-btn svg{flex:none}
/* Above the hero: the site header is fixed, so the ribbon starts below it. The padding (measured by
   ribbon.js) sits under the header in the ribbon's own dark colour; the hero then needs only a
   small gap instead of its usual header clearance. */
.mgx--before{--mgx-top:87px;padding-top:var(--mgx-top);z-index:5}
.mgx--before + .hero-wrap.main-banner{padding-top:8px!important}
/* Top of the page: the ribbon is the first thing in the page, the fixed header sits right under it
   and ribbon.js moves the header up as the ribbon scrolls away (header top = ribbon height − scroll),
   so the hero and slider keep their usual place under the header. The theme turns the header
   sticky after 50px of scroll, which would push the page down by the header's height; keep it fixed
   instead. Not between 1024 and 1400px: there the theme scales the page to 0.9 and a fixed element
   inside it scrolls with the page, so the theme's own sticky switch is left alone. */
.mgx--top{z-index:1001}
@media (max-width:1023px),(min-width:1401px){.mgx--top ~ .main-header.shrink{position:fixed}}
