/*
 * Vacature carousel.
 *
 * Deliberately free of CSS custom properties: they were being stripped before
 * reaching the browser on at least one host, which silently turned every
 * var()-based colour transparent and every var()-based size into auto.
 *
 * Accent colour appears as #f26718 (hover #d4560f).
 *
 * Icons are CSS masks, so they take the colour of the surrounding text and work
 * on both light cards and cards with a photo background. To use your own icon,
 * override the two mask-image lines for that field.
 */
.vw-carousel-block {
    position: relative;
    margin: 24px 0;
    /* Room for the navigation buttons in the top right corner. */
    padding-top: 68px;
}

.vw-carousel-block .card-wrapper {
    padding: 10px 8px;
}

.vw-carousel-block .swiper-slide {
    height: auto;
}

/* ---------------------------------------------------------------- card shell */

.vw-carousel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    padding: 0;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vw-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.vw-carousel-card > * {
    width: 100%;
}

.vw-carousel-card article,
.vw-carousel-card .vacancy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    margin: 0;
    padding: 18px;
    box-sizing: border-box;
}

.vw-carousel-card a {
    color: inherit;
    text-decoration: none;
}

/* -------------------------------------------------------------------- badges */

/* right and left together bound the width, so a long label such as
   "Uitzenden en daarna in dienst" wraps instead of running off the card. */
.vw-carousel-badges {
    position: absolute;
    top: 14px;
    right: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vw-carousel-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: calc(13px * var(--vw-font-scale, 1));
    font-weight: 500;
    line-height: 1.25;
    color: #ffffff;
}

.vw-carousel-badge-contract {
    background: #f26718;
}

.vw-carousel-badge-priority {
    background: #dc2626;
}

.vw-carousel-badge-new {
    background: #475569;
}

/* Without a photo the badges sit in the flow, so they cannot cover the title. */
.vw-carousel-card--no-image .vw-carousel-badges {
    position: static;
    padding: 18px 18px 0;
}

.vw-carousel-card--no-image .vw-carousel-image-wrap {
    display: none;
}

/* ------------------------------------------------- photo above the card body */

.vw-carousel-image-wrap {
    overflow: hidden;
}

.vw-carousel-image {
    height: 200px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.vw-carousel-image-placeholder {
    background: linear-gradient(135deg, #dbeafe, #e2e8f0);
}

/* ---------------------------------------------------------------- card body */

.vw-carousel-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
}

.vw-carousel-title {
    margin: 0;
    font-size: calc(20px * var(--vw-font-scale, 1));
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
}

.vw-carousel-meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vw-carousel-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: calc(15px * var(--vw-font-scale, 1));
    line-height: 1.3;
    color: #475569;
}

.vw-carousel-meta-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.vw-carousel-meta--salary .vw-carousel-meta-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M15.4 9.1a4.1 4.1 0 0 0-6.5 2.9 4.1 4.1 0 0 0 6.5 2.9'/%3E%3Cpath d='M7.8 11h4.7'/%3E%3Cpath d='M7.8 13.1h4.7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M15.4 9.1a4.1 4.1 0 0 0-6.5 2.9 4.1 4.1 0 0 0 6.5 2.9'/%3E%3Cpath d='M7.8 11h4.7'/%3E%3Cpath d='M7.8 13.1h4.7'/%3E%3C/svg%3E");
}

.vw-carousel-meta--hours .vw-carousel-meta-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M12 7.1v5.2l3.6 1.9'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M12 7.1v5.2l3.6 1.9'/%3E%3C/svg%3E");
}

.vw-carousel-meta--industry .vw-carousel-meta-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-8'/%3E%3Cpath d='M12 13 5.2 6.2'/%3E%3Cpath d='M5.2 11.2V6.2h5'/%3E%3Cpath d='m12 13 6.8-6.8'/%3E%3Cpath d='M18.8 11.2V6.2h-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-8'/%3E%3Cpath d='M12 13 5.2 6.2'/%3E%3Cpath d='M5.2 11.2V6.2h5'/%3E%3Cpath d='m12 13 6.8-6.8'/%3E%3Cpath d='M18.8 11.2V6.2h-5'/%3E%3C/svg%3E");
}

.vw-carousel-meta--location .vw-carousel-meta-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 10.4c0 5.4-7.5 11.1-7.5 11.1s-7.5-5.7-7.5-11.1a7.5 7.5 0 0 1 15 0z'/%3E%3Ccircle cx='12' cy='10.2' r='2.8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 10.4c0 5.4-7.5 11.1-7.5 11.1s-7.5-5.7-7.5-11.1a7.5 7.5 0 0 1 15 0z'/%3E%3Ccircle cx='12' cy='10.2' r='2.8'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------- button */

.vw-carousel-card-footer {
    margin-top: auto;
    padding-top: 12px;
}

.vw-carousel-card .vw-carousel-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    background: none;
    color: #0f172a;
    font-size: calc(15px * var(--vw-font-scale, 1));
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.vw-carousel-card .vw-carousel-button:hover,
.vw-carousel-card .vw-carousel-button:focus {
    background: none;
    color: #f26718;
}

.vw-carousel-button-arrow {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    transition: transform 0.2s ease;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15.5'/%3E%3Cpath d='m13.5 6 6 6-6 6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15.5'/%3E%3Cpath d='m13.5 6 6 6-6 6'/%3E%3C/svg%3E");
}

.vw-carousel-card .vw-carousel-button:hover .vw-carousel-button-arrow {
    transform: translateX(4px);
}

/* ------------------------------------------------- photo as card background */

.vw-carousel-card--has-background {
    min-height: clamp(360px, 27vw, 460px);
    border-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*
 * Two overlays: one lifting the bottom so the text stays readable, one slightly
 * darkening the left so the photo keeps breathing room in the top right corner.
 */
.vw-carousel-card--has-background:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background:
        linear-gradient(to top,
            rgba(8, 20, 32, 0.95) 0%,
            rgba(8, 20, 32, 0.78) 34%,
            rgba(8, 20, 32, 0.28) 70%,
            rgba(8, 20, 32, 0.05) 100%),
        linear-gradient(to right,
            rgba(8, 20, 32, 0.35) 0%,
            rgba(8, 20, 32, 0) 55%);
}

.vw-carousel-card--has-background > * {
    position: relative;
    z-index: 1;
}

.vw-carousel-card--has-background .vw-carousel-image-wrap {
    display: none;
}

.vw-carousel-card--has-background .vw-carousel-card-body {
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 24px;
    min-height: clamp(360px, 27vw, 460px);
    text-align: center;
}

.vw-carousel-card--has-background .vw-carousel-title,
.vw-carousel-card--has-background .vw-carousel-title a,
.vw-carousel-card--has-background .vw-carousel-meta {
    color: #ffffff;
}

.vw-carousel-card--has-background .vw-carousel-title {
    font-size: calc(clamp(22px, 1.9vw, 29px) * var(--vw-font-scale, 1));
    line-height: 1.08;
    letter-spacing: -0.01em;
}

/* Two columns, centred as a group — matches the 2x2 block in the design. */
.vw-carousel-card--has-background .vw-carousel-meta-list {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    column-gap: 24px;
    row-gap: 10px;
}

/*
 * No auto margin here. In a flex column an auto margin absorbs all free space,
 * which would push the title and the meta block to the top of the card. Without
 * it the body's justify-content: flex-end keeps title, meta and button together
 * as one group at the bottom.
 */
.vw-carousel-card--has-background .vw-carousel-card-footer {
    width: 100%;
    margin-top: 0;
    padding-top: 8px;
}

.vw-carousel-card--has-background .vw-carousel-button,
.vw-carousel-card--has-background .vw-carousel-button:hover,
.vw-carousel-card--has-background .vw-carousel-button:focus {
    color: #ffffff;
}

/* ---------------------------------------------------------------- navigation */

/*
 * Lives outside the swiper element, so the buttons can sit above the container
 * without being clipped by its overflow.
 */
.vw-carousel-nav {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    display: flex;
    gap: 10px;
}

/*
 * Orange filled with a white arrow. The selectors carry .vw-carousel-block so
 * they outrank both Swiper's own navigation styles and generic theme rules for
 * button elements, including their :hover state.
 */
.vw-carousel-block .swiper-button-prev,
.vw-carousel-block .swiper-button-next,
.vw-carousel-block .swiper-slide-button {
    position: static;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #f26718;
    box-shadow: none;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.vw-carousel-block .swiper-button-prev:hover,
.vw-carousel-block .swiper-button-next:hover,
.vw-carousel-block .swiper-button-prev:focus,
.vw-carousel-block .swiper-button-next:focus,
.vw-carousel-block .swiper-slide-button:hover,
.vw-carousel-block .swiper-slide-button:focus {
    background: #d4560f;
    border-color: transparent;
    color: #ffffff;
}

.vw-carousel-block .swiper-button-prev:after,
.vw-carousel-block .swiper-button-next:after {
    font-size: calc(15px * var(--vw-font-scale, 1));
    font-weight: 700;
    color: #ffffff;
}

/* At the first or last slide: lighter orange instead of half transparent. */
.vw-carousel-block .swiper-button-disabled {
    background: #f26718;
    opacity: 0.45;
}

/* ---------------------------------------------------------------- pagination */

/* Sits outside the swiper as well, so undo its absolute positioning. */
.vw-carousel-block .swiper-pagination {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

/* Alignment comes from the "Positie van de bolletjes" setting. */
.vw-carousel-block--pagination-left .swiper-pagination {
    justify-content: flex-start;
}

.vw-carousel-block--pagination-right .swiper-pagination {
    justify-content: flex-end;
}

.vw-carousel-block .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0;
    background: #cbd5e1;
    opacity: 1;
    transition: width 0.2s ease, background 0.2s ease;
}

.vw-carousel-block .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 999px;
    background: #f26718;
}

/* -------------------------------------------------------------------- mobile */

@media (max-width: 700px) {
    .vw-carousel-block {
        padding-top: 0;
    }

    .vw-carousel-image {
        height: 180px;
    }

    .vw-carousel-nav {
        display: none;
    }

    .vw-carousel-card--has-background,
    .vw-carousel-card--has-background .vw-carousel-card-body {
        min-height: 420px;
    }

    .vw-carousel-card--has-background .vw-carousel-card-body {
        padding: 22px;
    }

    .vw-carousel-card--has-background .vw-carousel-title {
        font-size: calc(26px * var(--vw-font-scale, 1));
    }

    .vw-carousel-card--has-background .vw-carousel-meta-list {
        column-gap: 20px;
    }
}
