/* =====================================================
   Enhanced Slider — Desktop & General Improvements
   (mu-plugin: enhanced-media-upload / slider-desktop.css)
   ===================================================== */

/* --- Container: full-width, no min-height override --- */
#madinglider {
    position: relative;
    overflow: hidden;
    background: #1a2e3b;
}

/* --- Carousel item: fixed height on desktop, object-fit --- */
.homeslide .item {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.homeslide .item img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* Desktop: set comfortable hero height */
@media (min-width: 1025px) {
    .homeslide .item {
        height: 520px;
    }
    .homeslide .item img {
        height: 100%;
    }
}

/* Tablet */
@media (min-width: 640px) and (max-width: 1024px) {
    .homeslide .item {
        height: 380px;
    }
    .homeslide .item img {
        height: 100%;
    }
}

/* -------------------------------------------------------
   Navigation arrows
   ------------------------------------------------------- */
.homeslide.owl-carousel .owl-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    margin: 0;
}

.homeslide.owl-carousel .owl-nav button {
    pointer-events: all;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(0, 0, 0, 0.38) !important;
    border-radius: 50% !important;
    color: transparent !important;
    font-size: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border: none;
    outline: none;
}

.homeslide.owl-carousel .owl-nav button:hover {
    background: rgba(0, 0, 0, 0.62) !important;
}

.homeslide.owl-carousel .owl-nav .owl-prev { left: 18px; }
.homeslide.owl-carousel .owl-nav .owl-next { right: 18px; }

/* Arrow chevrons via the custom span */
.emu-sl-arrow {
    display: block;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    border-radius: 1px;
}

.emu-sl-prev {
    transform: rotate(-135deg);
    margin-left: 5px;
}

.emu-sl-next {
    transform: rotate(45deg);
    margin-right: 5px;
}

/* -------------------------------------------------------
   Dots
   ------------------------------------------------------- */
.homeslide.owl-carousel .owl-dots {
    position: absolute;
    bottom: 52px;   /* above caption */
    width: 100%;
    text-align: center;
    margin: 0;
    line-height: 1;
}

/* When no caption (desktop) fall back */
@media (min-width: 1025px) {
    .homeslide.owl-carousel .owl-dots {
        bottom: 52px;
    }
}

.homeslide.owl-carousel .owl-dots .owl-dot {
    display: inline-block;
    vertical-align: middle;
}

.homeslide.owl-carousel .owl-dots .owl-dot span {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.45) !important;
    border-radius: 50%;
    margin: 0 4px;
    display: block;
    transition: background 0.2s, transform 0.2s;
}

.homeslide.owl-carousel .owl-dots .owl-dot.active span,
.homeslide.owl-carousel .owl-dots .owl-dot:hover span {
    background: #fff !important;
    transform: scale(1.3);
}

/* -------------------------------------------------------
   Slide caption (title overlay)
   ------------------------------------------------------- */
.emu-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 24px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, transparent 100%);
    pointer-events: none;
}

.emu-slide-caption span {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    letter-spacing: 0.2px;
    line-height: 1.4;
    font-family: Montserrat, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1025px) {
    .emu-slide-caption span {
        font-size: 17px;
    }
}

@media (max-width: 639px) {
    .emu-slide-caption span {
        font-size: 13px;
    }
    .emu-slide-caption {
        padding: 10px 14px 12px;
    }
}
