.features-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
}

.features-slider {
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding-bottom: 10px;
}

.feature-slide {
  position: relative;
  width: 316px;
  background: var(--white-color);
  border-radius: 9px;   
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.features-slider .slick-slide {
    width: 340px;
}

    .features-slider .slick-slide > div {
        width: 100%;
    }

.features-slider .feature-slide {
    width: 340px !important;
    transition: width 0.4s ease;
}

/* Margin before the first card and after the last one. Padding, not clipped: the cards still run to the page edges. */
.features-slider .slick-list {
    padding: 0 30px;
}

    .features-slider-wrapper .slick-slide {
        margin: 0 24px 0 0;
    }

    /* Above the arrow too, so that every point of the card opens the page. */
    .feature-link {
        position: absolute;
        inset: 0;
        z-index: 4;
    }

    .feature-image {
        position: relative;
        width: 100%;
        height: 220px;
        overflow: hidden;
    }

        .feature-image img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        /* Same blue as the solution cards (.solution-image .image-overlay in style.css). */
        .feature-image .image-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(281.18deg,rgba(22,44,77,.3) .85%,rgba(43,72,114,.4) 12.96%,rgba(37,64,106,.5) 42.44%,rgba(43,72,114,.65) 70.39%,rgba(32,57,94,.8) 90.77%);
            transition: opacity 0.6s ease;
        }

        .feature-image h3 {
            position: absolute;
            left: 20px;
            right: 20px;
            bottom: 21px;
            z-index: 2;
            margin: 0;
            color: var(--white-color);
            font-size: var(--fs-lg);
            line-height: 1.2;
            font-weight: 500;
        }

    .feature-slide:hover .feature-image img {
        transform: scale(1.06);
    }

    .feature-slide:hover .feature-image .image-overlay {
        opacity: 0.4;
    }

    .feature-content {
        position: relative;
        min-height: 200px;
        padding: 22px 20px 44px;
        background: var(--white-color);
        overflow: hidden;
    }

        .feature-content p {
            position: relative;
            z-index: 2;
            max-width: 300px;
            margin: 0;
            color: var(--black-color);
            font-size: var(--fs-base);
            line-height: 1.55;
        }

        .feature-content::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: 0;
            width: 150px;
            height: 96px;
            background: #F0F8FF;
            clip-path: polygon(100% 0, 100% 100%, 0 100%);
            z-index: 1;
        }

    .feature-arrow {
        position: absolute;
        right: 17px;
        bottom: 12px;
        z-index: 3;
        color: #315681;
        font-size: 1.5625rem;
        line-height: 1;
        text-decoration: none;
    }

        .feature-slide:hover .feature-arrow {
            color: #f6a02a;
        }

            .feature-slide:hover .feature-arrow svg path {
                stroke: var(--secondary-color);
            }

    /* Centred on the photo, clear of the title at its bottom. */
    .features-prev,
    .features-next {
        position: absolute;
        top: 86px;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 1px solid #2A4771;
        border-radius: 50%;
        background: var(--white-color);
        color: #315681;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        cursor: pointer;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

        /* Nothing more on that side: on the first card or once the last one is in view. */
        .features-prev.slick-disabled,
        .features-next.slick-disabled {
            opacity: 0;
            visibility: hidden;
        }

    .features-prev {
        left: 12px;
    }

    .features-next {
        right: 12px;
    }

        .features-prev span,
        .features-next span {
            font-size: 1.75rem;
            line-height: 25px;
            margin-top: -3px;
        }

        .features-prev:hover,
        .features-next:hover {
            background: #315681;
            color: var(--white-color);
        }

            .features-prev:hover svg path,
            .features-next:hover svg path {
                stroke: var(--white-color);
                fill: var(--white-color);
            }

    .features-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        margin-top: 34px;
    }

        .features-dots ul {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .features-dots li {
            display: flex;
            line-height: 0;
        }

        .features-dots button {
            width: 12px;
            height: 12px;
            padding: 0;
            border: 1px solid #315681;
            border-radius: 50%;
            background: var(--white-color);
            cursor: pointer;
        }

        .features-dots li.slick-active button {
            background: #315681;
        }

    @media (max-width: 991px) {
        .feature-slide {
            width: 300px;
        }
    }

    @media (max-width: 767px) {

        .feature-arrow svg {
            width: 21px;
        }
        .features-slider {
            gap: 15px;
        }

            .features-slider .slick-list {
                padding: 0 20px;
            }

            .features-slider .slick-slide, .features-slider .feature-slide {
                width: min(300px, calc(100vw - 55px)) !important;
            }

        .feature-image {
            height: 185px;
        }

        .feature-content {
            min-height: 210px;
            padding: 18px 16px 40px;
        }

            .feature-content p {
                font-size: var(--fs-base);
            }

        .features-prev,
        .features-next {
            top: 70px;
        }

        .features-prev {
            left: 10px;
        }

        .features-next {
            right: 10px;
        }
    }

    @media (max-width: 575px) {
        .feature-slide {
            width: calc(100vw - 40px);
        }

        .features-prev,
        .features-next {
            width: 34px;
            height: 34px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .feature-image img,
        .feature-image .image-overlay,
        .features-prev,
        .features-next {
            transition: none;
        }
    }
