/* Additional background media: overlays and existing content stay unchanged. */
.hero{isolation:isolate;}
.hero .najd-hero-background-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:-2;}
.hero:has(.najd-hero-background-video){background-image:none!important;}
.hero:has(.najd-hero-background-video)::before{z-index:-1;}
.hero:not(:has(.hero-cards)) .container{grid-template-columns:minmax(0,1fr);max-width:1100px;}
.hero:not(:has(.hero-cards)) .hero-content{max-width:100%;}

/* Smooth crossfade layers. Keep original overlay, text and buttons above them. */
.hero.najd-hero-crossfade{position:relative;background-image:none!important;isolation:isolate}
.hero.najd-hero-crossfade .najd-hero-image-layer{position:absolute;inset:0;background-position:center;background-size:cover;background-repeat:no-repeat;z-index:0;pointer-events:none}
.hero.najd-hero-crossfade .najd-hero-next{opacity:0;z-index:1}
.hero.najd-hero-crossfade::before{z-index:2;background-image:linear-gradient(135deg,rgba(15,23,42,.94) 0%,rgba(30,41,59,.85) 45%,rgba(245,158,11,.45) 100%),radial-gradient(circle at 20% 80%,rgba(245,158,11,.15),transparent 50%)}
.hero.najd-hero-crossfade>.container{position:relative;z-index:3}
@media(prefers-reduced-motion:reduce){.hero.najd-hero-crossfade .najd-hero-next{transition:none!important}}
