.pse-steps-wrapper {
	width: 100%;
}

.pse-steps {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 30px;

	--pse-line-color: #7C3AED;
	--pse-line-height: 2px;
	--pse-line-style: solid;
	--pse-line-top: 57px;
}

/* Continuous connector line running through the vertical middle of the icon,
   spanning the full row behind the boxes. Because each .pse-step has an opaque
   background, the line visually passes straight through the middle of every box. */
.pse-steps.pse-has-line::before {
	content: '';
	position: absolute;
	top: var(--pse-line-top);
	left: 0;
	right: 0;
	border-top: var(--pse-line-height) var(--pse-line-style) var(--pse-line-color);
	z-index: 0;
}

.pse-step {
	position: relative;
	z-index: 1;
	flex: 1 1 0;
	min-width: 200px;
	background: #ffffff;
	border-radius: 10px;
	padding: 30px 25px;
	text-align: center;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pse-step:hover {
	transform: translateY(-4px);
}

.pse-icon-row {
	position: relative;
	display: inline-flex;
	margin-bottom: 20px;
}

.pse-icon-box {
	width: 55px;
	height: 55px;
	border-radius: 10px;
	background-color: #8E1F2F;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	margin: 0 auto;
}

.pse-icon-box i,
.pse-icon-box svg {
	color: #ffffff;
	fill: #ffffff;
	width: 1em;
	height: 1em;
}

.pse-number {
	position: absolute;
	top: -10px;
	right: -18px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background-color: #1A1A2E;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pse-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: #1A1A2E;
}

.pse-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #6B7280;
}

@media (max-width: 767px) {
	.pse-steps {
		flex-direction: column;
	}

	/* The full-row horizontal line doesn't make sense once cards stack,
	   so hide it and draw a short vertical connector between cards instead. */
	.pse-steps.pse-has-line::before {
		display: none;
	}

	.pse-steps.pse-has-line .pse-step:not(:last-child)::after {
		content: '';
		position: absolute;
		bottom: -16px;
		left: 50%;
		width: 0;
		height: 15px;
		border-left: var(--pse-line-height) var(--pse-line-style) var(--pse-line-color);
		transform: translateX(-50%);
		z-index: 2;
	}
}
