.timeline-container {
	background-color: #f5f5f5;
	font-family: 'Arial', sans-serif;
	overflow: hidden;
}

.timeline-wrapper {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
	padding: 0 20px;
	box-sizing: border-box;
}

.timeline-steps {
	display: flex;
	justify-content: space-between;
	position: relative;
	z-index: 2;
	gap: 20px;

	padding-top: 15px;
	padding-bottom: 20px;
}

@keyframes stepEntrance {
	0% {
		opacity: 0;
		transform: translateY(30px) scale(0.8);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.step-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 180px;
	position: relative;

	opacity: 0;
	animation: stepEntrance 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: calc(var(--i) * 0.15s);
}

.step-item::after {
	content: '';
	position: absolute;
	top: 20px;
	left: 50%;
	width: calc(100% + 20px);
	height: 2px;
	background-color: #b1d690;
	z-index: 1;
}

.step-item:last-child::after {
	display: none;
}

.step-number {
	width: 40px;
	height: 40px;
	background-color: #5ba375;
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	box-shadow: 0 0 0 5px #f5f5f5;
	z-index: 2;
	font-family: Lexend, sans-serif;
	transition: transform 0.3s ease;
}

.step-card {
	background-color: #ffffff;
	width: 100%;
	padding: 32px;
	border-radius: 12px;
	text-align: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	font-family: Lexend, sans-serif;
}

.step-card p {
	margin: 0;
	font-weight: bold;
	color: #333;
	font-size: 16px;
	line-height: 1.4;
}

/* Hover Effect */
.step-item:hover .step-number {
	transform: scale(1.1);
	background-color: #4a8a60;
}

.step-item:hover .step-card {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* --- RESPONSIVE & MOBILE HORIZONTAL SCROLL --- */
@media (min-width: 768px) {
	.timeline-wrapper {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding: 10px 5px;
	}

	.timeline-wrapper::-webkit-scrollbar {
		display: none;
	}

	.timeline-steps {
		width: max-content;
		padding-right: 20px;
		padding-left: 5px;
	}

	.step-item {
		flex: 0 0 auto;
		width: 220px;
		margin-right: 0;
	}

	.step-card {
		min-height: 90px;
		padding: 20px 15px;
	}
}
