/**
 * Vellis Slider widget styles.
 *
 * Includes a minimal Swiper layout layer so the widget works even if
 * Elementor's Swiper stylesheet is not enqueued on the page, plus the card,
 * navigation pill and pagination styling.
 */

/* ------------------------------------------------------------------ *
 * Minimal Swiper structure (safe to coexist with Elementor's swiper CSS)
 * ------------------------------------------------------------------ */
.vellis-slider .swiper {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
}

.vellis-slider .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    box-sizing: content-box;
    transition-property: transform;
    transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
}

.vellis-slider .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
}

/* ------------------------------------------------------------------ *
 * Card
 * ------------------------------------------------------------------ */
.vellis-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background-color: transparent;
}

.vellis-card__media {
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex: 0 0 auto;
}

.vellis-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vellis-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 24px;
    background-color: #103E3F;
    color: #fff;
}

.vellis-card__title {
    margin: 0 0 12px;
    color: #fff;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
}

.vellis-card__desc {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.vellis-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: auto;
    padding: 16px 32px;
    border-radius: 100px;
    background-color: #fff;
    color: #113F42;
    text-decoration: none;
    text-transform: none;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.vellis-card__cta:hover,
.vellis-card__cta:focus {
    background-color: #75ACB0;
    color: #fff;
}

/* Column layout so the nav row can sit above or below the swiper */
.vellis-slider {
    display: flex;
    flex-direction: column;
}

/* As a flex child the .swiper must not size to the sum of its slides — without
   min-width:0 it overflows and collapses to a single full-width slide. */
.vellis-slider__swiper {
    width: 100%;
    min-width: 0;
}

/* ------------------------------------------------------------------ *
 * Navigation pill arrows
 * ------------------------------------------------------------------ */
.vellis-slider__nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--vellis-nav-spacing, 24px);
}

/* Arrows below the slides (prefix_class: vellis-slider--nav-below) */
.vellis-slider--nav-below .vellis-slider__swiper {
    order: 1;
}

.vellis-slider--nav-below .vellis-slider__nav-group {
    order: 2;
    margin-bottom: 0;
    margin-top: var(--vellis-nav-spacing, 24px);
}

.vellis-slider__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 48px;
    padding: 0;
    border: 1.5px solid #113F42;
    border-radius: 24px;
    background-color: transparent;
    color: #113F42;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.vellis-slider__nav svg {
    width: 24px;
    height: 24px;
    color: inherit;
}

.vellis-slider__nav:hover {
    background-color: #113F42;
    color: #fff;
}

.vellis-slider__nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

/* Arrow group placement (prefix_class: vellis-slider--arrows-) */
.vellis-slider--arrows-split .vellis-slider__nav-group {
    justify-content: space-between;
    max-width: 1340px;
    padding-right: 16px;
}

/* Above 1536px viewports, constrain the split arrow row tighter. */
@media (min-width: 1536px) {
    .vellis-slider--arrows-split .vellis-slider__nav-group {
        max-width: 1610px;
        padding-right: 0;
    }
}

.vellis-slider--arrows-right .vellis-slider__nav-group {
    justify-content: flex-end;
}

.vellis-slider--arrows-left .vellis-slider__nav-group {
    justify-content: flex-start;
}

.vellis-slider--arrows-center .vellis-slider__nav-group {
    justify-content: center;
}

/* ------------------------------------------------------------------ *
 * Pagination
 * ------------------------------------------------------------------ */
.vellis-slider .swiper-pagination {
    position: static;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.vellis-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background-color: rgba(17, 63, 66, 0.25);
    opacity: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, width 0.2s ease;
}

.vellis-slider .swiper-pagination-bullet-active {
    background-color: #113F42;
}

/* ------------------------------------------------------------------ *
 * Reduced motion
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {

    .vellis-card__cta svg,
    .vellis-slider__nav {
        transition: none !important;
    }

    .vellis-card__cta:hover svg {
        transform: none !important;
    }
}