/* ── Wrapper ── */
.elco-services-slider-wrap {
    position: relative;
}

/* ── Nav arrows (top-right, matching screenshot) ── */
.elco-services-nav {
    position: absolute;
    top: -80px;           /* aligns with the heading row */
    right: max(calc((100vw - 1700px) / 2), 5.2vw);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.elco-services-nav__prev,
.elco-services-nav__next {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 1.5px solid #ccc;
    border-radius: 0%;
    background: #fff;
    cursor: pointer;
    color: #333;
    transition: border-color 0.2s, color 0.2s;
}
.elco-services-nav svg {
    height: 45px!important;
    width: 35px!important;
}
.elco-services-nav__prev:hover,
.elco-services-nav__next:hover {
    border-color: #e06000;
    color: #e06000;
}

/* ── Card ── */
.elco-service-card {
    display: block!important;
    position: relative;
    min-height: 425px;       /* ensures a minimum size */
    height: 25vw;         /* adjust to taste */
    overflow: hidden;
    text-decoration: none;
    border-radius: 2px;
}

/* ── B&W photo background ── */
.elco-service-card__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: transform 0.5s ease;
}

.elco-service-card__image--placeholder {
    background-image:url(https://ahjocomms.fi/wp-content/uploads/2022/11/Picture-2@2x.png);
}

.elco-service-card:hover .elco-service-card__image {
    transform: scale(1.04);
}

/* ── Overlay panel ── */
.elco-service-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    gap:10px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.7) 30%,
        transparent 100%
    );
}

/* ── Excerpt: hidden below, slides up on hover ── */
.elco-service-card__excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: max-height 0.4s ease, opacity 0.35s ease, transform 0.35s ease;
    margin-bottom: 0;
}

.elco-service-card__excerpt p {
    margin: 0 0 0.5rem;
}

.elco-service-card:hover .elco-service-card__excerpt {
    max-height: 12rem;   /* enough for a few lines */
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 0.75rem;
}

/* ── Title ── */
.elco-service-card__title {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
    transition: transform 0.3s ease;
}

/* ── Orange scrollbar ── */
.elco-services-swiper {
    padding-bottom: 2.25rem !important;
}

.swiper-scrollbar {
    background: #fff!important;
    height: 8px !important;
    border-radius: 0!important;
    width: min(1700px,93%)!important;
    left: 0!important;
    bottom: 0;
}

.swiper-scrollbar-drag {
    background: #e06000 !important;
    border-radius: 0!important;
}
@media (max-width: 1366px) {
.elco-service-card__title {
    font-size: 1.5rem;
}
}
@media (max-width: 768px) {
    .elco-services-nav svg {
        height: 40px!important;
        width: 30px!important;
    }
    .elco-services-nav {
        display: none;
    }
}