/**
 * Custom Services Slider - Frontend Styles
 * All class names are prefixed with "csvs-" to avoid clashing with themes
 * or other Elementor widgets.
 */

.csvs-slider {
	--csvs-slides-per-view: 2.4;
	--csvs-space-between: 24px;

	position: relative;
	width: 100%;
}

.csvs-slider__viewport {
	overflow: hidden;
	width: 100%;
}

.csvs-slider__track {
	display: flex;
	will-change: transform;
	/* Transition duration/easing is set inline via JS using the "Transition Speed" control. */
}

.csvs-slider__track.csvs-is-dragging {
	transition: none !important;
	cursor: grabbing;
}

.csvs-slider__slide {
	flex: 0 0 calc((100% - (var(--csvs-slides-per-view) - 1) * var(--csvs-space-between)) / var(--csvs-slides-per-view));
	margin-right: var(--csvs-space-between);
	box-sizing: border-box;
}

.csvs-slider__slide:last-child {
	margin-right: 0;
}

/* ---------- CARD ---------- */

.csvs-card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 28px;
	min-height: 610px;
	height: 100%;
	width: 100%;
	text-decoration: none;
	color: #fff;
	background-color: #1a1a1a;
	transition: transform 0.35s ease;
	-webkit-user-drag: none;
}

.csvs-card:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

.csvs-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s ease;
	pointer-events: none;
	user-select: none;
}

.csvs-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.05) 20%,
		rgba(0, 0, 0, 0.05) 40%,
		rgba(0, 0, 0, 0.25) 58%,
		rgba(0, 0, 0, 0.8) 80%,
		rgba(0, 0, 0, 0.9) 100%
	);
	pointer-events: none;
	z-index: 1;
}

.csvs-card__number {
	position: absolute;
	top: 28px;
	left: 28px;
	z-index: 2;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
	line-height: 1;
}

.csvs-card__category {
	position: absolute;
	top: 150px;
	right: 28px;
	z-index: 2;
	display: inline-block;
	max-width: 60%;
	padding: 8px 16px;
	background-color: #fff;
	color: #222;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	border-radius: 20px;
	text-align: right;
}

.csvs-card__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	padding: 32px;
	box-sizing: border-box;
}

.csvs-card__title {
	display: block;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
	margin-bottom: 12px;
}

.csvs-card__description {
	display: block;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.85);
	max-width: 100%;
}

/* Premium hover effect */
.csvs-card:hover {
	transform: translateY(-8px);
}

.csvs-card:hover .csvs-card__image {
	transform: scale(1.08);
}

/* ---------- NAVIGATION ARROWS ---------- */

.csvs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: none;
	border-radius: 50%;
	background-color: rgba(30, 30, 30, 0.55);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	transition: background-color 0.25s ease, opacity 0.25s ease;
	padding: 0;
}

.csvs-arrow svg {
	width: 1em;
	height: 1em;
}

.csvs-arrow:hover {
	background-color: #1e1e1e;
}

.csvs-arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.csvs-arrow--prev {
	left: -26px;
}

.csvs-arrow--next {
	right: -26px;
}

.csvs-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* ---------- PAGINATION DOTS ---------- */

.csvs-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
}

.csvs-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.2);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.csvs-dot.is-active {
	background-color: #1e1e1e;
	transform: scale(1.2);
}

/* ---------- RESPONSIVE FALLBACKS ---------- */

@media (max-width: 1024px) {
	.csvs-arrow--prev {
		left: 8px;
	}
	.csvs-arrow--next {
		right: 8px;
	}
}

@media (max-width: 767px) {
	.csvs-card {
		min-height: 480px;
	}

	.csvs-card__category {
		max-width: 70%;
		font-size: 11px;
	}

	.csvs-card__title {
		font-size: 21px;
	}

	.csvs-arrow {
		width: 42px;
		height: 42px;
		font-size: 15px;
	}
}