/* =========================================================
   WF Steps Timeline for Elementor
   ========================================================= */

.wfst {
	/* Defaults – every one of these is overridden by the Elementor controls */
	--wfst-marker-size: 64px;
	--wfst-marker-border-width: 3px;
	--wfst-marker-bg: #edeff2;
	--wfst-marker-border: #8e97a2;
	--wfst-marker-color: #39424e;
	--wfst-marker-bg-active: #c6e0f7;
	--wfst-marker-border-active: #1b7fd3;
	--wfst-marker-color-active: #0b2c5c;

	--wfst-line-thickness: 3px;
	--wfst-line-color: #c9ced4;
	--wfst-line-color-active: #2b87d8;
	--wfst-line-offset: 0px;

	--wfst-col-gap: 24px;
	--wfst-stack-gap: 32px;
	--wfst-marker-content-gap: 22px;

	--wfst-icon-size: 45%;
	--wfst-image-size: 100%;
	--wfst-image-fit: contain;

	box-sizing: border-box;
}

.wfst *,
.wfst *::before,
.wfst *::after {
	box-sizing: border-box;
}

.wfst--ltr {
	direction: ltr;
}

.wfst--rtl {
	direction: rtl;
}

/* ---------- Section heading ---------- */

.wfst__heading-title,
.wfst__heading-sub {
	margin: 0;
}

.wfst__heading-sub {
	margin-block-start: 0.35em;
}

/* ---------- Track ---------- */

.wfst__track {
	display: flex;
	align-items: stretch;
	column-gap: var(--wfst-col-gap);
	width: 100%;
}

.wfst__item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* ---------- Marker row ---------- */

.wfst__marker-row {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: var(--wfst-marker-size);
	margin-block-end: var(--wfst-marker-content-gap);
}

.wfst--marker-start .wfst__marker-row {
	justify-content: flex-start;
}

.wfst--marker-center .wfst__marker-row {
	justify-content: center;
}

/* ---------- Marker ---------- */

.wfst__marker {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wfst-marker-size);
	height: var(--wfst-marker-size);
	border-radius: 50%;
	background-color: var(--wfst-marker-bg);
	border: var(--wfst-marker-border-width) solid var(--wfst-marker-border);
	color: var(--wfst-marker-color);
	overflow: hidden;
	transition: background-color 0.25s ease, border-color 0.25s ease,
		color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.wfst__item--active .wfst__marker {
	background-color: var(--wfst-marker-bg-active);
	border-color: var(--wfst-marker-border-active);
	color: var(--wfst-marker-color-active);
}

.wfst__marker-text {
	display: block;
	line-height: 1;
	color: var(--wfst-marker-color);
	transition: color 0.25s ease;
}

.wfst__item--active .wfst__marker-text {
	color: var(--wfst-marker-color-active);
}

.wfst__marker-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wfst-icon-size);
	height: var(--wfst-icon-size);
}

.wfst__marker-icon i {
	font-size: inherit;
	color: var(--wfst-marker-color);
	line-height: 1;
	transition: color 0.25s ease;
}

.wfst__marker--icon {
	font-size: calc(var(--wfst-marker-size) * 0.4);
}

.wfst__marker-icon svg {
	width: 100%;
	height: 100%;
	fill: var(--wfst-marker-color);
	transition: fill 0.25s ease;
}

.wfst__item--active .wfst__marker-icon i {
	color: var(--wfst-marker-color-active);
}

.wfst__item--active .wfst__marker-icon svg {
	fill: var(--wfst-marker-color-active);
}

.wfst__marker-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--wfst-image-size);
	height: var(--wfst-image-size);
}

.wfst__marker--image {
	overflow: hidden;
}

.wfst__marker-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: var(--wfst-image-fit);
	border-radius: inherit;
}

/* When the image should fill the marker entirely */
.wfst__marker--image {
	padding: 0;
}

.wfst__marker--empty {
	background-color: transparent;
	border-color: transparent;
}

/* ---------- Connecting line (horizontal) ---------- */

.wfst__line {
	position: absolute;
	top: 50%;
	z-index: 1;
	height: 0;
	border-block-start: var(--wfst-line-thickness) solid var(--wfst-line-color);
	transform: translateY(-50%);
	pointer-events: none;
}

.wfst--marker-start .wfst__line {
	inset-inline-start: calc(var(--wfst-marker-size) + var(--wfst-line-offset));
	inset-inline-end: calc(-1 * var(--wfst-col-gap) + var(--wfst-line-offset));
}

.wfst--marker-center .wfst__line {
	inset-inline-start: calc(50% + var(--wfst-marker-size) / 2 + var(--wfst-line-offset));
	inset-inline-end: calc(-50% - var(--wfst-col-gap) + var(--wfst-marker-size) / 2 + var(--wfst-line-offset));
}

.wfst--line-dashed .wfst__line {
	border-block-start-style: dashed;
}

.wfst--line-dotted .wfst__line {
	border-block-start-style: dotted;
}

.wfst__item--active .wfst__line {
	border-color: var(--wfst-line-color-active);
}

/* Fade from the active color to the normal color on the transition segment */
.wfst--line-gradient
	.wfst__item--active:has(+ .wfst__item:not(.wfst__item--active))
	.wfst__line {
	border-block-start-width: 0;
	height: var(--wfst-line-thickness);
	background-image: linear-gradient(
		to right,
		var(--wfst-line-color-active),
		var(--wfst-line-color)
	);
}

.wfst--line-gradient
	.wfst__item--active:has(+ .wfst__item:not(.wfst__item--active))
	.wfst__line:dir(rtl) {
	background-image: linear-gradient(
		to left,
		var(--wfst-line-color-active),
		var(--wfst-line-color)
	);
}

/* ---------- Scroll progress fill ---------- */

.wfst__line-fill {
	position: absolute;
	inset-inline-start: 0;
	top: calc(-1 * var(--wfst-line-thickness));
	width: var(--wfst-fill, 0%);
	height: 0;
	border-block-start: var(--wfst-line-thickness) solid var(--wfst-line-color-active);
	transition: width var(--wfst-fill-transition, 0.15s) linear;
	will-change: width;
}

.wfst--line-dashed .wfst__line-fill {
	border-block-start-style: dashed;
}

.wfst--line-dotted .wfst__line-fill {
	border-block-start-style: dotted;
}

/* While animating, the base line always stays in its normal color –
   the coloring is done by the fill overlay. */
.wfst--animated .wfst__item--active .wfst__line {
	border-color: var(--wfst-line-color);
}

/* Vertical (stacked) fill */
.wfst--stacked .wfst__line-fill {
	top: 0;
	inset-inline-start: calc(-1 * var(--wfst-line-thickness));
	width: 0;
	height: var(--wfst-fill, 0%);
	border-block-start: 0;
	border-inline-start: var(--wfst-line-thickness) solid var(--wfst-line-color-active);
	transition: height var(--wfst-fill-transition, 0.15s) linear;
	will-change: height;
}

.wfst--stacked.wfst--line-dashed .wfst__line-fill {
	border-inline-start-style: dashed;
}

.wfst--stacked.wfst--line-dotted .wfst__line-fill {
	border-inline-start-style: dotted;
}

@media (prefers-reduced-motion: reduce) {
	.wfst__line-fill,
	.wfst__marker {
		transition: none;
	}
}

/* ---------- Content ---------- */

.wfst__content {
	flex: 1 1 auto;
}

.wfst__title {
	margin: 0 0 12px;
}

.wfst__title a {
	color: inherit;
	text-decoration: none;
}

.wfst__desc {
	margin: 0;
}

.wfst__desc p {
	margin: 0 0 0.6em;
}

.wfst__desc p:last-child {
	margin-bottom: 0;
}

/* =========================================================
   Stacked (vertical) layout
   ========================================================= */

.wfst--stacked .wfst__track {
	flex-direction: column;
	column-gap: 0;
	row-gap: var(--wfst-stack-gap);
}

.wfst--stacked .wfst__item {
	display: grid;
	grid-template-columns: var(--wfst-marker-size) minmax(0, 1fr);
	column-gap: var(--wfst-marker-content-gap);
	align-items: start;
	flex: 0 0 auto;
}

.wfst--stacked .wfst__marker-row {
	position: static;
	margin-block-end: 0;
	width: auto;
	justify-content: flex-start;
	min-height: var(--wfst-marker-size);
}

.wfst--stacked .wfst__content {
	max-width: 100% !important;
	padding-block-start: 0;
}

.wfst--stacked .wfst__line {
	top: calc(var(--wfst-marker-size) + var(--wfst-line-offset));
	bottom: calc(-1 * var(--wfst-stack-gap) + var(--wfst-line-offset));
	inset-inline-start: calc(var(--wfst-marker-size) / 2 - var(--wfst-line-thickness) / 2);
	inset-inline-end: auto;
	width: 0;
	height: auto;
	border-block-start: 0;
	border-inline-start: var(--wfst-line-thickness) solid var(--wfst-line-color);
	transform: none;
}

.wfst--stacked.wfst--line-dashed .wfst__line {
	border-inline-start-style: dashed;
}

.wfst--stacked.wfst--line-dotted .wfst__line {
	border-inline-start-style: dotted;
}

/* Breakpoint triggers – Elementor defaults */

@media (max-width: 1024px) {
	.wfst--stack-tablet .wfst__track {
		flex-direction: column;
		column-gap: 0;
		row-gap: var(--wfst-stack-gap);
	}

	.wfst--stack-tablet .wfst__item {
		display: grid;
		grid-template-columns: var(--wfst-marker-size) minmax(0, 1fr);
		column-gap: var(--wfst-marker-content-gap);
		align-items: start;
		flex: 0 0 auto;
	}

	.wfst--stack-tablet .wfst__marker-row {
		position: static;
		margin-block-end: 0;
		width: auto;
		justify-content: flex-start;
	}

	.wfst--stack-tablet .wfst__content {
		max-width: 100% !important;
	}

	.wfst--stack-tablet .wfst__line {
		top: calc(var(--wfst-marker-size) + var(--wfst-line-offset));
		bottom: calc(-1 * var(--wfst-stack-gap) + var(--wfst-line-offset));
		inset-inline-start: calc(var(--wfst-marker-size) / 2 - var(--wfst-line-thickness) / 2);
		inset-inline-end: auto;
		width: 0;
		height: auto;
		border-block-start: 0;
		border-inline-start: var(--wfst-line-thickness) solid var(--wfst-line-color);
		transform: none;
	}

	.wfst--stack-tablet.wfst--line-dashed .wfst__line {
		border-inline-start-style: dashed;
	}

	.wfst--stack-tablet.wfst--line-dotted .wfst__line {
		border-inline-start-style: dotted;
	}
}

@media (max-width: 767px) {
	.wfst--stack-mobile .wfst__track,
	.wfst--stack-tablet .wfst__track {
		flex-direction: column;
		column-gap: 0;
		row-gap: var(--wfst-stack-gap);
	}

	.wfst--stack-mobile .wfst__item,
	.wfst--stack-tablet .wfst__item {
		display: grid;
		grid-template-columns: var(--wfst-marker-size) minmax(0, 1fr);
		column-gap: var(--wfst-marker-content-gap);
		align-items: start;
		flex: 0 0 auto;
	}

	.wfst--stack-mobile .wfst__marker-row,
	.wfst--stack-tablet .wfst__marker-row {
		position: static;
		margin-block-end: 0;
		width: auto;
		justify-content: flex-start;
	}

	.wfst--stack-mobile .wfst__content,
	.wfst--stack-tablet .wfst__content {
		max-width: 100% !important;
	}

	.wfst--stack-mobile .wfst__line,
	.wfst--stack-tablet .wfst__line {
		top: calc(var(--wfst-marker-size) + var(--wfst-line-offset));
		bottom: calc(-1 * var(--wfst-stack-gap) + var(--wfst-line-offset));
		inset-inline-start: calc(var(--wfst-marker-size) / 2 - var(--wfst-line-thickness) / 2);
		inset-inline-end: auto;
		width: 0;
		height: auto;
		border-block-start: 0;
		border-inline-start: var(--wfst-line-thickness) solid var(--wfst-line-color);
		transform: none;
	}

	.wfst--stack-mobile.wfst--line-dashed .wfst__line,
	.wfst--stack-tablet.wfst--line-dashed .wfst__line {
		border-inline-start-style: dashed;
	}

	.wfst--stack-mobile.wfst--line-dotted .wfst__line,
	.wfst--stack-tablet.wfst--line-dotted .wfst__line {
		border-inline-start-style: dotted;
	}
}

/* ---------- Gradient segment in stacked mode ---------- */

.wfst--stacked.wfst--line-gradient
	.wfst__item--active:has(+ .wfst__item:not(.wfst__item--active))
	.wfst__line {
	border-inline-start-width: 0;
	width: var(--wfst-line-thickness);
	height: auto;
	background-image: linear-gradient(
		to bottom,
		var(--wfst-line-color-active),
		var(--wfst-line-color)
	);
}

@media (max-width: 1024px) {
	.wfst--stack-tablet.wfst--line-gradient
		.wfst__item--active:has(+ .wfst__item:not(.wfst__item--active))
		.wfst__line {
		border-inline-start-width: 0;
		border-block-start-width: 0;
		width: var(--wfst-line-thickness);
		height: auto;
		background-image: linear-gradient(
			to bottom,
			var(--wfst-line-color-active),
			var(--wfst-line-color)
		);
	}
}

@media (max-width: 767px) {
	.wfst--stack-mobile.wfst--line-gradient
		.wfst__item--active:has(+ .wfst__item:not(.wfst__item--active))
		.wfst__line,
	.wfst--stack-tablet.wfst--line-gradient
		.wfst__item--active:has(+ .wfst__item:not(.wfst__item--active))
		.wfst__line {
		border-inline-start-width: 0;
		border-block-start-width: 0;
		width: var(--wfst-line-thickness);
		height: auto;
		background-image: linear-gradient(
			to bottom,
			var(--wfst-line-color-active),
			var(--wfst-line-color)
		);
	}
}

/* ---------- Vertical fill inside the responsive breakpoints ---------- */

@media (max-width: 1024px) {
	.wfst--stack-tablet .wfst__line-fill {
		top: 0;
		inset-inline-start: calc(-1 * var(--wfst-line-thickness));
		width: 0;
		height: var(--wfst-fill, 0%);
		border-block-start: 0;
		border-inline-start: var(--wfst-line-thickness) solid var(--wfst-line-color-active);
		transition: height var(--wfst-fill-transition, 0.15s) linear;
	}

	.wfst--stack-tablet.wfst--line-dashed .wfst__line-fill {
		border-inline-start-style: dashed;
	}

	.wfst--stack-tablet.wfst--line-dotted .wfst__line-fill {
		border-inline-start-style: dotted;
	}
}

@media (max-width: 767px) {
	.wfst--stack-mobile .wfst__line-fill,
	.wfst--stack-tablet .wfst__line-fill {
		top: 0;
		inset-inline-start: calc(-1 * var(--wfst-line-thickness));
		width: 0;
		height: var(--wfst-fill, 0%);
		border-block-start: 0;
		border-inline-start: var(--wfst-line-thickness) solid var(--wfst-line-color-active);
		transition: height var(--wfst-fill-transition, 0.15s) linear;
	}

	.wfst--stack-mobile.wfst--line-dashed .wfst__line-fill,
	.wfst--stack-tablet.wfst--line-dashed .wfst__line-fill {
		border-inline-start-style: dashed;
	}

	.wfst--stack-mobile.wfst--line-dotted .wfst__line-fill,
	.wfst--stack-tablet.wfst--line-dotted .wfst__line-fill {
		border-inline-start-style: dotted;
	}
}
