.padra-services-slider {
	--padra-card-background: #f9f7f0;
	--padra-card-text: #231f20;
	--padra-card-accent: #e97d69;
	--padra-card-border: #edc3b7;
	--padra-card-radius: 18px;
	--padra-card-gap: 16px;

	position: relative;
	width: 100%;
	color: var(--padra-card-text);
}

.padra-services-slider *,
.padra-services-slider *::before,
.padra-services-slider *::after {
	box-sizing: border-box;
}

.padra-services-slider__viewport {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.padra-services-slider__viewport::-webkit-scrollbar {
	display: none;
}

.padra-services-slider__viewport.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
	user-select: none;
}

.padra-services-slider__track {
	display: flex;
	align-items: stretch;
	gap: var(--padra-card-gap);
	width: max-content;
	min-width: 100%;
}

.padra-service-card {
	position: relative;
	display: flex;
	flex: 0 0 calc((100vw - 48px) / 4);
	width: calc((100vw - 48px) / 4);
	max-width: calc((100% - (var(--padra-card-gap) * 3)) / 4);
	min-width: 0;
	min-height: 390px;
	overflow: hidden;
	border-radius: var(--padra-card-radius);
	background: var(--padra-card-background);
	scroll-snap-align: start;
	isolation: isolate;
}

.padra-service-card__background,
.padra-service-card__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.padra-service-card__background {
	z-index: -2;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	transform: scale(1.08);
	transition:
		opacity 500ms ease,
		transform 750ms cubic-bezier(.2, .75, .25, 1);
}

.padra-service-card__overlay {
	z-index: -1;
	background:
		linear-gradient(
			180deg,
			rgba(20, 13, 11, 0.12) 0%,
			rgba(20, 13, 11, 0.38) 55%,
			rgba(20, 13, 11, 0.72) 100%
		);
	opacity: 0;
	transition: opacity 500ms ease;
}

.padra-service-card__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100%;
	padding: 26px 24px 22px;
}

.padra-service-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-bottom: 14px;
}

.padra-service-card__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition:
		filter 400ms ease,
		transform 400ms ease;
}

.padra-service-card__title {
	max-width: 230px;
	margin: 0;
	color: inherit;
	font-family:
		var(--e-global-typography-primary-font-family, Georgia),
		serif;
	font-size: clamp(25px, 2vw, 32px);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.03em;
	transition: color 400ms ease;
}

.padra-service-card__footer {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: flex-end;
	margin-top: 42px;
}

.padra-service-card__description {
	margin: 0 0 18px;
	color: inherit;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.42;
	opacity: 0.7;
	transition:
		color 400ms ease,
		opacity 400ms ease;
}

.padra-service-card__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 46px;
	padding: 8px 12px 8px 18px;
	border: 1px solid var(--padra-card-border);
	border-radius: 999px;
	color: inherit;
	font-family: inherit;
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
	background: transparent;
	transition:
		color 400ms ease,
		border-color 400ms ease,
		background-color 400ms ease,
		transform 300ms ease;
}

.padra-service-card__button:hover,
.padra-service-card__button:focus {
	color: inherit;
	text-decoration: none;
}

.padra-service-card__button-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 23px;
	height: 23px;
	color: var(--padra-card-accent);
}

.padra-service-card__button-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: filter 400ms ease;
}

.padra-service-card__button-icon svg {
	display: block;
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

[dir="rtl"] .padra-service-card__button-icon svg {
	transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
	.padra-service-card:hover .padra-service-card__background,
	.padra-service-card:focus-within .padra-service-card__background {
		opacity: 1;
		transform: scale(1);
	}

	.padra-service-card:hover .padra-service-card__overlay,
	.padra-service-card:focus-within .padra-service-card__overlay {
		opacity: 1;
	}

	.padra-service-card:hover,
	.padra-service-card:focus-within {
		color: #fff;
	}

	.padra-service-card:hover .padra-service-card__description,
	.padra-service-card:focus-within .padra-service-card__description {
		opacity: 0.88;
	}

	.padra-service-card:hover .padra-service-card__icon img,
	.padra-service-card:focus-within .padra-service-card__icon img,
	.padra-service-card:hover .padra-service-card__button-icon img,
	.padra-service-card:focus-within .padra-service-card__button-icon img {
		filter: brightness(0) invert(1);
	}

	.padra-service-card:hover .padra-service-card__button,
	.padra-service-card:focus-within .padra-service-card__button {
		border-color: rgba(255, 255, 255, 0.72);
		background: rgba(255, 255, 255, 0.08);
		backdrop-filter: blur(5px);
		-webkit-backdrop-filter: blur(5px);
	}

	.padra-service-card:hover .padra-service-card__button-icon,
	.padra-service-card:focus-within .padra-service-card__button-icon {
		color: #fff;
	}

	.padra-service-card__button:hover {
		transform: translateY(-2px);
		background: rgba(255, 255, 255, 0.16);
	}
}

.padra-services-slider__navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 50px;
}

.padra-services-slider__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--padra-card-border);
	border-radius: 50%;
	color: var(--padra-card-accent);
	background: transparent;
	cursor: pointer;
	transition:
		color 250ms ease,
		background-color 250ms ease,
		border-color 250ms ease,
		opacity 250ms ease;
}

.padra-services-slider__nav:hover {
	color: #fff;
	border-color: var(--padra-card-accent);
	background: var(--padra-card-accent);
}

.padra-services-slider__nav:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.padra-services-slider__nav svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.padra-services-slider__nav--prev svg {
	transform: rotate(180deg);
}

[dir="rtl"] .padra-services-slider__nav--prev svg {
	transform: none;
}

[dir="rtl"] .padra-services-slider__nav--next svg {
	transform: rotate(180deg);
}

@media (min-width: 1200px) {
	.padra-service-card {
		flex-basis: calc((100% - (var(--padra-card-gap) * 3)) / 4);
		width: calc((100% - (var(--padra-card-gap) * 3)) / 4);
	}
}

@media (max-width: 1024px) {
	.padra-service-card {
		flex-basis: calc((100vw - 56px) / 2.35);
		width: calc((100vw - 56px) / 2.35);
		max-width: 420px;
		min-height: 370px;
	}
}

@media (max-width: 767px) {
	.padra-services-slider {
		--padra-card-gap: 12px;
	}

	.padra-service-card {
		flex-basis: calc(86vw - 30px);
		width: calc(86vw - 30px);
		max-width: 340px;
		min-height: 365px;
	}

	.padra-service-card__content {
		padding: 24px 20px 20px;
	}

	.padra-service-card__title {
		font-size: 27px;
	}

	.padra-service-card__description {
		font-size: 13px;
	}

	.padra-services-slider__navigation {
		margin-top: 14px;
	}

	.padra-services-slider__nav {
		width: 38px;
		height: 38px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.padra-services-slider *,
	.padra-services-slider *::before,
	.padra-services-slider *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}




/* ==================================================
   Padra Services Slider — Exact Cards Per View
   ================================================== */

.padra-services-slider__track {
	display: flex;
	align-items: stretch;
	gap: 16px;
	width: 100%;
	min-width: 0;
}

/* Exactly 4 cards on desktop */
.padra-service-card {
	flex: 0 0 calc(25% - 12px);
	width: calc(25% - 12px);
	max-width: none;
	min-width: 0;
}

/*
 * Cloned slides used for infinite loop.
 * Prevent duplicated links from appearing in keyboard navigation.
 */
.padra-service-card[data-padra-clone="true"] {
	pointer-events: auto;
}

/* Tablet: 2 cards */
@media (max-width: 1024px) {
	.padra-services-slider__track {
		gap: 16px;
	}

	.padra-service-card {
		flex-basis: calc(50% - 8px);
		width: calc(50% - 8px);
		max-width: none;
	}
}

/* Mobile: one card with part of next card visible */
@media (max-width: 767px) {
	.padra-services-slider__track {
		gap: 12px;
	}

	.padra-service-card {
		flex-basis: 86%;
		width: 86%;
		max-width: none;
	}
}



/* Remove Elementor focus/active background from navigation buttons */
.padra-services-slider .padra-services-slider__nav:focus,
.padra-services-slider .padra-services-slider__nav:focus-visible,
.padra-services-slider .padra-services-slider__nav:active {
	color: var(--padra-card-accent) !important;
	border-color: var(--padra-card-border) !important;
	background: transparent !important;
	background-color: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
}




/* ==================================================
   Initial Active Card
   Only before the user's first interaction
   ================================================== */

.padra-service-card.is-initial-active {
	color: #fff;
}

.padra-service-card.is-initial-active .padra-service-card__background {
	opacity: 1;
	transform: scale(1);
}

.padra-service-card.is-initial-active .padra-service-card__overlay {
	opacity: 1;
}

.padra-service-card.is-initial-active .padra-service-card__description {
	opacity: 0.88;
}

.padra-service-card.is-initial-active .padra-service-card__icon img,
.padra-service-card.is-initial-active .padra-service-card__button-icon img {
	filter: brightness(0) invert(1);
}

.padra-service-card.is-initial-active .padra-service-card__button {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.72);
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.padra-service-card.is-initial-active .padra-service-card__button-icon {
	color: #fff;
}



/* Instant invisible reset for infinite loop */
.padra-services-slider__viewport.is-loop-resetting {
	scroll-behavior: auto !important;
	scroll-snap-type: none !important;
}