/* Career Cards Element - Minimal styling */

/* Ensure card uses full height in flex container */
.wbn-career-card {
    height: 100%;
    border: none;
    --bs-border-color: var(--card-accent, var(--bs-primary));
    --bs-card-border-radius: 4px;
    --bs-box-shadow: 0 8px 32px 0 rgba(11, 14, 17, 0.10);
    hyphens: auto;
}

.wbn-light-tag {
    font-size: calc(12 / 16 * 1rem);
    font-weight: 600;
}

.wbn-career-card .card-footer {
    margin-top: auto;
}

.wbn-career-card .subtitle, .wbn-career-card .text-muted {
    font-size: calc(18 / 16 * 1rem);
}

/* Room for dots below the slides, arrows stay inside the slider */
.wbn-career-cards-slider {
    padding-bottom: 3rem;
}

/* Size the slider from its parent only; otherwise Swiper's slide widths feed back into the container width */
.wbn-career-cards-slider {
    contain: inline-size;
}

.wbn-career-cards-slider .swiper-pagination {
    bottom: 0;
}

.wbn-career-cards-slider-wrapper {
    position: relative;
    --swiper-pagination-color: var(--bs-primary);
}

/* Centre arrows on the slides, not on the dots row below them */
.wbn-career-cards-slider-wrapper .swiper-button-prev,
.wbn-career-cards-slider-wrapper .swiper-button-next {
    top: calc(50% - 1.5rem);
    color: var(--bs-primary);
}

.wbn-career-cards-arrows-outside {
    padding-inline: 3rem;
}

.wbn-career-cards-arrows-outside .swiper-button-prev {
    left: 0;
}

.wbn-career-cards-arrows-outside .swiper-button-next {
    right: 0;
}
