.puremed-hero,
.puremed-hero * {
    box-sizing: border-box;
}

.puremed-hero {
    position: relative;
    width: 100%;
    font-family: Inter, Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.puremed-hero__viewport {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    isolation: isolate;
}

/* Prevent legacy/default Elementor shadow settings from creating a line below the hero.
   A shadow is applied only when the new Hero Shadow control is explicitly enabled. */
.puremed-hero:not(.puremed-hero--custom-shadow) .puremed-hero__viewport {
    box-shadow: none !important;
}

.puremed-hero__track {
    display: flex;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition-property: transform;
    transition-timing-function: cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.puremed-hero__slide {
    position: relative;
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    overflow: hidden;
}

.puremed-hero__slide-bg,
.puremed-hero__overlay,
.puremed-hero__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.puremed-hero__slide-bg {
    z-index: 0;
    background-color: var(--puremed-slide-bg-color, #0d9d9b);
    background-image: var(--puremed-slide-bg-image, none);
    background-repeat: no-repeat;
    background-position: var(--puremed-slide-bg-position, center center);
    background-size: var(--puremed-slide-bg-size, cover);
    transition: transform 1.1s cubic-bezier(.22, .61, .36, 1);
}

.puremed-hero__overlay {
    z-index: 1;
}

.puremed-hero__decor {
    z-index: 1;
    inset: auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    filter: blur(2px);
}

.puremed-hero__decor--one {
    top: -150px;
    left: 35%;
}

.puremed-hero__decor--two {
    right: -120px;
    bottom: -190px;
    width: 440px;
    height: 440px;
    background: rgba(143, 232, 0, .08);
}

.puremed-hero__inner {
    --puremed-hero-content-width: 47%;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, var(--puremed-hero-content-width)) minmax(0, 1fr);
    width: 100%;
}

.puremed-hero__content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.puremed-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, .18);
    line-height: 1.2;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.puremed-hero__title {
    padding: 0;
    margin: 0;
    color: #fff;
}

.puremed-hero__title span,
.puremed-hero__title mark {
    padding: 0;
    background: none;
}

.puremed-hero__description {
    padding: 0;
    margin: 0;
}

.puremed-hero__description p {
    padding: 0;
    margin: 0;
}

.puremed-hero__description p + p {
    margin-top: .8em;
}

.puremed-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.puremed-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid transparent;
    text-decoration: none !important;
    line-height: 1.15;
    cursor: pointer;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.puremed-hero__button:hover,
.puremed-hero__button:focus-visible {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.puremed-hero__button:focus-visible,
.puremed-hero__arrow:focus-visible,
.puremed-hero__dot:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .68);
    outline-offset: 3px;
}

.puremed-hero__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.puremed-hero__button-icon svg {
    display: block;
    fill: currentColor;
}

.puremed-hero__visual {
    --puremed-visual-x: 0px;
    --puremed-visual-y: 0px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-width: 0;
    height: 100%;
    transform: translate3d(var(--puremed-visual-x), var(--puremed-visual-y), 0);
    pointer-events: none;
}

.puremed-hero__visual img {
    display: block;
    height: auto;
    object-position: center;
    transform: translateZ(0);
}

.puremed-hero--float-image .puremed-hero__slide.is-active .puremed-hero__visual img {
    animation-name: puremedHeroFloat;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes puremedHeroFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); }
}

.puremed-hero__trust {
    position: absolute;
    z-index: 4;
    display: grid;
    align-items: stretch;
    overflow: hidden;
}

.puremed-hero__trust-item {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    padding: 4px 14px;
}

.puremed-hero__trust-item:not(:last-child)::after {
    position: absolute;
    top: 15%;
    right: 0;
    width: 1px;
    height: 70%;
    content: "";
}

.puremed-hero__trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, .18);
}

.puremed-hero__trust-icon svg {
    display: block;
    fill: currentColor;
}

.puremed-hero__trust-copy {
    min-width: 0;
}

.puremed-hero__trust-title,
.puremed-hero__trust-text {
    overflow-wrap: anywhere;
}

.puremed-hero__trust-title {
    font-weight: 700;
    line-height: 1.25;
}

.puremed-hero__trust-text {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.25;
}

.puremed-hero__arrow {
    position: absolute;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    line-height: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease;
}

.puremed-hero__arrow:hover,
.puremed-hero__arrow:focus-visible {
    transform: translateY(-50%) scale(1.05);
}

.puremed-hero__arrow svg {
    display: block;
    fill: currentColor;
}

.puremed-hero__dots {
    position: absolute;
    z-index: 7;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
}

.puremed-hero__dot {
    display: block;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease, opacity .25s ease;
}

.puremed-hero__dot:hover {
    opacity: .82;
}

.puremed-hero.is-single-slide .puremed-hero__arrow,
.puremed-hero.is-single-slide .puremed-hero__dots {
    display: none !important;
}

@media (max-width: 1024px) {
    .puremed-hero__inner {
        grid-template-columns: minmax(0, var(--puremed-hero-content-width)) minmax(0, 1fr);
    }

    .puremed-hero__trust-item {
        padding-inline: 10px;
    }

    .puremed-hero__trust-item:nth-child(3n)::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .puremed-hero__viewport {
        overflow: hidden;
    }

    .puremed-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        row-gap: 26px;
    }

    .puremed-hero--has-trust .puremed-hero__inner {
        padding-bottom: var(--puremed-mobile-trust-space, 158px) !important;
    }

    .puremed-hero__content {
        width: 100%;
    }

    .puremed-hero__buttons {
        width: 100%;
    }

    .puremed-hero--mobile-full-buttons .puremed-hero__button {
        flex: 1 1 100%;
        width: 100%;
    }

    .puremed-hero__visual {
        min-height: 190px;
        height: auto;
        align-items: flex-end;
    }

    .puremed-hero--hide-visual-mobile .puremed-hero__visual {
        display: none;
    }

    /* Keep the trust badges inside the banner in one frosted-glass panel. */
    .puremed-hero__trust {
        position: absolute;
        z-index: 6;
        left: var(--puremed-mobile-trust-inset, 18px) !important;
        right: var(--puremed-mobile-trust-inset, 18px) !important;
        bottom: var(--puremed-mobile-trust-bottom, 42px) !important;
        margin: 0 !important;
        max-width: none;
        background-color: rgba(255, 255, 255, .14);
        border: 1px solid rgba(255, 255, 255, .28);
        border-radius: 18px;
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        box-shadow: 0 14px 36px rgba(3, 68, 72, .16);
        background-clip: padding-box;
    }

    .puremed-hero--mobile-badges-scroll .puremed-hero__trust {
        display: flex !important;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: var(--puremed-mobile-trust-padding-y, 10px) var(--puremed-mobile-trust-padding-x, 16px) !important;
        scroll-padding-inline: var(--puremed-mobile-trust-padding-x, 16px);
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .puremed-hero--mobile-badges-scroll .puremed-hero__trust::-webkit-scrollbar {
        display: none;
    }

    .puremed-hero--mobile-badges-scroll .puremed-hero__trust-item {
        flex: 0 0 var(--puremed-mobile-trust-item-width, 78%);
        min-height: 68px;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 13px;
        background: rgba(255, 255, 255, .075);
        scroll-snap-align: start;
    }

    .puremed-hero--mobile-badges-scroll .puremed-hero__trust-item::after {
        display: none;
    }

    .puremed-hero--mobile-badges-grid .puremed-hero__trust {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
        padding: var(--puremed-mobile-trust-padding-y, 10px) var(--puremed-mobile-trust-padding-x, 16px) !important;
        max-height: var(--puremed-mobile-trust-grid-height, 190px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }

    .puremed-hero--mobile-badges-grid .puremed-hero__trust::-webkit-scrollbar {
        display: none;
    }

    .puremed-hero--mobile-badges-grid .puremed-hero__trust-item {
        min-height: 68px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 13px;
        background: rgba(255, 255, 255, .075);
    }

    .puremed-hero--mobile-badges-grid .puremed-hero__trust-item::after {
        display: none;
    }

    .puremed-hero__trust-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    /* Mobile arrows are hidden by default; the widget control can explicitly enable them. */
    .puremed-hero__arrow {
        display: none !important;
        top: 47%;
    }

    .puremed-hero--show-arrows-mobile .puremed-hero__arrow {
        display: inline-flex !important;
    }

    .puremed-hero__dots {
        position: absolute;
        bottom: 14px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .puremed-hero__track,
    .puremed-hero__slide-bg,
    .puremed-hero__button,
    .puremed-hero__arrow,
    .puremed-hero__dot {
        transition-duration: .01ms !important;
    }

    .puremed-hero__visual img {
        animation: none !important;
    }
}
