/* ══════════════════════════════════════════════════
   Elementor Content Slider — Frontend Styles
   ══════════════════════════════════════════════════ */

/* ── Wrapper ── */
.ecs-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

/* ── Track (the moving strip) ── */
.ecs-track {
	display: flex;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
	align-items: stretch;
}

/* Fade effect */
.ecs-wrapper.ecs-fade .ecs-track {
	display: block;
	position: relative;
}
.ecs-wrapper.ecs-fade .ecs-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}
.ecs-wrapper.ecs-fade .ecs-slide.is-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
}

/* ── Single slide ── */
.ecs-slide {
	flex: 0 0 auto;
	width: 100%;
	position: relative;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f3f4f6;
	overflow: hidden;
}

/* ── Overlay ── */
.ecs-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

/* ── Background image layer ── */
.ecs-bg-image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

/* ── Inner layout ── */
.ecs-slide-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 60px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Image positions */
.ecs-wrapper.ecs-img-left .ecs-slide-inner,
.ecs-wrapper.ecs-img-right .ecs-slide-inner {
	flex-direction: row;
	align-items: center;
	gap: 40px;
}
.ecs-wrapper.ecs-img-right .ecs-slide-inner {
	flex-direction: row-reverse;
}
.ecs-wrapper.ecs-img-left .ecs-image,
.ecs-wrapper.ecs-img-right .ecs-image {
	flex: 0 0 auto;
	width: 40%;
}
.ecs-wrapper.ecs-img-left .ecs-slide-content,
.ecs-wrapper.ecs-img-right .ecs-slide-content {
	flex: 1;
}

/* ── Image block ── */
.ecs-image {
	width: 100%;
	margin-bottom: 28px;
}
.ecs-image img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
	margin: 0 auto;
}

/* ── Content ── */
.ecs-slide-content {
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
}

/* ── Icon ── */
.ecs-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}
.ecs-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	line-height: 1;
	color: #6366f1;
}
.ecs-icon svg {
	width: 40px;
	height: 40px;
	fill: #6366f1;
}

/* ── Title ── */
.ecs-title {
	margin: 0 0 14px;
	padding: 0;
	color: #111827;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
}

/* ── Description ── */
.ecs-desc {
	margin: 0 0 32px;
	color: #6b7280;
	font-size: 1rem;
	line-height: 1.75;
}
.ecs-desc p:last-child { margin-bottom: 0; }

/* ── Button ── */
.ecs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 36px;
	background-color: #6366f1;
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	line-height: 1;
}
.ecs-btn:hover {
	background-color: #4f46e5;
	text-decoration: none;
}
.ecs-btn-icon {
	display: inline-flex;
	align-items: center;
}
.ecs-btn-icon svg,
.ecs-btn-icon i { font-size: 0.9em; }

/* ── Navigation arrows ── */
.ecs-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 50px;
	height: 50px;
	background-color: rgba(0,0,0,0.35);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, opacity 0.2s ease;
	padding: 0;
}
.ecs-nav:hover { background-color: rgba(0,0,0,0.65); }
.ecs-nav svg {
	width: 20px;
	height: 20px;
	stroke: #ffffff;
	flex-shrink: 0;
}
.ecs-nav-prev { left: 16px; }
.ecs-nav-next { right: 16px; }

.ecs-nav:disabled { opacity: 0.3; cursor: default; }

/* ── Dots / pagination ── */
.ecs-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 24px;
}
.ecs-dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 10px;
	height: 10px;
	border-radius: 9999px;
	background-color: rgba(99,102,241,0.3);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: width 0.3s ease, background-color 0.3s ease;
	overflow: hidden;
	font-size: 0.7rem;
	font-weight: 600;
	color: transparent;
}
.ecs-dot.is-active {
	width: 32px;
	background-color: #6366f1;
}

/* Number dots */
.ecs-dots-numbers .ecs-dot {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	color: #6366f1;
	background-color: rgba(99,102,241,0.12);
	font-size: 0.8rem;
}
.ecs-dots-numbers .ecs-dot.is-active {
	width: 32px;
	background-color: #6366f1;
	color: #ffffff;
}

/* Fraction */
.ecs-dots-fraction { font-size: 0.9rem; }
.ecs-fraction { color: #374151; }
.ecs-frac-cur { font-weight: 700; color: #6366f1; }

/* ── Responsive ── */
@media ( max-width: 1024px ) {
	.ecs-slide-inner { padding: 40px; }
}
@media ( max-width: 767px ) {
	.ecs-slide-inner { padding: 32px 24px; }
	.ecs-wrapper.ecs-img-left .ecs-slide-inner,
	.ecs-wrapper.ecs-img-right .ecs-slide-inner {
		flex-direction: column;
	}
	.ecs-wrapper.ecs-img-left .ecs-image,
	.ecs-wrapper.ecs-img-right .ecs-image { width: 100%; }
	.ecs-title { font-size: 1.5rem; }
	.ecs-nav-prev { left: 8px; }
	.ecs-nav-next { right: 8px; }
	.ecs-nav { width: 38px; height: 38px; }
	.ecs-nav svg { width: 16px; height: 16px; }
}

/* ── Elementor editor placeholder ── */
.elementor-editor-active .ecs-wrapper .ecs-slide { display: flex !important; position: relative !important; opacity: 1 !important; margin-bottom: 12px; }
.elementor-editor-active .ecs-track { flex-direction: column; transform: none !important; }
.elementor-editor-active .ecs-nav,
.elementor-editor-active .ecs-dots { display: none; }
