/* Grid Layout */
.ps-7628993c-wrapper {
	width: 100%;
}

.ps-7628993c-grid {
	display: grid;
	gap: 20px;
	/* default 4 columns, overridden by settings */
	grid-template-columns: repeat(4, 1fr);
	position: relative;
	/* Ensure we don't clip box-shadows but handle connectors */
	padding-bottom: 15px;
	padding-top: 15px;
}

/* Card item container */
.ps-7628993c-item {
	position: relative;
	display: flex;
}

/* Card styling */
.ps-7628993c-card {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 40px 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
	position: relative;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
	transition: all 0.3s ease;
	z-index: 2;
}

/* Step Badge */
.ps-7628993c-badge {
	position: absolute;
	top: 20px;
	left: 20px;
	background-color: #1a237e;
	color: #ffffff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	z-index: 3;
}

/* Icon Wrapper */
.ps-7628993c-icon {
	color: #1a237e;
	font-size: 50px;
	margin-bottom: 25px;
	margin-top: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ps-7628993c-icon svg {
	width: 50px;
	height: 50px;
	fill: #1a237e;
}

/* Text Elements */
.ps-7628993c-title {
	color: #1a237e;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 15px 0;
	line-height: 1.3;
	position: relative;
	padding-bottom: 15px;
}

/* Title Divider */
.ps-7628993c-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 30px;
	height: 2px;
	background-color: #4caf50; /* Default divider color */
}

.ps-7628993c-desc {
	color: #64748b;
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

/* Connector Line Container */
.ps-7628993c-connector {
	position: absolute;
	top: 50%;
	/* Position dynamically based on grid gap from PHP setup */
	right: -10px; 
	width: 20px; 
	transform: translateY(-50%); /* Base transform, adjusted by x position control */
	z-index: 3; /* Elevated z-index to ensure it sits above adjacent cards */
	display: flex;
	align-items: center;
	justify-content: center;
	height: 24px;
}

/* The actual line that connects cards */
.ps-7628993c-connector::before {
	content: '';
	position: absolute;
	/* Line spans the exact width of the gap */
	width: 100%;
	left: 0; 
	top: 50%;
	transform: translateY(-50%);
	height: 1px;
	background-color: #cbd5e1;
	z-index: -1; /* Placed behind the icon, relative to .ps-7628993c-connector */
}

.ps-7628993c-connector-icon {
	background-color: #4caf50;
	color: #ffffff;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	z-index: 2; /* Ensures it sits above the ::before pseudo-element line */
	transition: all 0.3s ease;
	position: relative;
	flex-shrink: 0; /* Prevent icon from squishing */
}

.ps-7628993c-connector-icon svg {
	width: 10px;
	height: 10px;
	fill: #ffffff;
	transition: all 0.3s ease;
	display: block;
}

/* Responsive Hide Connectors when stacked */
@media (max-width: 1024px) {
	.ps-7628993c-item:nth-child(even) .ps-7628993c-connector {
		display: none;
	}
}

@media (max-width: 767px) {
	.ps-7628993c-connector {
		display: none !important;
	}
}