/* NICE Gate Opener UAE: 3D category carousel, source-based redesign, isolated to homepage */
#nice-gate-hero{--nc-blue:var(--nice-blue,#0c6bbb);--nc-blue2:var(--nice-blue2,#09559c);--nc-dark:var(--nice-dark,#092d56);--nc-light:#67b9f1;--nc-ink:#f7fbff;--nc-muted:#c6d9ed;position:relative;isolation:isolate;overflow:hidden;margin-top:15px;padding:62px 0 51px;background:radial-gradient(ellipse at 85% 50%,rgba(12,107,187,.46),transparent 57%),linear-gradient(125deg,#061c38 0%,var(--nc-dark) 65%,#0b4478);color:var(--nc-ink)}
#nice-gate-hero:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.4;background-image:linear-gradient(rgba(140,202,254,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(140,202,254,.08) 1px,transparent 1px);background-size:42px 42px}
#nice-gate-hero *,#nice-gate-hero *:before,#nice-gate-hero *:after{box-sizing:border-box}
#nice-gate-hero a{text-decoration:none}
#nice-gate-hero button:focus-visible,#nice-gate-hero a:focus-visible{outline:3px solid #acdfff;outline-offset:3px}
#nice-gate-hero .nice-carousel-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.25fr);align-items:center;gap:clamp(18px,3vw,46px);min-height:490px}
#nice-gate-hero .nice-carousel-intro{position:relative;z-index:12;min-width:0}
#nice-gate-hero .nice-carousel-eyebrow{display:inline-flex;align-items:center;gap:9px;color:#b1dfff;letter-spacing:.13em;font-size:12px;font-weight:700}
#nice-gate-hero .nice-carousel-eyebrow i{font-size:9px;color:var(--nc-light)}
#nice-gate-hero h1{font-size:clamp(33px,3.5vw,50px);font-weight:800;line-height:1.1;letter-spacing:-.035em;color:#fff;margin:20px 0 17px}
#nice-gate-hero h1 em{font-style:normal;color:#83ccff}
#nice-gate-hero .nice-carousel-lead{max-width:550px;color:#d3e2f1;font-size:clamp(15px,1.3vw,17px);line-height:1.76;margin:0}
#nice-gate-hero .nice-carousel-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:27px}
#nice-gate-hero .nice-carousel-actions a{min-height:49px;display:inline-flex;gap:11px;align-items:center;justify-content:center;padding:12px 21px;border-radius:12px;color:#fff;font-weight:700;font-size:14px;transition:background .2s,transform .2s}
#nice-gate-hero .nice-carousel-actions a:hover{transform:translateY(-2px)}
#nice-gate-hero .nice-carousel-primary{background:var(--nc-blue);box-shadow:0 9px 24px rgba(0,0,0,.18)}
#nice-gate-hero .nice-carousel-primary:hover{background:#167fd0}
#nice-gate-hero .nice-carousel-secondary{border:1px solid rgba(171,215,255,.44);background:rgba(255,255,255,.07)}
#nice-gate-hero .nice-carousel-secondary:hover{background:rgba(255,255,255,.14)}
#nice-gate-hero .nice-carousel-assurances{display:flex;gap:12px 18px;flex-wrap:wrap;margin-top:29px;max-width:560px}
#nice-gate-hero .nice-carousel-assurances span{color:#b6cfe5;font-size:12px;white-space:nowrap}
#nice-gate-hero .nice-carousel-assurances i{color:#78c6fb;margin-right:5px}
#nice-gate-hero .nice-carousel-stage{height:490px;perspective:1300px;position:relative;min-width:0;touch-action:pan-y}
#nice-gate-hero .nice-carousel-card{position:absolute;top:19px;left:50%;margin-left:-139px;width:278px;height:420px;border-radius:22px;overflow:hidden;background:#102d50;border:1px solid rgba(179,219,255,.26);box-shadow:0 24px 58px rgba(0,9,25,.4);display:flex;flex-direction:column;transform:translateX(0) scale(.77);opacity:0;pointer-events:none;transition:transform .7s cubic-bezier(.22,.7,.18,1),opacity .55s ease,filter .55s ease;will-change:transform}
#nice-gate-hero .nice-carousel-card[data-active="true"]{pointer-events:auto}
#nice-gate-hero .nice-carousel-card-visual{position:relative;height:150px;flex:0 0 150px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;background:radial-gradient(circle at 50% 68%,rgba(60,161,231,.38),transparent 58%),linear-gradient(150deg,#092c50,#0c5f9d)}
#nice-gate-hero .nice-carousel-card-visual:after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.25;background-image:radial-gradient(#c3eaff 1px,transparent 1px);background-size:18px 18px}
#nice-gate-hero .nice-carousel-category-num{position:absolute;top:13px;left:16px;letter-spacing:.13em;font-size:10px;color:#cce8ff;font-weight:800}
#nice-gate-hero .nice-carousel-card-icon{position:relative;z-index:1;display:grid;place-items:center;width:65px;height:65px;border-radius:18px;border:1px solid rgba(178,229,255,.45);background:rgba(3,25,50,.64);color:#a5deff;font-size:33px;box-shadow:0 8px 23px rgba(0,0,0,.22)}
#nice-gate-hero .nice-carousel-card-brand{position:relative;z-index:1;color:#fff;font-size:12px;font-weight:900;letter-spacing:.13em}
#nice-gate-hero .nice-carousel-card-brand small{display:block;color:#c3e1fa;text-align:center;font-size:8px;font-weight:500;letter-spacing:.14em}
#nice-gate-hero .nice-carousel-card-content{display:flex;flex:1;flex-direction:column;padding:20px 21px 21px;min-height:0}
#nice-gate-hero .nice-carousel-category-label{font-size:10px;letter-spacing:.13em;font-weight:700;color:#7bc5fb}
#nice-gate-hero .nice-carousel-card-content h2{font-size:20px;line-height:1.18;color:#fff;font-weight:750;margin:9px 0 8px}
#nice-gate-hero .nice-carousel-card-content p{font-size:13px;color:#c3d5e7;line-height:1.54;margin:0;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
#nice-gate-hero .nice-carousel-meta{margin-top:auto;padding-top:10px;color:#b3d5ee;font-size:11px}
#nice-gate-hero .nice-carousel-meta i{color:#7ac8fa;margin-right:4px}
#nice-gate-hero .nice-carousel-card-link{display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding-top:12px;border-top:1px solid rgba(188,224,255,.15);color:#94d4ff!important;font-size:13px;font-weight:800}
#nice-gate-hero .nice-carousel-card-link:hover{color:#fff!important}
#nice-gate-hero .nice-carousel-controls{position:absolute;left:0;bottom:0;width:100%;height:39px;display:flex;justify-content:center;align-items:center;gap:18px;z-index:20}
#nice-gate-hero .nice-carousel-nav{background:#133f69;border:1px solid rgba(177,214,246,.35);color:#fff;border-radius:50%;width:35px;height:35px;font-size:22px;cursor:pointer}
#nice-gate-hero .nice-carousel-nav:hover{background:var(--nc-blue)}
#nice-gate-hero .nice-carousel-dots{display:flex;align-items:center;gap:7px}
#nice-gate-hero .nice-carousel-dot{width:8px;height:8px;min-width:8px;padding:0;border:0;border-radius:99px;background:#6889a9;transition:width .2s,background .2s;cursor:pointer}
#nice-gate-hero .nice-carousel-dot[aria-current="true"]{width:25px;background:#89d3ff}
@media(max-width:991px){#nice-gate-hero{padding:40px 0 37px}#nice-gate-hero .nice-carousel-layout{grid-template-columns:1fr;gap:15px;min-height:0}#nice-gate-hero .nice-carousel-intro{text-align:center}#nice-gate-hero .nice-carousel-lead{margin:0 auto}#nice-gate-hero .nice-carousel-actions,#nice-gate-hero .nice-carousel-assurances{justify-content:center;margin-left:auto;margin-right:auto}#nice-gate-hero .nice-carousel-stage{height:470px}#nice-gate-hero .nice-carousel-card{top:7px}}
@media(max-width:575px){#nice-gate-hero{padding:34px 0 28px}#nice-gate-hero h1{font-size:34px}#nice-gate-hero .nice-carousel-lead{font-size:14px}#nice-gate-hero .nice-carousel-actions{gap:8px}#nice-gate-hero .nice-carousel-actions a{padding:11px 14px;flex:1;font-size:13px}#nice-gate-hero .nice-carousel-assurances{margin-top:22px;gap:8px 12px}#nice-gate-hero .nice-carousel-assurances span{font-size:11px}#nice-gate-hero .nice-carousel-stage{height:457px}#nice-gate-hero .nice-carousel-card{top:10px;width:252px;margin-left:-126px;height:402px}#nice-gate-hero .nice-carousel-card-visual{height:137px;flex-basis:137px}#nice-gate-hero .nice-carousel-card-content{padding:18px}#nice-gate-hero .nice-carousel-card-content h2{font-size:19px}#nice-gate-hero .nice-carousel-card-content p{font-size:12.5px}}
@media(prefers-reduced-motion:reduce){#nice-gate-hero .nice-carousel-card,#nice-gate-hero .nice-carousel-dot{transition:none!important}#nice-gate-hero .nice-carousel-actions a{transition:none!important}}

/* v2.1: deterministic centered two-column HERO layout.
   Scoped selectors prevent theme/Bootstrap layout overrides. */
@media (min-width: 992px) {
  #common-home #nice-gate-hero > .nice-carousel-layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    direction: ltr !important;
    align-items: center !important;
    justify-content: space-between !important;
    column-gap: clamp(28px, 4vw, 68px) !important;
    width: calc(100% - 44px) !important;
    max-width: 1240px !important;
    min-height: 510px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #common-home #nice-gate-hero .nice-carousel-intro {
    flex: 0 1 43% !important;
    width: 43% !important;
    max-width: 540px;
    order: 0 !important;
    text-align: left;
    align-self: center;
  }
  #common-home #nice-gate-hero .nice-carousel-stage {
    flex: 1 1 57% !important;
    width: 57% !important;
    max-width: 660px;
    order: 1 !important;
    align-self: center;
  }
}
@media (max-width: 991px) {
  #common-home #nice-gate-hero > .nice-carousel-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 22px !important;
    width: calc(100% - 32px) !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    min-height: 0 !important;
  }
  #common-home #nice-gate-hero .nice-carousel-intro,
  #common-home #nice-gate-hero .nice-carousel-stage {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
  #common-home #nice-gate-hero .nice-carousel-intro {order: 0 !important;}
  #common-home #nice-gate-hero .nice-carousel-stage {order: 1 !important;}
}
#common-home #nice-gate-hero .nice-carousel-card-content h2 {margin-top: 2px;}
#common-home #nice-gate-hero .nice-carousel-card-visual {justify-content:center;}

/* v2.2 - branded heading centered, lightweight active-card signal waves */
#common-home #nice-gate-hero .nice-carousel-card-brand {
  display:block;
  width:100%;
  max-width:210px;
  text-align:center;
  margin-left:auto;
  margin-right:auto;
  line-height:1.3;
}
#common-home #nice-gate-hero .nice-carousel-card-brand small {
  display:block;
  width:100%;
  text-align:center;
  margin:2px auto 0;
}
#common-home #nice-gate-hero .nice-carousel-card-icon {isolation:isolate;}
#common-home #nice-gate-hero .nice-carousel-card-icon i {position:relative;z-index:2;}
#common-home #nice-gate-hero .nice-carousel-card-icon::before,
#common-home #nice-gate-hero .nice-carousel-card-icon::after {
  content:"";
  position:absolute;
  inset:-2px;
  border:2px solid rgba(143,217,255,.80);
  border-radius:22px;
  opacity:0;
  pointer-events:none;
}
#common-home #nice-gate-hero .nice-carousel-card[data-active="true"] .nice-carousel-card-icon::before,
#common-home #nice-gate-hero .nice-carousel-card[data-active="true"] .nice-carousel-card-icon::after {
  animation:nice-signal-wave 2s ease-out infinite;
}
#common-home #nice-gate-hero .nice-carousel-card[data-active="true"] .nice-carousel-card-icon::after {animation-delay:1s;}
@keyframes nice-signal-wave {
  0%{transform:scale(1);opacity:.85;}
  100%{transform:scale(2.15);opacity:0;}
}
@media (prefers-reduced-motion:reduce) {
  #common-home #nice-gate-hero .nice-carousel-card-icon::before,
  #common-home #nice-gate-hero .nice-carousel-card-icon::after {animation:none!important;opacity:0!important;}
}


/* Keep the HERO contact CTAs identical in size on every viewport. */
#nice-gate-hero .nice-carousel-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  width:min(100%,430px);
  gap:12px;
}
#nice-gate-hero .nice-carousel-actions a{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:52px;
  padding:12px 10px;
  text-align:center;
  white-space:nowrap;
  line-height:1.25;
  gap:9px;
  display:flex;
  align-items:center;
  justify-content:center;
}
@media(max-width:991px){
  #nice-gate-hero .nice-carousel-actions{margin-inline:auto}
}
@media(max-width:575px){
  #nice-gate-hero .nice-carousel-actions{width:100%;max-width:430px;gap:9px}
  #nice-gate-hero .nice-carousel-actions a{font-size:13px;min-height:49px;padding:10px 6px;flex:none}
}
@media(max-width:360px){
  #nice-gate-hero .nice-carousel-actions{gap:7px}
  #nice-gate-hero .nice-carousel-actions a{font-size:12px;gap:5px;padding:10px 4px}
}

/* v2.4: green WhatsApp CTA and geometrically centered carousel arrows. */
#common-home #nice-gate-hero .nice-carousel-actions .nice-carousel-secondary{
  background:#168a50;
  border-color:#168a50;
  color:#fff;
  box-shadow:0 9px 24px rgba(0,0,0,.16);
}
#common-home #nice-gate-hero .nice-carousel-actions .nice-carousel-secondary:hover,
#common-home #nice-gate-hero .nice-carousel-actions .nice-carousel-secondary:focus-visible{
  background:#107442;
  border-color:#107442;
}
#common-home #nice-gate-hero .nice-carousel-nav{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 35px;
  width:35px;
  height:35px;
  padding:0;
  line-height:1;
  text-align:center;
  vertical-align:middle;
}
#common-home #nice-gate-hero .nice-carousel-nav .fa{
  display:block;
  width:1em;
  height:1em;
  line-height:1;
  margin:0;
  padding:0;
  font-size:20px;
  text-align:center;
}
