/* input(217,1): run-time error CSS1019: Unexpected token, found '}' */
/* ============================================================
   "Igy mukodik az Akademia" - 5 lepeses animalt szekcio
   Latogatoi fooldal (Views/Home/Index.cshtml). Onallo stiluslap,
   sajat .hiw prefix-szel (NEM utkozik a halott .how-it-works__* -gal
   es a hero-animations.js scroll-reveal szelektoraival).
   ============================================================ */

.hiw {
	position: relative;
	margin: 30px 0 40px;
	padding: 46px 18px 40px;
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 18px 50px rgba(193, 164, 160, 0.16);
}

.hiw__head {
	text-align: center;
	margin-bottom: 38px;
}

.hiw__title {
	font-family: 'Syncopate', sans-serif;
	font-weight: 700;
	font-size: clamp(20px, 3.4vw, 30px);
	text-transform: uppercase;
	color: #513E3E;
	margin: 0 0 8px;
	letter-spacing: .04em;
	line-height: 1.18;
}

.hiw__subtitle {
	font-size: 15px;
	color: #8A7A7A;
	margin: 0 auto;
	max-width: 420px;
	line-height: 1.5;
}

.hiw__row {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
}

.hiw__col {
	flex: 1;
	max-width: 180px;
	text-align: center;
}

.hiw__tile {
	position: relative;
	width: 84px;
	height: 84px;
	margin: 0 auto 16px;
	border-radius: 22px;
	background: linear-gradient(135deg, #F5F0EE, #EDE7E5);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #C1A4A0;
	box-shadow: 0 6px 18px rgba(193, 164, 160, 0.12);
	animation: hiwGlow 14s var(--d, 0s) infinite;
}

.hiw__tile svg {
	width: 32px;
	height: 32px;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
}

.hiw__num {
	position: absolute;
	top: -9px;
	right: -9px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #C1A4A0;
	color: #fff;
	font-family: 'Quicksand', sans-serif;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(193, 164, 160, 0.5);
	animation: hiwNum 14s var(--d, 0s) infinite;
}

.hiw__step-title {
	font-family: 'Syncopate', sans-serif;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	color: #513E3E;
	margin: 0 0 8px;
	letter-spacing: .02em;
}

.hiw__step-text {
	font-size: 13.5px;
	line-height: 1.55;
	color: #7A6B6B;
	max-width: 170px;
	margin: 0 auto;
}

/* connector between cards */
.hiw__conn {
	flex: none;
	width: 46px;
	padding-top: 40px;
}

.hiw__conn-track {
	width: 100%;
	height: 3px;
	border-radius: 3px;
	background: rgba(193, 164, 160, 0.2);
	overflow: hidden;
}

.hiw__conn-fill {
	height: 100%;
	width: 100%;
	background: linear-gradient(90deg, #DAACA4, #C1A4A0);
	transform-origin: left;
	animation: hiwLine 14s var(--d, 0s) infinite;
}

.hiw__cta-wrap {
	text-align: center;
	margin-top: 40px;
}

.hiw__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 38px;
	border: none;
	border-radius: 100px;
	font-family: 'Quicksand', sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	background: linear-gradient(135deg, #C1A4A0, #A08580);
	box-shadow: 0 8px 30px rgba(193, 164, 160, 0.4);
	transition: transform .2s ease;
}

.hiw__cta:hover {
	transform: translateY(-2px);
}

/* ---------- keyframes (a prototipusbol) ---------- */
@keyframes hiwGlow {
	0% { transform: translateY(0) scale(1); box-shadow: 0 6px 18px rgba(193, 164, 160, 0.12); }
	5%, 15% { transform: translateY(-7px) scale(1.06); box-shadow: 0 16px 38px rgba(193, 164, 160, 0.45); }
	20%, 100% { transform: translateY(0) scale(1); box-shadow: 0 6px 18px rgba(193, 164, 160, 0.12); }
}

@keyframes hiwNum {
	0%, 4% { transform: scale(1); background: #C1A4A0; }
	6%, 16% { transform: scale(1.18); background: #A8453F; }
	20%, 100% { transform: scale(1); background: #C1A4A0; }
}

@keyframes hiwLine {
	0%, 14% { transform: scaleX(0); }
	20%, 100% { transform: scaleX(1); }
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
	.hiw {
		padding: 34px 14px 30px;
	}
	.hiw__row {
		flex-direction: column;
		align-items: center;
		gap: 4px;
	}
	.hiw__col {
		flex: none;
		width: 100%;
		max-width: 280px;
	}
	.hiw__conn {
		width: auto;
		padding-top: 0;
		display: flex;
		justify-content: center;
		padding: 2px 0;
	}
	.hiw__conn-track {
		width: 3px;
		height: 26px;
	}
	.hiw__conn-fill {
		transform-origin: top;
	}
	@keyframes hiwLine {
		0%, 14% { transform: scaleY(0); }
		20%, 100% { transform: scaleY(1); }
	}
}

@media (max-width: 480px) {
	.hiw__tile {
		width: 70px;
		height: 70px;
	}
	.hiw__tile svg {
		width: 28px;
		height: 28px;
	}
	.hiw__num {
		width: 24px;
		height: 24px;
		font-size: 12px;
	}
}

/* ---------- a11y: mozgascsokkentes ---------- */
@media (prefers-reduced-motion: reduce) {
	.hiw__tile,
	.hiw__num,
	.hiw__conn-fill {
		animation: none;
	}
	.hiw__conn-fill {
		transform: scaleX(1);
	}
	.hiw__cta {
		transition: none;
	}
}
