/* =========================================
   UJJWAL MEDICAL DEVICES
   HERO SLIDER
========================================= */

.uj-hero-slider {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    background: #f7fbff;
    isolation: isolate;
}

.uj-hero-slider *,
.uj-hero-slider *::before,
.uj-hero-slider *::after {
    box-sizing: border-box;
}


/* =========================================
   SLIDE
========================================= */

.uj-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: scale(1.02);

    transition:
        opacity 0.7s ease,
        transform 1s ease,
        visibility 0.7s ease;
}

.uj-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: scale(1);
}


/* =========================================
   BACKGROUND
========================================= */

.uj-hero-slide__background {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;

    z-index: -3;
}

.uj-hero-slide__overlay {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.97) 0%,
            rgba(255,255,255,0.88) 42%,
            rgba(255,255,255,0.20) 100%
        );

    z-index: -2;
}


/* =========================================
   CONTAINER
========================================= */

.uj-hero-slide__container {
    position: relative;

    width: min(1200px, 92%);
    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}


/* =========================================
   CONTENT
========================================= */

.uj-hero-slide__content {
    position: relative;

    width: 48%;
    max-width: 560px;

    z-index: 5;

    transform: translateX(-35px);
    opacity: 0;

    transition:
        transform 0.8s ease 0.15s,
        opacity 0.8s ease 0.15s;
}

.uj-hero-slide.is-active .uj-hero-slide__content {
    transform: translateX(0);
    opacity: 1;
}


/* =========================================
   BRAND LOGO
========================================= */

.uj-hero-slide__logo {
    margin-bottom: 22px;
}

.uj-hero-slide__logo img {
    display: block;

    width: 300px;
    height: auto;

    object-fit: contain;
}


/* =========================================
   EYEBROW
========================================= */

.uj-hero-slide__eyebrow {
    margin-bottom: 14px;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;

    color: #1675c5;
}


/* =========================================
   HEADING
========================================= */

.uj-hero-slide__heading {
    margin: 0 0 8px;

    font-family: Arial, sans-serif;

    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.08;

    font-weight: 700;

    color: #102d48;
}


/* =========================================
   HIGHLIGHT
========================================= */

.uj-hero-slide__highlight {
    margin: 0 0 18px;

    font-family: Arial, sans-serif;

    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.2;

    font-weight: 600;

    color: #1675c5;
}


/* =========================================
   DESCRIPTION
========================================= */

.uj-hero-slide__description {
    max-width: 500px;

    margin: 0 0 22px;

    font-family: Arial, sans-serif;

    font-size: 16px;
    line-height: 1.7;

    color: #526477;
}


/* =========================================
   FEATURES
========================================= */

.uj-hero-slide__features {
    display: flex;
    flex-wrap: wrap;

    gap: 10px 18px;

    margin-bottom: 28px;
}

.uj-feature {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    font-family: Arial, sans-serif;

    font-size: 13px;
    font-weight: 600;

    color: #33495d;
}

.uj-feature__icon {
    display: inline-flex;

    width: 20px;
    height: 20px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #1675c5;
    color: #fff;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================
   BUTTONS
========================================= */

.uj-hero-slide__buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}

.uj-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 24px;

    border-radius: 5px;

    text-decoration: none !important;

    font-family: Arial, sans-serif;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.uj-btn:hover {
    transform: translateY(-2px);
}

.uj-btn--primary {
    gap: 12px;

    background: #1675c5;
    color: #fff !important;

    box-shadow: 0 8px 20px rgba(22,117,197,0.20);
}

.uj-btn--primary:hover {
    background: #0d5f9f;
}

.uj-btn--secondary {
    border: 1px solid #1675c5;

    background: #fff;
    color: #1675c5 !important;
}

.uj-btn--secondary:hover {
    background: #eef7ff;
}


/* =========================================
   MEDIA
========================================= */

.uj-hero-slide__media {
    position: relative;

    width: 52%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 3;

    transform: translateX(40px);
    opacity: 0;

    transition:
        transform 1s ease 0.2s,
        opacity 0.9s ease 0.2s;
}

.uj-hero-slide.is-active .uj-hero-slide__media {
    transform: translateX(0);
    opacity: 1;
}


/* =========================================
   MAIN IMAGE / VIDEO
========================================= */

.uj-hero-slide__main-media {
    display: block;

    width: 100%;
    max-width: 620px;
    max-height: 510px;

    object-fit: contain;

    border: 0;

    filter:
        drop-shadow(0 25px 35px rgba(0,0,0,0.12));
}


/* =========================================
   PRODUCT IMAGE
========================================= */

.uj-hero-slide__product {
    position: absolute;

    right: 0;
    bottom: 30px;

    width: 190px;
    max-height: 230px;

    object-fit: contain;

    filter:
        drop-shadow(0 15px 25px rgba(0,0,0,0.15));

    z-index: 5;
}


/* =========================================
   ARROWS
========================================= */

.uj-slider-arrow {
    position: absolute;

    top: 50%;

    width: 46px;
    height: 46px;

    transform: translateY(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(22,117,197,0.20);

    border-radius: 50%;

    background: rgba(255,255,255,0.92);

    color: #1675c5;

    font-size: 22px;

    cursor: pointer;

    z-index: 20;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.uj-slider-arrow:hover {
    background: #1675c5;
    color: #fff;

    transform: translateY(-50%) scale(1.08);
}

.uj-slider-arrow--prev {
    left: 22px;
}

.uj-slider-arrow--next {
    right: 22px;
}


/* =========================================
   DOTS
========================================= */

.uj-slider-dots {
    position: absolute;

    left: 50%;
    bottom: 22px;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    gap: 8px;

    z-index: 20;
}

.uj-slider-dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #b9c9d7;

    cursor: pointer;

    transition:
        width 0.3s ease,
        background 0.3s ease;
}

.uj-slider-dot.is-active {
    width: 28px;

    border-radius: 10px;

    background: #1675c5;
}


/* =========================================
   LEFT MEDIA
========================================= */

.uj-hero-slide[data-media-position="left"]
.uj-hero-slide__container {
    flex-direction: row-reverse;
}


/* =========================================
   FULL BACKGROUND
========================================= */

.uj-hero-slide[data-media-position="background"]
.uj-hero-slide__media {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    opacity: 0.35;
}

.uj-hero-slide[data-media-position="background"]
.uj-hero-slide__content {
    width: 65%;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .uj-hero-slider {
        height: 560px;
    }

    .uj-hero-slide__container {
        width: 90%;
        gap: 25px;
    }

    .uj-hero-slide__content {
        width: 50%;
    }

    .uj-hero-slide__media {
        width: 50%;
    }

    .uj-hero-slide__heading {
        font-size: 40px;
    }

    .uj-hero-slide__highlight {
        font-size: 24px;
    }

    .uj-hero-slide__description {
        font-size: 14px;
    }

    .uj-hero-slide__product {
        width: 140px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .uj-hero-slider {
        height: auto;
        min-height: 680px;
    }

    .uj-hero-slide {
        position: absolute;
        min-height: 680px;
    }

    .uj-hero-slide__container {
        width: 90%;
        min-height: 680px;

        padding: 45px 0 70px;

        flex-direction: column;

        justify-content: center;

        gap: 15px;
    }

    .uj-hero-slide[data-media-position="left"]
    .uj-hero-slide__container {
        flex-direction: column;
    }

    .uj-hero-slide__content {
        width: 100%;
        max-width: 100%;

        text-align: center;

        order: 1;
    }

    .uj-hero-slide__media {
        width: 100%;
        height: 270px;

        order: 2;
    }

    .uj-hero-slide__logo {
        margin-bottom: 15px;
    }

    .uj-hero-slide__logo img {
        max-width: 150px;

        margin: 0 auto;
    }

    .uj-hero-slide__eyebrow {
        font-size: 10px;
    }

    .uj-hero-slide__heading {
        font-size: 32px;
    }

    .uj-hero-slide__highlight {
        font-size: 21px;
    }

    .uj-hero-slide__description {
        font-size: 14px;

        line-height: 1.55;

        margin-left: auto;
        margin-right: auto;
    }

    .uj-hero-slide__features {
        justify-content: center;

        gap: 7px 12px;
    }

    .uj-feature {
        font-size: 11px;
    }

    .uj-hero-slide__buttons {
        justify-content: center;
    }

    .uj-btn {
        min-height: 44px;

        padding: 0 18px;

        font-size: 12px;
    }

    .uj-hero-slide__main-media {
        max-height: 260px;
    }

    .uj-hero-slide__product {
        width: 100px;

        bottom: 0;
        right: 0;
    }

    .uj-slider-arrow {
        width: 36px;
        height: 36px;

        font-size: 17px;
    }

    .uj-slider-arrow--prev {
        left: 8px;
    }

    .uj-slider-arrow--next {
        right: 8px;
    }

    .uj-slider-dots {
        bottom: 15px;
    }

}