/* MGH Steps widget – title, subtitle, repeatable steps with circular images, optional CTA. */
/* Title: Desktop H3 / Mobile H3. Subtitle: Desktop Paragraph / Mobile Paragraph. */
/* Step title: Desktop H6 / Mobile H6. Step text: Desktop Paragraph Small / Mobile Paragraph Small 2. */
/* Image: 140×140 desktop, 100×100 mobile (circle). Background: rgba(185, 200, 185, 0.20). */
/* Desktop: horizontal row with chevrons between steps. Mobile: 2-column rows with chevrons within each pair. */

.mgh-steps {
	width: 100%;
	background: rgba(185, 200, 185, 0.20);
}

.mgh-steps__inner {
	max-width: 884px;
	margin-left: auto;
	margin-right: auto;
	padding: 60px 20px;
	text-align: center;
}

.mgh-steps__title {
	margin: 0 0 20px 0;
	line-height: 1.2;
}

.mgh-steps__subtitle {
	margin: 0 0 40px 0;
	line-height: 1.4;
}

.mgh-steps__track {
	display: flex;
	flex-direction: column;
	gap: 40px;
	margin: 0 0 40px 0;
}

.mgh-steps__row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
}

.mgh-steps__row--single {
	justify-content: center;
}

.mgh-steps__item-wrap {
	flex: 1 1 0;
	min-width: 0;
	max-width: calc(50% - 12px);
}

.mgh-steps__row--single .mgh-steps__item-wrap {
	flex: 0 1 auto;
	max-width: calc(50% - 12px);
}

.mgh-steps__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.mgh-steps__step-title {
	margin: 0 0 16px 0;
	line-height: 1.2;
}

.mgh-steps__image-wrap {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	margin: 0 0 16px 0;
}

.mgh-steps__image-wrap--placeholder {
	background: rgba(44, 58, 96, 0.08);
}

.mgh-steps__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

div.elementor-widget.elementor-widget-mgh_steps .mgh-steps__image-wrap img.mgh-steps__image {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
}

.mgh-steps__step-description {
	margin: 0;
	line-height: 1.4;
	max-width: 280px;
}

.mgh-steps__chevron-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	margin-top: calc(1.2em + 16px);
	height: 100px;
	color: rgba(44, 58, 96, 0.35);
}

.mgh-steps__chevron {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.mgh-steps__chevron svg {
	display: block;
	width: 100%;
	height: 100%;
}

.mgh-steps__chevron-slot--desktop {
	display: none;
}

.mgh-steps__chevron-slot--mobile {
	display: flex;
}

.mgh-steps__button-wrap {
	display: flex;
	justify-content: center;
}

/* Desktop: single horizontal row via display:contents on row wrappers */
@media (min-width: 1280px) {
	.mgh-steps__inner {
		padding: 100px 50px;
	}

	.mgh-steps__track {
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: center;
		align-items: flex-start;
		gap: 0;
	}

	.mgh-steps__row {
		display: contents;
	}

	.mgh-steps__item-wrap {
		flex: 1 1 0;
		max-width: none;
		min-width: 0;
	}

	.mgh-steps__row--single .mgh-steps__item-wrap {
		flex: 1 1 0;
		max-width: none;
	}

	.mgh-steps__image-wrap {
		width: 140px;
		height: 140px;
	}

	.mgh-steps__chevron-slot {
		width: 32px;
		height: 140px;
		margin-top: calc(1.2em + 16px);
	}

	.mgh-steps__chevron-slot--desktop {
		display: flex;
	}

	.mgh-steps__chevron-slot--mobile {
		display: none;
	}

	.mgh-steps__step-description {
		max-width: 220px;
	}
}
