/*=========================
	CARDS STEPS BLOCK
=========================*/

.block-cards-steps .container {
	display: flex;
	flex-direction: column;
	gap: 60px;
}

/* ── Header ── */

.block-cards-steps .steps-header {
	text-align: center;
	max-width: 680px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.block-cards-steps .steps-title {
	margin: 0;
}

.block-cards-steps .steps-copy p {
	margin: 0;
}

/* ── Steps row ── */

.block-cards-steps .steps-row {
	display: flex;
	margin-top: 80px;
}

/* ── Individual step ── */

.block-cards-steps .step-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0 20px;
	position: relative;
}

/* Connector line: left half (gap from circle edge) */
.block-cards-steps .step-card::before {
	content: '';
	position: absolute;
	top: 18.5px;
	left: 20px;
	right: calc(50% + 30px);
	height: 3px;
	background: var(--color-p);
	opacity: 1;
}

/* Connector line: right half (gap from circle edge) */
.block-cards-steps .step-card::after {
	content: '';
	position: absolute;
	top: 18.5px;
	left: calc(50% + 30px);
	right: 20px;
	height: 3px;
	background: var(--color-p);
	opacity: 1;
}


.block-cards-steps .step-number {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid currentColor;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	font-weight: 600;
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	margin-bottom: 24px;
}

.block-cards-steps .step-title {
	margin-bottom: 12px;
}

.block-cards-steps .step-copy,
.block-cards-steps .step-copy p {
	font-size: 18px;
	margin: 0;
}

/* ── Mobile ── */

@media only screen and (max-width: 768px) {
	.block-cards-steps .steps-row {
		flex-direction: column;
		align-items: center;
		gap: 0;
		margin-top: 40px;
	}

	.block-cards-steps .step-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 0;
		width: 100%;
	}

	/* Hide the horizontal left connector */
	.block-cards-steps .step-card::before {
		display: none;
	}

	/* Repurpose ::after as a vertical connector line below the number */
	.block-cards-steps .step-card::after {
		content: '';
		position: static;
		display: block;
		width: 2px;
		height: 40px;
		background: var(--color-p);
		margin: 16px auto;
		top: auto;
		left: auto;
		right: auto;
	}

	/* No line after the last step */
	.block-cards-steps .step-card:last-child::after {
		display: none;
	}

	.block-cards-steps .step-number {
		margin-bottom: 0;
		flex-shrink: 0;
	}

	.block-cards-steps .step-title {
		margin-top: 16px;
	}
}
