/* Milestone Roadmap Widget — mind-map style, single-side fan-out with glowing comet line */

.mrw-roadmap {
	width: 100%;
}

.mrw-roadmap-inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 60px;
	width: 100%;
}

.mrw-lines-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
	z-index: 1;
}

.mrw-line-track {
	fill: none;
	stroke-linecap: round;
	stroke: #e5e7eb;
	stroke-width: 2px;
}

.mrw-line-active {
	fill: none;
	stroke-linecap: round;
	stroke: #2dc874;
	stroke-width: 2px;
	opacity: 0;
}

/* ---------- Image column ---------- */
.mrw-image-col {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
}

.mrw-center-image {
	position: relative;
	width: 220px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.mrw-center-image img {
	max-width: 100%;
	height: auto;
	display: block;
}

.mrw-center-image-title {
	position: absolute;
	bottom: 14px;
	left: 0;
	right: 0;
	text-align: center;
	font-weight: 700;
	pointer-events: none;
}

/* ---------- Items column ---------- */
.mrw-items-col {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	min-width: 0;
}

.mrw-items {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mrw-item {
	position: relative;
	display: flex;
	align-items: center;
}

.mrw-dot {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c9bff0;
	margin-right: 4px;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.mrw-item.mrw-active .mrw-dot {
	box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.mrw-item-box {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f8f7fb;
	border: 1px solid #eee9fb;
	border-radius: 999px;
	padding: 12px 20px;
	box-sizing: border-box;
	width: 100%;
	transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.mrw-item-box-link {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.mrw-item-icon {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	min-width: 26px;
	border-radius: 50%;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.35s ease;
}

.mrw-item-icon svg,
.mrw-item-icon i {
	width: 13px;
	height: 13px;
	font-size: 13px;
	line-height: 1;
	color: #9b8fd1;
	fill: #9b8fd1;
	transition: color 0.35s ease, fill 0.35s ease;
}

.mrw-item-content {
	min-width: 0;
}

.mrw-item-title {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: #3a3a3a;
	transition: color 0.35s ease;
}

.mrw-item-desc {
	margin: 4px 0 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #7a7a7a;
	transition: color 0.35s ease;
}

/* ---------- Mobile responsive: stack image above items ---------- */
/* Kept side-by-side down to small phone widths — the curved fan-out
   design needs the image and items sitting next to each other to look
   right, so we only stack on genuinely narrow phone screens. */
@media (max-width: 500px) {
	.mrw-roadmap-inner {
		flex-direction: column;
		align-items: center;
		gap: 30px;
	}

	.mrw-items-col {
		width: 100%;
	}

	.mrw-items {
		gap: 28px;
	}

	.mrw-item {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.mrw-dot {
		margin-right: 0;
		margin-bottom: 8px;
	}

	.mrw-item-box {
		border-radius: 14px;
		justify-content: center;
		text-align: center;
	}

	.mrw-item-content {
		text-align: center;
	}
}

@media (max-width: 380px) {
	.mrw-center-image {
		width: 160px !important;
	}
}

/* Opt-in: force the side-by-side layout at every screen size, never stack. */
.mrw-roadmap.mrw-no-stack .mrw-roadmap-inner {
	flex-direction: row !important;
	align-items: center !important;
}

.mrw-roadmap.mrw-no-stack .mrw-image-col {
	flex: 0 0 auto !important;
}
