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

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

	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;

	padding-bottom: 20px;
}

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

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

	padding-top: 2rem;

	width: max-content;
}

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

.step-item {
	/* flex: 1; HAPUS INI agar item tidak mengecil paksa */
	flex: 0 0 auto; /* Jangan shrink, jangan grow */

	display: flex;
	flex-direction: column;
	align-items: center;

	/* --- PERBAIKAN: Set lebar fix yang nyaman untuk mobile --- */
	width: 260px;
	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); /* Menghubungkan gap 20px */
	height: 2px;
	background-color: var(--accent-1);
	z-index: 1;
}

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

.step-number {
	width: 40px;
	height: 40px;
	background-color: var(--accent-2);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	z-index: 2;
	font-weight: 300;
	font-family: Lexend, sans-serif;
	transition: transform 0.3s ease;
}

.step-card {
	background-color: #ffffff;
	width: 100%;
	padding: 24px; /* Sedikit dikecilkan padding mobile */
	border-radius: 12px;
	text-align: center;
	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;
	box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Tambahan shadow halus */
}

.step-card p {
	margin: 0;
	font-weight: 400;
	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);
}

/* --- RESPONSIVE DESKTOP ADJUSTMENT --- */
@media (min-width: 768px) {
	.timeline-wrapper {
		padding-top: 3rem;
	}

	.step-item {
		width: 220px;
	}

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