.vacancy-carousel {
    margin: 24px 0;
    position: relative;
}

.vacancy-carousel_viewport {
    overflow-x: auto;
    scroll-snap-type: none !important;
    -webkit-overflow-scrolling: touch;
    padding: 10px 20px 20px;
    scrollbar-width: none;
}

.vacancy-carousel_viewport::-webkit-scrollbar {
    display: none;
}

.vacancy-carousel_viewport.is-animating {
    scroll-snap-type: none !important;
}

.vacancy-carousel_track {
    display: flex;
    gap: 22px;
    padding: 0;
}

.card-vacancy {
    flex: 0 0 340px;
    min-width: 340px;
    max-width: 340px;
    min-height: auto;
    background: #003b7a;
    border: 0 !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    scroll-snap-align: start;

    &.no-image {
        min-height: auto;
    }

    a:not(.btn) {
        color: #fff;
    }

    .card-title {
        font-weight: 700;
        font-size: 20px;
        line-height: 1.35;
        color: #fff;
        margin-bottom: 18px;
        overflow: hidden;
        min-height: 24px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .vacancy-carousel .card-vacancy .card-title {
    color: #fff;
}

    .card-vacancy-summery {
        color: #fff;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: 120px;
    }

    &:hover {
        transform: translateY(-2px);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
    }
}

.vacancy-carousel {
    .image-container {
        min-height: 220px;
        max-height: 220px;
        overflow: hidden;
        background: #fff;
         clip-path: ellipse(120% 100% at 50% 0%);
        -webkit-clip-path: ellipse(120% 100% at 50% 0%);
    }

    .card-img-cover:before {
        display: none;
    }

    img.card-img-top {
        display: block;
        width: 100%;
        height: 220px;
        object-fit: cover;
        margin: 0;
    }
}

/* content onder afbeelding */
.card-vacancy .card-body,
.card-vacancy .card-content,
.card-vacancy .vacancy-card-content {
    background: #003b7a;
    padding: 22px 22px 18px;
    color: #fff;
}

/* als jouw html geen aparte card-body heeft */
.card-vacancy > :not(.image-container) {
    background: #003b7a;
}

.card-vacancy ul,
.card-vacancy .vacancy-meta {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

.card-vacancy li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #fff;
}

.card-vacancy .btn,
.card-vacancy .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.7);
    background: transparent;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: none;
    transition: all 0.2s ease;
}

.card-vacancy .btn:hover,
.card-vacancy .btn-primary:hover {
    background: #fff;
    color: #003b7a;
    border-color: #fff;
}


.card-vacancy-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 24px;
}

.card-vacancy-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 500;
}

.card-vacancy-meta__item i {
    color: #fff;
    font-size: 16px;
    width: 18px;
}

/* controls */
.vacancy-carousel_controls {
    position: absolute;
    left: -10px;
    right: -10px;
    top: 45%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.vacancy-carousel_ctrl {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 0;
    background: #b7d533;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 14px rgba(0,0,0,.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vacancy-carousel_ctrl .fa {
    color: #fff;
}

.vacancy-carousel_ctrl:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 18px rgba(0,0,0,.22);
}

.vacancy-carousel_ctrl:disabled {
    opacity: .4;
    cursor: default;
    box-shadow: none;
}

.vacancy-overview {
    .card-vacancy {
        max-width: 340px;
        min-width: 340px;
    }
}

@media (max-width: 768px) {
    .vacancy-overview .card-vacancy,
    .card-vacancy {
        flex: 0 0 85vw;
        min-width: 85vw;
        max-width: 85vw;
    }

    .vacancy-carousel_controls {
        display: none;
    }
}