/* MilTraders Step Card (Roadmap Timeline) Widget */

.mtew-step-card.mtew-timeline {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px 0;
}

.mtew-step-card .mtew-timeline-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	background-color: #3a3a3a;
	z-index: 1;
}

.mtew-step-card .mtew-steps {
	position: relative;
	z-index: 2;
}

.mtew-step-card .mtew-step {
	position: relative;
	display: flex;
	align-items: flex-start;
	width: 50%;
	min-height: 60px;
}

.mtew-step-card .mtew-step-left {
	flex-direction: row;
	justify-content: flex-end;
	text-align: right;
	margin-right: 50%;
	padding-right: 40px;
}

.mtew-step-card .mtew-step-right {
	flex-direction: row-reverse;
	justify-content: flex-end;
	text-align: left;
	margin-left: 50%;
	padding-left: 40px;
}

.mtew-step-card .mtew-step-icon {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f2c230;
	color: #141414;
	margin-bottom: 12px;
}

.mtew-step-card .mtew-step-left .mtew-step-icon {
	margin-left: auto;
}

.mtew-step-card .mtew-step-right .mtew-step-icon {
	margin-right: auto;
}

/* Connector: a dot on the center line + a short horizontal line to the card */
.mtew-step-card .mtew-connector {
	position: absolute;
	top: 46px;
	display: flex;
	align-items: center;
	width: 40px;
}

.mtew-step-card .mtew-step-left .mtew-connector {
	right: 0;
	flex-direction: row;
}

.mtew-step-card .mtew-step-right .mtew-connector {
	left: 0;
	flex-direction: row-reverse;
}

.mtew-step-card .mtew-connector-line {
	flex: 1;
	height: 1px;
	background-color: #3a3a3a;
}

.mtew-step-card .mtew-dot {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #f2c230;
	position: relative;
	z-index: 3;
}

.mtew-step-card .mtew-step-left .mtew-dot {
	order: 2;
	margin-left: 8px;
	transform: translateX(50%);
}

.mtew-step-card .mtew-step-right .mtew-dot {
	order: 2;
	margin-right: 8px;
	transform: translateX(-50%);
}

.mtew-step-card .mtew-step-content {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none;
	max-width: 320px;
}

.mtew-step-card .mtew-step-left .mtew-step-content {
	align-items: flex-end;
}

.mtew-step-card .mtew-step-right .mtew-step-content {
	align-items: flex-start;
}

.mtew-step-card .mtew-step-label {
	display: inline-block;
	background-color: #2a2a2a;
	color: #cfcfcf;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 3px;
}

.mtew-step-card .mtew-step-count {
	color: #ffffff;
	font-size: 15px;
	font-weight: 500;
}

.mtew-step-card .mtew-step-title {
	color: #f2c230;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.mtew-step-card .mtew-step-subtitle {
	color: #b9b9b9;
	font-size: 13px;
}

/* Responsive: stack everything in a single left-aligned column on small screens */
@media (max-width: 767px) {
	.mtew-step-card .mtew-timeline-line {
		left: 20px;
		transform: none;
	}

	.mtew-step-card .mtew-step,
	.mtew-step-card .mtew-step-left,
	.mtew-step-card .mtew-step-right {
		width: 100%;
		margin: 0;
		padding: 0 0 0 60px;
		flex-direction: row;
		justify-content: flex-start;
		text-align: left;
	}

	.mtew-step-card .mtew-step-left .mtew-step-icon,
	.mtew-step-card .mtew-step-right .mtew-step-icon {
		margin: 0 0 12px 0;
	}

	.mtew-step-card .mtew-step-left .mtew-step-content,
	.mtew-step-card .mtew-step-right .mtew-step-content {
		align-items: flex-start;
		max-width: 100%;
	}

	.mtew-step-card .mtew-connector,
	.mtew-step-card .mtew-step-left .mtew-connector,
	.mtew-step-card .mtew-step-right .mtew-connector {
		left: 15px;
		right: auto;
		top: 46px;
		width: 30px;
		flex-direction: row;
	}

	.mtew-step-card .mtew-step-left .mtew-dot,
	.mtew-step-card .mtew-step-right .mtew-dot {
		order: -1;
		margin: 0 8px 0 0;
		transform: none;
	}
}
