/*
 * [uks_services_slider] - the "Services We Offer" slider.
 *
 * Its own file, loaded only on pages that use the shortcode. Markup comes from
 * inc/shortcodes.php, behaviour from js/services-slider.js.
 */

.uks-sslider {
	--uks-ss-navy: #142E71;
	--uks-ss-text: #1F2A44;
	--uks-ss-line: #E3E7EF;
	--uks-ss-track: #D7DEEC;
	--uks-ss-foot-bg: #EEF2F9;
	--uks-ss-image: 110px;
	--uks-ss-pad: 16px;
	border-radius: 6px;
	overflow: hidden;
}

.uks-sslider__title {
	margin: 0;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

.slider-card-body {
    padding: 12px 16px 19px 16px;
    border: 1px solid #fff;
    box-shadow: 0px 4px 4px 0px #0000001A;
    backdrop-filter: blur(4px);
    background-color: #FFFFFFE5;
	display: flex;
    flex-direction: column;
    gap: 17px;
	position: relative;
	z-index: 1;
}

.uks-sslider__body {
	position: relative;
}
.uks-sslider__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background-color: #D4DBE2E5;
    color: #000000CC;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    backdrop-filter: blur(4px);
    line-height: 24px;
	border-radius: 0px 0px 4px 4px;
}
/* ------------------------------------------------------------- a slide -- */

.uks-sslider__item {
	display: flex;
	gap: 18px;
	color: var(--uks-ss-text);
	text-decoration: none;
}
.service-image {
    display: flex;
}
.uks-sslider__image {
	flex: 0 0 auto;
	width: 200px;
	/* aspect-ratio: 4 / 3; */
	overflow: hidden;
	border-radius: 4px;
}

.slider-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.uks-sslider__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uks-sslider__controls-bottom {
    display: none;
}

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

.uks-sslider__name {
	min-width: 0;
    font-size: 20px;
    line-height: 32px;
    color: #000;
    font-weight: 400;
}

/* .uks-sslider__item:hover .uks-sslider__name,
.uks-sslider__item:focus-visible .uks-sslider__name {
	color: var(--uks-ss-navy);
	text-decoration: underline;
} */

/* ----------------------------------------------------------- controls -- */


.uks-sslider__count {
	flex: 0 0 auto;
    color: #000;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    line-height: 24px;
}

.uks-sslider__progress {
	flex: 1 1 auto;
    height: 3px;
    border-radius: 12px;
    background-color: #A3B0D1;
    overflow: hidden;
    width: 75px;
}

.uks-sslider__progress-bar {
	display: block;
	width: 0;
	height: 100%;
	background-color: var(--uks-ss-navy);
	transition: width 0.3s ease;
}

/* While the slider is running on a timer the bar is the countdown, and the JS
   already moves it smoothly - easing on top of that only makes it lag. */
.uks-sslider.is-timed .uks-sslider__progress-bar {
	transition: none;
}

.uks-sslider__nav {
	position: relative;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #D4DBE2;
    border-radius: 4px;
    background: #fff;
    color: #1C1B1F;
    cursor: pointer;
}

/* .uks-sslider__nav:hover {
	border-color: var(--uks-ss-navy);
} */
.uks-sslider__nav:focus {
    outline-style: none !important;
    outline-width: 0px !important;
}

.uks-sslider__nav.swiper-button-disabled {
	opacity: 0.4;
	cursor: default;
}

/* Chevrons drawn with borders, so there is no icon file to keep in sync. */
.uks-sslider__nav::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
}

.uks-sslider__nav--prev::before {
	transform: translate(-30%, -50%) rotate(135deg);
}

.uks-sslider__nav--next::before {
	transform: translate(-70%, -50%) rotate(-45deg);
}

/* ---------------------------------------------------------------- foot -- */


.uks-sslider__cta:hover,
.uks-sslider__cta:focus-visible {
	color: var(--uks-ss-navy);
	text-decoration: underline;
}

.uks-sslider__arrow {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 2px;
	background-color: currentColor;
}

.uks-sslider__arrow::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 7px;
	height: 7px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
	.uks-sslider__progress-bar {
		transition: none;
	}
}
