/**
 * Süreç Zaman Çizelgesi (Timeline) — Elementor widget style.
 * Numaralı, ikonlu adımlar; bağlantı çizgisi kartları takip eder ve
 * satır kaydığında her satırın sonunda kesilir (JS `is-rowend` verir).
 */

.sm-timeline {
	--sm-tl-cols: 5;
	--sm-tl-colgap: 28px;
	--sm-tl-rowgap: 48px;
	--sm-tl-badge: 44px;
	--sm-tl-icon: 92px;
	--sm-tl-navy: #0b2d5c;
	--sm-tl-line: #b9c9e0;
	position: relative;
	width: 100%;
}

.sm-timeline,
.sm-timeline * {
	box-sizing: border-box;
}

/* ---------------- Üst başlık ---------------- */
.sm-timeline__header {
	text-align: center;
	margin: 0 auto clamp(28px, 4vw, 46px);
	max-width: 760px;
}

.sm-timeline__heading {
	margin: 0;
	color: var(--sm-tl-navy);
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 700;
	line-height: 1.25;
}

.sm-timeline__rule {
	display: inline-block;
	width: 54px;
	height: 3px;
	border-radius: 3px;
	margin: 12px 0 0;
	background-color: var(--sm-tl-navy);
	vertical-align: middle;
}

.sm-timeline__subheading {
	margin: 14px 0 0;
	color: #5b6b82;
	font-size: 15px;
	line-height: 1.6;
}

/* ---------------- Izgara ---------------- */
.sm-timeline__track {
	display: grid;
	grid-template-columns: repeat(var(--sm-tl-cols), minmax(0, 1fr));
	column-gap: var(--sm-tl-colgap);
	row-gap: var(--sm-tl-rowgap);
	align-items: start;
}

/* ---------------- Adım ---------------- */
.sm-timeline__step {
	--sm-tl-anchor: calc(var(--sm-tl-badge) / 2);
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Bağlantı çizgisi: bu adımın rozet merkezinden bir sonraki adımın rozet
   merkezine uzanır (eşit genişlikte sütunlar → 100% + yatay boşluk). */
.sm-timeline__step::after {
	content: "";
	position: absolute;
	top: var(--sm-tl-anchor);
	left: 50%;
	width: calc(100% + var(--sm-tl-colgap));
	border-top: 2px dashed var(--sm-tl-line);
	transform: translateY(-50%);
	z-index: 0;
	pointer-events: none;
}

/* Her satırın son adımı (JS) ve genelde son adım: çizgi çizilmez. */
.sm-timeline__step.is-rowend::after,
.sm-timeline__step:last-child::after {
	display: none;
}

/* ---------------- Numara rozeti ---------------- */
.sm-timeline__head {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--sm-tl-badge);
	margin-bottom: 14px;
}

.sm-timeline__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--sm-tl-badge);
	height: var(--sm-tl-badge);
	border-radius: 50%;
	background-color: var(--sm-tl-navy);
	color: #fff;
	font-weight: 700;
	font-size: calc(var(--sm-tl-badge) * 0.4);
	line-height: 1;
	box-shadow: 0 6px 16px rgba(11, 45, 92, 0.22);
}

.sm-timeline--no-num .sm-timeline__head {
	display: none;
}

.sm-timeline--no-num .sm-timeline__step {
	--sm-tl-anchor: calc(var(--sm-tl-icon) / 2);
}

/* ---------------- İkon dairesi ---------------- */
.sm-timeline__icon-wrap {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--sm-tl-icon);
	height: var(--sm-tl-icon);
	border-radius: 50%;
	background-color: #eef4fb;
	margin-bottom: 16px;
	transition: background-color 0.28s ease, transform 0.28s ease;
}

.sm-timeline__step:hover .sm-timeline__icon-wrap {
	transform: translateY(-4px);
}

.sm-timeline__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	line-height: 1;
	color: var(--sm-tl-navy);
	transition: color 0.28s ease;
}

.sm-timeline__icon svg {
	width: 34px;
	height: 34px;
	fill: currentColor;
}

/* ---------------- Metinler ---------------- */
.sm-timeline__title {
	margin: 0 0 6px;
	color: var(--sm-tl-navy);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.sm-timeline__desc {
	margin: 0;
	max-width: 23ch;
	color: #5b6b82;
	font-size: 13.5px;
	line-height: 1.55;
}

/* ---------------- Görünürken canlandırma ---------------- */
.sm-timeline--animate.is-armed .sm-timeline__step {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	transition-delay: var(--sm-tl-delay, 0ms);
}

.sm-timeline--animate.is-armed .sm-timeline__step.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.sm-timeline--animate.is-armed .sm-timeline__step {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.sm-timeline__icon-wrap {
		transition: none;
	}
}

/* ---------------- Yedek duyarlılık (kontrol değiştirilmezse) ---------------- */
@media (max-width: 1024px) {
	.sm-timeline__track {
		--sm-tl-cols: 3;
	}
}

@media (max-width: 600px) {
	.sm-timeline__track {
		--sm-tl-cols: 1;
	}

	/* Tek sütunda dikey akış: yatay çizgiler kapanır. */
	.sm-timeline__step::after {
		display: none;
	}
}
