/* Custom Timeline for Elementor — base structural styles.
   Colors, fonts, sizes are controlled dynamically from Elementor's Style tab. */

.ctw-timeline,
.ctw-timeline * {
	box-sizing: border-box;
}

.ctw-timeline {
	position: relative;
	width: 100%;
}

.ctw-item {
	position: relative;
	background-color: #F6F6F8;
}

.ctw-item-inner {
	display: flex;
	align-items: stretch;
	gap: 24px;
	padding: 30px 40px;
}

.ctw-rail {
	position: relative;
	flex: 0 0 90px;
	width: 90px;
	max-width: 90px;
	display: flex;
	justify-content: center;
}

/* Connector line: starts at this item's circle center and reaches all the
   way to the NEXT item's circle center, regardless of card padding or the
   spacing between cards — so the line always stays fully continuous even
   when "Space Between Items" is 0 (default) and cards touch each other. */
.ctw-rail::after {
	content: "";
	position: absolute;
	left: 50%;
	top: calc(var(--ctw-circle, 44px) / 2);
	height: calc(
		100% +
		var(--ctw-pad-bottom, 30px) +
		var(--ctw-spacing, 0px) +
		var(--ctw-pad-top, 30px) +
		(var(--ctw-circle, 44px) / 2)
	);
	border-left: 1px solid #c9c9cf;
	pointer-events: none;
	z-index: 1;
}

.ctw-item:last-child .ctw-rail::after {
	display: none !important;
}

.ctw-icon {
	position: relative;
	z-index: 2;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: #F4831F;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.ctw-icon i,
.ctw-icon svg {
	display: block;
	line-height: 1;
	color: #ffffff;
	transition: color 0.25s ease, fill 0.25s ease;
}

.ctw-content {
	flex: 1 1 0%;
	min-width: 0;
}

.ctw-heading {
	margin: 0 0 14px 0;
	font-size: 20px;
	font-weight: 700;
	color: #1B1B1F;
	overflow-wrap: break-word;
	word-break: break-word;
	transition: color 0.25s ease;
}

.ctw-heading a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
}

.ctw-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ctw-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.6;
}

.ctw-list li:last-child {
	margin-bottom: 0;
}

.ctw-list li span,
.ctw-list li a {
	overflow-wrap: break-word;
	word-break: break-word;
}

.ctw-list li .ctw-bullet {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.5em;
}

.ctw-list li .ctw-bullet i,
.ctw-list li .ctw-bullet svg {
	display: block;
}

.ctw-list li a {
	text-decoration: none;
}

.ctw-list li a:hover {
	text-decoration: underline;
}

/* ---------- Responsive fallbacks ----------
   These are baseline defaults; every size/spacing value above is also
   editable per-breakpoint from Elementor's own Desktop/Tablet/Mobile
   controls, which will override these when set. */

/* Tablet */
@media (max-width: 1024px) {
	.ctw-rail {
		flex-basis: 70px;
		width: 70px;
		max-width: 70px;
	}
	.ctw-item-inner {
		padding: 24px 28px;
		gap: 18px;
	}
	.ctw-heading {
		font-size: 19px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.ctw-rail {
		flex-basis: 52px;
		width: 52px;
		max-width: 52px;
	}
	.ctw-icon {
		width: 34px;
		height: 34px;
	}
	.ctw-item-inner {
		padding: 18px 18px;
		gap: 14px;
	}
	.ctw-heading {
		font-size: 17px;
		margin-bottom: 10px;
	}
	.ctw-list li {
		font-size: 14px;
	}
}

/* Small phones */
@media (max-width: 400px) {
	.ctw-rail {
		flex-basis: 42px;
		width: 42px;
		max-width: 42px;
	}
	.ctw-icon {
		width: 30px;
		height: 30px;
	}
	.ctw-item-inner {
		padding: 14px 14px;
		gap: 10px;
	}
	.ctw-heading {
		font-size: 16px;
	}
	.ctw-list li {
		font-size: 13px;
	}
}
