/* ==========================================================================
   Versatility Lifecycle repeated Grid Stylesheet
   ========================================================================== */

.versatility-lifecycle-grid-wrapper {
	width: 100%;
	position: relative;
	box-sizing: border-box;
	padding: 40px 0;
}

.versatility-lifecycle-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	width: 100%;
	box-sizing: border-box;
}

.versatility-lifecycle-stage {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	position: relative;
	box-sizing: border-box;
}

/* Header with Number Circle and Connector */
.versatility-lifecycle-header {
	display: flex;
	align-items: center;
	width: 100%;
	position: relative;
	margin-bottom: 24px;
	box-sizing: border-box;
}

.versatility-lifecycle-number-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 2px solid #00ABF4;
	background-color: #ffffff;
	flex-shrink: 0;
	z-index: 2;
	transition: background-color 0.3s ease, border-color 0.3s ease;
	box-sizing: border-box;
}

.versatility-lifecycle-number {
	font-family: "Manrope", sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: #00ABF4;
	line-height: 1;
	transition: color 0.3s ease;
}

/* Dotted Line Connector */
.versatility-lifecycle-connector {
	position: absolute;
	left: 60px !important;
	width: calc(100% - 50px) !important;
	/* Spans across columns */
	height: 20px;
	top: 50%;
	/* Centered with 64px circle */
	transform: translateY(-50%);
	z-index: 1;
	pointer-events: none;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	clip-path: inset(0 0% 0 0);
}

.versatility-lifecycle-connector-line {
	width: 95%;
	height: 2px;
	border-top: 2px dotted #00ABF4;
	opacity: 0.7;
	position: relative;
}

/* Arrow indicator on the right side of the dotted line */
.versatility-lifecycle-connector-arrow {
	content: '';
	position: absolute;
	right: -5px;
	top: -5px;
	transform: rotate(45deg);
	width: 8px;
	height: 8px;
	border-top: 2px solid #00ABF433;
	border-right: 2px solid #00ABF433;
	z-index: 2;
}

/* Hide connectors at the end of each row to prevent overflowing connectors */
@media (min-width: 1025px) {
	.versatility-lifecycle-stage:nth-child(4n) .versatility-lifecycle-connector {
		display: none !important;
	}
}

@media (max-width: 1024px) and (min-width: 641px) {
	.versatility-lifecycle-stage:nth-child(2n) .versatility-lifecycle-connector {
		display: none !important;
	}
}

/* Pill Badge Title */
.versatility-lifecycle-badge-wrap {
	margin-bottom: 20px;
}

.versatility-lifecycle-badge {
	display: inline-block;
	font-family: "Manrope", sans-serif;
	font-size: 0.75rem;
	font-weight: 800;
	color: #00ABF4;
	background-color: rgba(0, 171, 244, 0.05);
	border: 1px solid rgba(0, 171, 244, 0.15);
	border-radius: 50px;
	padding: 8px 18px;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Description Text */
.versatility-lifecycle-description {
	font-family: "Manrope", sans-serif;
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.6;
	color: #475569;
	margin: 0;
}

/* Hover Micro-interactions */
.versatility-lifecycle-stage:hover .versatility-lifecycle-number-wrap {
	background-color: #00ABF4;
	border-color: #00ABF4;
}

.versatility-lifecycle-stage:hover .versatility-lifecycle-number {
	color: #ffffff;
}

.versatility-lifecycle-stage:hover .versatility-lifecycle-badge {
	background-color: #00ABF4;
	color: #ffffff;
	border-color: #00ABF4;
}

/* Responsive Grid columns */
@media (max-width: 1024px) {
	.versatility-lifecycle-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px;
	}

	/* Hide connectors on tablet wrap */
	.versatility-lifecycle-connector {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.versatility-lifecycle-grid {
		display: flex !important;
		flex-direction: column !important;
		gap: 45px !important;
		/* Increased slightly to give space for arrow */
	}

	.versatility-lifecycle-stage {
		display: flex !important;
		flex-direction: row !important;
		align-items: flex-start !important;
		width: 100% !important;
		position: relative !important;
	}

	.versatility-lifecycle-header {
		display: block !important;
		width: 54px !important;
		flex-shrink: 0 !important;
		margin-bottom: 0 !important;
		margin-right: 20px !important;
		position: static !important;
	}

	.versatility-lifecycle-number-wrap {
		width: 54px !important;
		height: 54px !important;
	}

	.versatility-lifecycle-content {
		flex-grow: 1 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		padding-top: 6px !important;
		/* Aligns pill badge top alignment with circle top */
	}

	/* Vertical Dotted Line Connector */
	.versatility-lifecycle-connector {
		display: flex !important;
		position: absolute !important;
		left: 17px !important;
		/* Centered with 54px circle (17px + 10px = 27px) */
		top: 54px !important;
		/* Starts right at bottom of the circle */
		width: 20px !important;
		/* Wider boundary box prevents horizontal clip-path clipping of arrow */
		height: calc(100% + 45px - 54px) !important;
		/* Spans the gap to next circle */
		transform: none !important;
		clip-path: inset(0 0% 0 0);
		/* Default layout value */
		justify-content: center !important;
	}

	.versatility-lifecycle-connector-line {
		width: 2px !important;
		height: 80% !important;
		border-top: none !important;
		border-left: 2px dotted #00ABF4 !important;
		opacity: 0.7 !important;
		position: relative !important;
	}

	/* Arrow head pointing DOWN at the bottom of the vertical line */
	.versatility-lifecycle-connector-arrow {
		right: auto !important;
		left: -1px !important;
		/* Centered horizontally inside the 20px box */
		top: auto !important;
		bottom: 0 !important;
		transform: translateX(-50%) rotate(135deg) !important;
		/* Rotates arrow to point down and centers it */
		border-top: 2px solid #00ABF4 !important;
		border-right: 2px solid #00ABF4 !important;
	}
}