/* ============================================================
   ZEM Landing Medics Widget
   ============================================================ */

.elementor-widget-zem_landing_medics {
    width: 100%;
    height: auto;
}

/* ── Slider container ────────────────────────────────────── */
.zem-lm {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.zem-lm .swiper-wrapper {
    align-items: stretch;
}

/* ── Each slide ──────────────────────────────────────────── */
.zem-lm__slide {
    position: relative;
    height: 480px;
    overflow: hidden;
    cursor: grab;
}

.zem-lm__slide:active {
    cursor: grabbing;
}

.zem-lm__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

.zem-lm__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── Slide content ───────────────────────────────────────── */
.zem-lm__content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 50px 40px;
    box-sizing: border-box;
    text-align: left;
    gap: 10px;
    color: #ffffff;
}

/* Extra room for the overlaid pagination dots (see below) so they don't
   crowd the subtitle. */
.zem-lm--has-dots .zem-lm__content {
    transform: translateY(-10px);
}

.zem-lm__title {
    width: 100%;
    font-family: "Lato", sans-serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
    text-align: left;
}

.zem-lm__subtitle {
    width: 100%;
    font-family: "Lato", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.5px;
    margin: 0;
    color: #ffffff;
    text-align: left;
}

/* ── Pagination dots ─────────────────────────────────────── */
/* Overlaid inside the slide, just under the text — anchored to .zem-lm
   (not each individual slide) since Swiper renders a single shared
   pagination element for the whole instance. !important is needed:
   Swiper's own bundled CSS (.swiper-pagination-bullets.swiper-pagination-horizontal
   for position/bottom, .swiper-pagination-bullet for margin via a CSS
   var) ties or beats our specificity otherwise. */
.zem-lm__pagination.swiper-pagination {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 3;
}

.zem-lm__pagination .swiper-pagination-bullet {
    margin: 0 !important;
    border-radius: 50%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), #F4F3F2;
    opacity: 1;
    transition: background 0.3s ease;
}

.zem-lm__pagination .swiper-pagination-bullet-active {
    background: rgba(0, 0, 0, 0.375);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .zem-lm__slide {
        height: 360px;
    }
    .zem-lm__content {
        padding: 30px 20px;
        gap: 5px;
    }
    .zem-lm__title {
        font-size: 24px;
    }
    .zem-lm__subtitle {
        font-size: 14px;
    }
}
