/**
 * Elementor Card Slider — frontend styles
 * Layout only. Everything visual is driven by Elementor controls.
 */

.ecs-wrapper {
	--ecs-hover-distance: 8px;
	--ecs-image-zoom: 1.08;
	position: relative;
}

.ecs-slider-outer {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}

.ecs-slider {
	position: relative;
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

/* Swiper needs a little breathing room so shadows are not clipped. */
.ecs-slider .swiper-wrapper {
	align-items: stretch;
	box-sizing: border-box;
}

.ecs-slide {
	height: auto;
	display: flex;
}

/* ------------------------------------------------------------------ */
/* Card                                                                */
/* ------------------------------------------------------------------ */

.ecs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background-color: #fff;
	transition-property: transform, box-shadow, background-color, border-color;
	transition-timing-function: ease;
	transition-duration: 0.3s;
	will-change: transform;
}

.ecs-equal-height-yes .ecs-card {
	height: 100%;
}

.ecs-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

/* Whole-card link sits above the card but below the real button. */
.ecs-card__overlay-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	text-indent: -9999px;
	overflow: hidden;
}

.ecs-card__tags,
.ecs-card__title,
.ecs-card__content,
.ecs-card__footer,
.ecs-card__media {
	position: relative;
	z-index: 2;
}

/* Only when the whole card is a link: let clicks fall through to the overlay,
   except on elements that are themselves interactive. */
.ecs-card--linked .ecs-card__tags,
.ecs-card--linked .ecs-card__title,
.ecs-card--linked .ecs-card__content,
.ecs-card--linked .ecs-card__footer,
.ecs-card--linked .ecs-card__media {
	pointer-events: none;
}

.ecs-card--linked .ecs-card__content a,
.ecs-card--linked .ecs-card__footer a,
.ecs-card--linked .ecs-card__footer button {
	pointer-events: auto;
}

/* Hover effects */
.ecs-hover-lift .ecs-card:hover {
	transform: translateY(calc(var(--ecs-hover-distance) * -1));
}

.ecs-hover-sink .ecs-card:hover {
	transform: translateY(var(--ecs-hover-distance));
}

.ecs-hover-grow .ecs-card:hover {
	transform: scale(calc(1 + (var(--ecs-hover-distance) / 100)));
}

@media (prefers-reduced-motion: reduce) {
	.ecs-card,
	.ecs-card__img {
		transition: none !important;
	}

	.ecs-hover-lift .ecs-card:hover,
	.ecs-hover-sink .ecs-card:hover,
	.ecs-hover-grow .ecs-card:hover {
		transform: none;
	}
}

/* ------------------------------------------------------------------ */
/* Media                                                               */
/* ------------------------------------------------------------------ */

.ecs-card__media {
	position: relative;
	display: block;
	width: 100%;
	height: 220px;
	overflow: hidden;
	flex: 0 0 auto;
	line-height: 0;
}

.ecs-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition-property: transform, opacity;
	transition-timing-function: ease;
	transition-duration: 0.3s;
}

.ecs-image-zoom .ecs-card:hover .ecs-card__img {
	transform: scale(var(--ecs-image-zoom));
}

/* ------------------------------------------------------------------ */
/* Tags                                                                */
/* ------------------------------------------------------------------ */

.ecs-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.ecs-align-center .ecs-card__tags,
.ecs-align-tablet-center .ecs-card__tags,
.ecs-align-mobile-center .ecs-card__tags {
	justify-content: center;
}

.ecs-align-right .ecs-card__tags,
.ecs-align-tablet-right .ecs-card__tags,
.ecs-align-mobile-right .ecs-card__tags {
	justify-content: flex-end;
}

.ecs-align-left .ecs-card__tags,
.ecs-align-tablet-left .ecs-card__tags,
.ecs-align-mobile-left .ecs-card__tags {
	justify-content: flex-start;
}

.ecs-tag {
	display: inline-flex;
	align-items: center;
	line-height: 1.4;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* ------------------------------------------------------------------ */
/* Title + content                                                     */
/* ------------------------------------------------------------------ */

.ecs-card__title {
	margin: 0 0 10px;
	word-break: break-word;
}

.ecs-card__title[style*="--ecs-clamp"],
.ecs-card__content[style*="--ecs-clamp"] {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--ecs-clamp, 999);
	line-clamp: var(--ecs-clamp, 999);
	overflow: hidden;
}

.ecs-card__content {
	flex: 1 1 auto;
	min-width: 0;
	word-break: break-word;
}

.ecs-card__content > *:first-child {
	margin-top: 0;
}

.ecs-card__content > *:last-child {
	margin-bottom: 0;
}

.ecs-card__content ul,
.ecs-card__content ol {
	margin: 0 0 1em;
	padding-inline-start: 20px;
	list-style-position: outside;
}

.ecs-card__content li + li {
	margin-top: 6px;
}

.ecs-card__content img {
	max-width: 100%;
	height: auto;
}

.ecs-card__content table {
	width: 100%;
	border-collapse: collapse;
}

/* ------------------------------------------------------------------ */
/* Button                                                              */
/* ------------------------------------------------------------------ */

.ecs-card__footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: auto;
}

.ecs-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-direction: row-reverse;
	gap: 8px;
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	background-color: #0f766e;
	color: #fff;
	text-decoration: none;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ecs-card__footer[style*="stretch"] .ecs-button,
.ecs-card__footer > .ecs-button {
	max-width: 100%;
}

.ecs-button:hover,
.ecs-button:focus {
	text-decoration: none;
}

.ecs-button__icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.ecs-button__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ------------------------------------------------------------------ */
/* Arrows                                                              */
/* ------------------------------------------------------------------ */

.ecs-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #e6e8ec;
	border-radius: 50%;
	background-color: #fff;
	color: #111827;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	z-index: 5;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ecs-arrow svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ecs-arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.ecs-arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.ecs-arrow.swiper-button-lock {
	display: none;
}

/* Inside the slider area */
.ecs-arrows-inside .ecs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.ecs-arrows-inside .ecs-arrow--prev {
	inset-inline-start: 16px;
}

.ecs-arrows-inside .ecs-arrow--next {
	inset-inline-end: 16px;
}

/* Below the slider */
.ecs-arrows--bottom {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
}

.ecs-arrows-bottom-center .ecs-arrows--bottom {
	justify-content: center;
}

.ecs-arrows-bottom-right .ecs-arrows--bottom {
	justify-content: flex-end;
}

.ecs-arrows-bottom-left .ecs-arrows--bottom {
	justify-content: flex-start;
}

/* ------------------------------------------------------------------ */
/* Pagination                                                          */
/* ------------------------------------------------------------------ */

.ecs-pagination {
	position: static !important;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	margin-top: 24px;
}

.ecs-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	margin: 0 !important;
	background-color: #d1d5db;
	opacity: 1;
	border-radius: 50%;
	transition: width 0.3s ease, background-color 0.3s ease;
}

.ecs-pagination .swiper-pagination-bullet-active {
	width: 28px;
	background-color: #0f766e;
}

.ecs-pagination.swiper-pagination-fraction {
	display: block;
	text-align: center;
}

.ecs-pagination.swiper-pagination-progressbar {
	position: relative !important;
	display: block;
	height: 4px;
	background-color: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
}

.ecs-pagination .swiper-pagination-progressbar-fill {
	background-color: #0f766e;
}

.ecs-pagination.swiper-pagination-lock {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Fade effect                                                         */
/* ------------------------------------------------------------------ */

.ecs-slider.swiper-fade .swiper-slide {
	pointer-events: none;
}

.ecs-slider.swiper-fade .swiper-slide-active {
	pointer-events: auto;
}

/* ------------------------------------------------------------------ */
/* Editor helper                                                       */
/* ------------------------------------------------------------------ */

.ecs-empty {
	padding: 24px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	color: #6b7280;
	text-align: center;
	font-size: 14px;
}
