/**
 * QLINIQA News homepage — real-content hero presentation.
 *
 * Scoped component layer loaded after the existing compiled News demo styles.
 * All five editorial images fill the entire hero without blurred duplicates,
 * side masks or arrow controls. Single News templates are not affected.
 */

/* The hero has its own full-width wrapper, independent of admin notices. */
body.qliniqa-news-home-test .qnh-main > .qnh-hero-layout {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

body.qliniqa-news-home-test .qnh-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

body.qliniqa-news-home-test .qnh-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    background: #142029;
    filter: none;
    backdrop-filter: none;
}

/* Prevent any stale backdrop markup from reintroducing blurred side panels. */
body.qliniqa-news-home-test .qnh-hero-slide-backdrop {
    display: none !important;
}

body.qliniqa-news-home-test .qnh-hero__media > img.qnh-hero-slide-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    max-width: none !important;
    max-height: none !important;
    margin: 0;
    padding: 0;
    object-fit: cover !important;
    object-position: center center !important;
    transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 450ms ease, visibility 450ms ease;
}

body.qliniqa-news-home-test .qnh-hero__media > img.qnh-hero-slide-image.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* The overlay dims the lower text area without obscuring the full image. */
body.qliniqa-news-home-test .qnh-hero__overlay {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgb(0 0 0 / 0.08) 0%,
        rgb(0 0 0 / 0.2) 43%,
        rgb(0 0 0 / 0.58) 100%
    );
}

/* The hero surface is a real anchor; the current URL changes with the slide. */
body.qliniqa-news-home-test .qnh-hero__surface-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    cursor: pointer;
}

body.qliniqa-news-home-test .qnh-hero__surface-link:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: -6px;
}

body.qliniqa-news-home-test .qnh-hero__content {
    /* Preserve the approved demo's existing content positioning. */
    z-index: 3;
    pointer-events: none;
}

body.qliniqa-news-home-test .qnh-hero__title a {
    position: relative;
    pointer-events: auto;
}

body.qliniqa-news-home-test .qnh-slider-dots {
    position: absolute;
    z-index: 5;
    pointer-events: auto;
}

body.qliniqa-news-home-test .qnh-slider-dot {
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}

body.qliniqa-news-home-test .qnh-slider-dot:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    body.qliniqa-news-home-test .qnh-hero__media > img.qnh-hero-slide-image {
        transition: none;
    }

}
