/**
 * Step lists for articles — three variants.
 * `.haam-steps-box` · `.haam-neo-steps` · `.haam-timeline-steps`
 */

/* ——— Bordered list (ai-stack-item rows) ——— */
.haam-steps-box {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	max-width: 100%;
	margin: 1.75em 0;
	padding: 24px;
	background-color: transparent;
	border: 1px solid #111111;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
	box-sizing: border-box;
	direction: rtl;
}

.haam-steps-box .ai-stack-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0 !important;
	padding: 0 0 16px !important;
	border: 0 !important;
	border-bottom: 1px dashed #cccccc !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #333333;
	font-size: 0.95rem;
	line-height: 1.6;
	transition: transform 0.3s ease;
}

.haam-steps-box .ai-stack-item:last-child {
	border-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.haam-steps-box .ai-stack-item:hover {
	transform: translateX(-4px);
}

.haam-steps-box .ai-stack-item strong {
	background-color: #ebd11a !important;
	color: #111111 !important;
	min-width: 65px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 700 !important;
	flex-shrink: 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ——— Neo (hard yellow shadow cards) ——— */
.haam-neo-steps {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 100%;
	margin: 1.75em 0;
	direction: rtl;
}

.haam-neo-steps .ai-stack-item {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 !important;
	background-color: #ffffff;
	border: 2px solid #111111 !important;
	border-radius: 8px;
	padding: 16px 20px;
	box-shadow: 6px 6px 0 #ebd11a;
	transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
	cursor: default;
}

.haam-neo-steps .ai-stack-item:hover {
	transform: translate(4px, 4px);
	box-shadow: 2px 2px 0 #ebd11a;
}

.haam-neo-steps .ai-stack-item strong {
	background-color: #111111 !important;
	color: #ebd11a !important;
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 800 !important;
	font-size: 0.95rem;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.haam-neo-steps .ai-stack-item > :not(strong) {
	color: #111111;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.6;
}

/* ——— Timeline ——— */
.haam-timeline-steps {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	margin: 1.75em 0;
	direction: rtl;
}

.haam-timeline-steps .timeline-step {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	position: relative;
	padding-bottom: 32px;
}

.haam-timeline-steps .timeline-step::before {
	content: "";
	position: absolute;
	inset-inline-end: 19px;
	top: 40px;
	bottom: 0;
	width: 2px;
	background-color: #e0e0e0;
	transition: background-color 0.3s ease;
}

.haam-timeline-steps .timeline-step:last-child {
	padding-bottom: 0;
}

.haam-timeline-steps .timeline-step:last-child::before {
	display: none;
}

.haam-timeline-steps .timeline-step:hover::before {
	background-color: #ebd11a;
}

.haam-timeline-steps .step-indicator {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #ebd11a;
	color: #111111;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1.1rem;
	flex-shrink: 0;
	z-index: 2;
	border: 3px solid #ffffff;
	box-shadow: 0 0 0 1px #111111;
	transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease,
		transform 0.3s ease;
}

.haam-timeline-steps .step-content {
	flex: 1;
	min-width: 0;
	padding-top: 0;
}

.haam-timeline-steps .step-content strong {
	display: flex;
	align-items: center;
	min-height: 40px;
	color: #111111;
	font-size: 1.15rem;
	line-height: 1.35;
	margin-bottom: 8px;
	font-weight: 800;
	transition: color 0.3s ease;
}

.haam-timeline-steps .step-content span {
	color: #555555;
	font-size: 0.95rem;
	line-height: 1.7;
	display: block;
}

.haam-timeline-steps .timeline-step:hover .step-indicator {
	background-color: #111111;
	color: #ebd11a;
	box-shadow: 0 0 0 1px #ebd11a;
	transform: scale(1.05);
}

.haam-timeline-steps .timeline-step:hover .step-content strong {
	color: #d1b815;
}

@media (max-width: 480px) {
	.haam-neo-steps .ai-stack-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.haam-neo-steps .ai-stack-item strong {
		margin-inline-start: 0;
	}

	.haam-timeline-steps .timeline-step {
		gap: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.haam-steps-box .ai-stack-item:hover,
	.haam-neo-steps .ai-stack-item:hover {
		transform: none;
	}

	.haam-timeline-steps .timeline-step:hover .step-indicator {
		transform: none;
	}
}
