/* ================================================================
   ESF Slider — Widget Styles
   ================================================================ */

/* ── Carousel container ──────────────────────────────────────── */
.esf-sl-carousel {
    padding: 20px 0 50px;
    overflow: hidden;
}
.esf-sl-swiper {
    overflow: hidden;
    padding: 10px 0 30px;
}
.esf-sl-swiper .swiper-slide {
    height: auto;
    transition: transform .5s ease, opacity .5s ease, filter .5s ease;
}

/* ── Hide ALL slides by default, show only active + prev + next ── */
.esf-sl-swiper .swiper-slide {
    opacity: 0 !important;
    pointer-events: none;
    width: 40%;
}
.esf-sl-swiper .swiper-slide-active {
    opacity: 1 !important;
    filter: brightness(1);
    z-index: 3;
    pointer-events: auto;
    transform: translateZ(0) scale(1.08);
}
.esf-sl-swiper .swiper-slide-prev,
.esf-sl-swiper .swiper-slide-next {
    opacity: .6 !important;
    filter: brightness(.75);
    z-index: 1;
    pointer-events: auto;
}

/* ── Elementor Editor: show all slides for preview ── */
.elementor-editor-active .esf-sl-swiper .swiper-slide {
    opacity: 1 !important;
    pointer-events: auto;
    filter: none;
}
.elementor-editor-active .esf-sl-carousel {
    overflow: visible;
}
.elementor-editor-active .esf-sl-swiper {
    overflow: visible;
}

/* ================================================================
   SERVICE CARDS — compact dark style
   ================================================================ */
.esf-sl-card-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 18px;
    background: rgba(30, 58, 95, 0.85);
    border-radius: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    gap: 8px;
}
.esf-sl-card-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.esf-sl-card-icon {
    font-size: 32px;
    margin-bottom: 6px;
    color: #ffffff;
}
.esf-sl-card-img {
    width: 60px;
    height: 60px;
    margin-bottom: 6px;
}
.esf-sl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}
.esf-sl-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}
.esf-sl-card-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: .82rem;
    color: rgba(255,255,255,.8);
    line-height: 1.45;
    margin: 0;
}
.esf-sl-card-btn {
    display: inline-block;
    padding: 7px 22px;
    border: 2px solid #F59E0B;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .5px;
    color: #F59E0B;
    text-decoration: none;
    transition: background .25s, color .25s;
    margin-top: 4px;
}
.esf-sl-card-btn:hover {
    background: #F59E0B;
    color: #fff;
}

/* ================================================================
   TESTIMONIAL CARDS
   ================================================================ */
.esf-sl-card-testimonial {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    background: #1E3A5F;
    border-style: solid;
    border-width: 2px;
    border-color: #F59E0B;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
    transition: transform .35s ease, box-shadow .35s ease;
    height: 100%;
    overflow: hidden;
}
.esf-sl-card-testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,.25);
}

/* Header banner */
.esf-sl-testi-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 14px;
    background: inherit;
    border: 0 solid rgba(255,255,255,0.08);
}
.esf-sl-card-testimonial .esf-sl-author-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .5px;
    color: #fff;
    white-space: nowrap;
}
.esf-sl-stars {
    font-size: .85rem;
    color: #F59E0B;
    letter-spacing: 1px;
    line-height: 1;
}
.esf-sl-stars .empty {
    color: #ffffff33;
}

/* Body (review text) */
.esf-sl-testi-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 14px;
    flex: 1;
}
.esf-sl-card-text {
    font-family: 'Open Sans', sans-serif;
    font-size: .7rem;
    line-height: 1.5;
    color: #e0e7ef;
    margin: 0;
    flex: 1;
}

/* Footer (date) */
.esf-sl-testi-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 0 solid rgba(255,255,255,0.08);
}
.esf-sl-card-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .62rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
}

/* ================================================================
   CTA BUTTON (below carousel)
   ================================================================ */
.esf-sl-cta {
    text-align: center;
    margin-top: 24px;
}
.esf-sl-cta-btn {
    display: inline-block;
    padding: 10px 32px;
    border: 2px solid #1E3A5F;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: 1px;
    color: #1E3A5F;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .25s, color .25s;
}
.esf-sl-cta-btn:hover {
    background: #1E3A5F;
    color: #fff;
}

/* keep old author block for backward compat */
.esf-sl-card-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
}
.esf-sl-author-meta {
    font-size: .78rem;
    color: #a3b8d0;
}

/* ================================================================
   REFERENCE CARDS
   ================================================================ */
.esf-sl-card-ref {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #1E3A5F;
    text-decoration: none;
    transition: transform .35s ease, box-shadow .35s ease;
    height: 100%;
}
.esf-sl-card-ref:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.esf-sl-ref-image {
    flex: 1;
    min-height: 220px;
    background-size: cover;
    background-position: center;
}
.esf-sl-ref-footer {
    position: relative;
    z-index: 2;
    margin-top: -12px;
    padding: 10px 16px;
    background-color: #F59E0B;
    text-align: center;
}
.esf-sl-ref-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 767px) {
    .esf-sl-card-service {
        padding: 18px 14px;
    }
    .esf-sl-card-icon {
        font-size: 28px;
    }
    .esf-sl-card-title {
        font-size: 1.05rem;
    }
    .esf-sl-card-desc {
        font-size: .85rem;
    }
    .esf-sl-card-testimonial {
        padding: 22px 16px;
    }
    .esf-sl-card-text {
        font-size: .82rem;
    }
    .esf-sl-card-ref {
        min-height: auto;
    }
    .esf-sl-ref-image {
        min-height: 180px;
    }
    .esf-sl-ref-title {
        font-size: .75rem;
    }
}
