/* ELTEK Careers – center-mode carousel (paired with carousel.js) */
.eltek-carousel.ec-ready {
	--ec-w: clamp(280px, 25vw, 620px);
	--ec-gap: 10px;
	--ec-h: calc(var(--ec-w) * 0.56);
	--ec-h-active: calc(var(--ec-w) * 0.72);
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 0;
	user-select: none;
	touch-action: pan-y;
}

.eltek-carousel.ec-ready .eltek-carousel-track {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 0;
	padding: 0;
	width: max-content;
	min-height: calc(var(--ec-h-active) + 54px);
	transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
	will-change: transform;
}

/* !important: Elementor's atomic flexbox base styles otherwise force a row layout and fluid width. */
.eltek-carousel .ec-slide {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	gap: 14px !important;
	box-sizing: border-box;
	width: var(--ec-w) !important;
	min-width: var(--ec-w) !important;
	max-width: var(--ec-w) !important;
	flex: 0 0 var(--ec-w) !important;
	margin: 0 !important;
	padding: calc((var(--ec-h-active) - var(--ec-h)) / 2) calc(var(--ec-gap) / 2) 0 !important;
	cursor: pointer;
	transition: padding 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.eltek-carousel .ec-slide img {
	display: block;
	width: 100% !important;
	max-width: none;
	flex-shrink: 0;
	height: var(--ec-h);
	object-fit: cover;
	border-radius: 4px;
	filter: saturate(0.85);
	transition: height 0.7s cubic-bezier(0.65, 0, 0.35, 1), filter 0.7s ease;
	-webkit-user-drag: none;
}

.eltek-carousel .ec-slide p {
	display: block;
	margin: 0;
	font-family: var(--font-heading), "Plus Jakarta Sans", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #1C2345;
	padding-left: 14px;
	border-left: 3px solid var(--ec-accent, #1B75BC);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.eltek-carousel .ec-slide.is-active {
	padding-top: 0 !important;
	cursor: default;
}

.eltek-carousel .ec-slide.is-active img {
	height: var(--ec-h-active);
	filter: none;
	box-shadow: 0 24px 48px -20px rgba(28, 35, 69, 0.45);
}

.eltek-carousel .ec-slide.is-active p {
	opacity: 1;
	transform: none;
}

/* Instant reposition when wrapping from a clone back to the originals. */
.eltek-carousel .is-jumping,
.eltek-carousel .is-jumping .ec-slide,
.eltek-carousel .is-jumping .ec-slide img,
.eltek-carousel .is-jumping .ec-slide p {
	transition: none !important;
}

.eltek-carousel .ec-arrow {
	position: absolute;
	top: calc(var(--ec-h-active) / 2);
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(28, 35, 69, 0.88);
	color: #FFFFFF;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.eltek-carousel .ec-arrow:hover,
.eltek-carousel .ec-arrow:focus-visible {
	background-color: #1B75BC;
	outline: none;
}

.eltek-carousel .ec-arrow:focus-visible {
	box-shadow: 0 0 0 3px #F7931D;
}

.eltek-carousel .ec-arrow svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.eltek-carousel .ec-prev {
	left: 24px;
}

.eltek-carousel .ec-next {
	right: 24px;
}

@media (max-width: 1024px) {
	.eltek-carousel.ec-ready {
		--ec-w: 42vw;
	}
}

@media (max-width: 767px) {
	.eltek-carousel.ec-ready {
		--ec-w: 76vw;
		--ec-gap: 8px;
	}

	.eltek-carousel .ec-arrow {
		width: 44px;
		height: 44px;
	}

	.eltek-carousel .ec-prev {
		left: 10px;
	}

	.eltek-carousel .ec-next {
		right: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eltek-carousel.ec-ready .eltek-carousel-track,
	.eltek-carousel .ec-slide,
	.eltek-carousel .ec-slide img,
	.eltek-carousel .ec-slide p {
		transition: none;
	}
}
