/* ── Timeline Widget ── */

.tlw-timeline {
	position: relative;
	padding: 20px 0;
}

/* Center vertical line */
.tlw-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 3px;
	background-color: #1e3a5f;
	z-index: 0;
}

/* Single item row */
.tlw-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	width: 100%;
}

/* ── Left card layout (odd items) ── */
.tlw-item-left {
	justify-content: flex-start;
}
.tlw-item-left .tlw-card {
	width: calc(50% - 52px);
	margin-right: auto;
}
.tlw-item-left .tlw-badge {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 0;
}

/* ── Right card layout (even items) ── */
.tlw-item-right {
	justify-content: flex-end;
}
.tlw-item-right .tlw-card {
	width: calc(50% - 52px);
	margin-left: auto;
}
.tlw-item-right .tlw-badge {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 0;
}

/* Badge circle */
.tlw-badge {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #1e56a0;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.tlw-badge-icon {
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tlw-badge-icon i,
.tlw-badge-icon svg {
	color: inherit;
	fill: currentColor;
	width: 1em;
	height: 1em;
}
.tlw-badge-year {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

/* Card */
.tlw-card {
	background-color: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 24px 28px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.tlw-card-title {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
	color: #111827;
	line-height: 1.4;
}
.tlw-card-desc {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #4b5563;
}

/* Item spacing */
.tlw-item + .tlw-item {
	margin-top: 60px;
}

/* ── Responsive: timeline left, content right ── */
@media (max-width: 768px) {
	.tlw-line {
		left: 24px;
		transform: none;
	}

	.tlw-item-left,
	.tlw-item-right {
		flex-direction: row;
		justify-content: flex-start;
		align-items: flex-start;
	}

	.tlw-item-left .tlw-badge,
	.tlw-item-right .tlw-badge {
		position: relative;
		left: auto;
		transform: none;
		flex-shrink: 0;
		order: -1;
	}

	.tlw-item-left .tlw-card,
	.tlw-item-right .tlw-card {
		width: auto;
		flex: 1;
		margin: 0 0 0 16px;
		order: 1;
	}

	.tlw-badge {
		width: 48px !important;
		height: 48px !important;
	}
	.tlw-badge-icon {
		font-size: 12px;
	}
	.tlw-badge-year {
		font-size: 11px;
	}

	.tlw-item + .tlw-item {
		margin-top: 30px;
	}
}
