/* Roadmap Timeline: base styles. All values below are defaults and are
   overridden by Elementor controls through CSS variables. */

.rmt-wrap {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.rmt-canvas {
	--rmt-accent: #1f4e8c;
	--rmt-badge: 90px;
	--rmt-icon: 40px;
	--rmt-imgsize: 100%;
	--rmt-fit: cover;
	--rmt-line: 90px;
	--rmt-foot: 24px;
	--rmt-line-w: 2px;
	--rmt-dot: 9px;
	--rmt-pin: 16px;
	--rmt-gap: 14px;
	--rmt-labelw: 170px;
	--rmt-label-top: 0px;
	position: relative;
	width: 100%;
	height: 380px;
	box-sizing: border-box;
	background-color: #eef3f0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.rmt-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	pointer-events: none;
	border-radius: inherit;
}

/* One milestone. left/top (the point where the vertical line starts) come from Elementor controls. */
.rmt-item {
	position: absolute;
	left: 50%;
	top: 10%;
	width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 2;
}

.rmt-stem {
	position: relative;
	flex: none;
	width: var(--rmt-line-w);
	height: var(--rmt-line);
	background: var(--rmt-accent);
}

.rmt-stem::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: var(--rmt-dot);
	height: var(--rmt-dot);
	border-radius: 50%;
	background: var(--rmt-accent);
	transform: translate(-50%, -50%);
}

.rmt-badge {
	position: relative;
	z-index: 2;
	flex: none;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--rmt-badge);
	height: var(--rmt-badge);
	border-radius: 50%;
	overflow: hidden;
	background: var(--rmt-accent);
	border: 4px solid #fff;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	color: #fff;
	transition: transform 0.25s ease;
}

.rmt-badge i {
	font-size: var(--rmt-icon);
	line-height: 1;
	color: inherit;
}

.rmt-badge svg {
	width: var(--rmt-icon);
	height: var(--rmt-icon);
	fill: currentColor;
	color: inherit;
}

.rmt-badge img {
	display: block;
	width: var(--rmt-imgsize);
	height: var(--rmt-imgsize);
	max-width: none;
	object-fit: var(--rmt-fit);
	border-radius: 50%;
}

.rmt-item:hover .rmt-badge {
	transform: scale(1.06);
}

/* Little pin under the badge. */
.rmt-pin {
	position: relative;
	z-index: 1;
	flex: none;
	width: 0;
	height: 0;
	margin-top: -6px;
	border-left: calc(var(--rmt-pin) * 0.7) solid transparent;
	border-right: calc(var(--rmt-pin) * 0.7) solid transparent;
	border-top: var(--rmt-pin) solid var(--rmt-accent);
}

/* Line + dot that touches the road. */
.rmt-foot {
	position: relative;
	flex: none;
	width: var(--rmt-line-w);
	height: var(--rmt-foot);
	background: var(--rmt-accent);
}

.rmt-foot::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: var(--rmt-dot);
	height: var(--rmt-dot);
	border-radius: 50%;
	background: var(--rmt-accent);
	transform: translate(-50%, 50%);
}

.rmt-no-foot .rmt-foot {
	display: none;
}

.rmt-no-pin .rmt-pin {
	display: none;
}

/* Text label sits beside the vertical line. */
.rmt-label {
	position: absolute;
	top: calc(var(--rmt-dot) / -2 + var(--rmt-label-top));
	left: var(--rmt-gap);
	width: var(--rmt-labelw);
	text-align: left;
}

.rmt-side-left .rmt-label {
	left: auto;
	right: var(--rmt-gap);
	text-align: right;
}

.rmt-year {
	display: block;
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
	color: #1f3a78;
}

.rmt-title {
	margin: 4px 0 0;
	font-size: 15px;
	line-height: 1.3;
	color: #4a5b73;
}

/* Phones: either scroll sideways (keeps the exact design) or stack as a list. */
@media (max-width: 767px) {
	.rmt-m-stack .rmt-wrap,
	.rmt-m-stack.rmt-wrap {
		overflow: visible;
	}

	.rmt-m-stack .rmt-canvas {
		height: auto !important;
		min-width: 0 !important;
		display: flex;
		flex-direction: column;
		gap: 28px;
		padding: 28px 20px;
	}

	.rmt-m-stack .rmt-item {
		position: relative;
		left: auto !important;
		top: auto !important;
		width: auto;
		flex-direction: row;
		align-items: center;
		gap: 16px;
	}

	.rmt-m-stack .rmt-stem,
	.rmt-m-stack .rmt-pin,
	.rmt-m-stack .rmt-foot {
		display: none;
	}

	.rmt-m-stack .rmt-badge {
		order: -1;
	}

	.rmt-m-stack .rmt-label,
	.rmt-m-stack .rmt-side-left .rmt-label {
		position: static;
		width: auto;
		text-align: left;
	}
}
