.mhps {
	--mhps-accent: #2b2bff;
	--mhps-ink: #11131a;
	--mhps-muted: #5b6170;
	--mhps-line: #e7e8ef;
	--mhps-cols: 1;
	font-family: inherit;
	margin: 0;
}

.mhps__intro {
	font-size: 1rem;
	color: var(--mhps-muted);
	margin: 0 0 1.4rem;
}

/* Theme-colors skin: adopt the active theme's palette (independent of layout).
   Falls back to the clean defaults if the theme doesn't define these vars. */
.mhps--skin-theme {
	--mhps-accent: var(--main-color, #2b2bff);
	--mhps-ink: var(--black-color, #11131a);
}
.mhps--skin-theme.mhps--grid .mhps-step,
.mhps--skin-theme.mhps--stairs .mhps-step {
	background: #f5f6fb;
}

/* ---- shared step pieces ---- */
.mhps-step__num {
	font-weight: 800;
	line-height: 1;
	color: var(--mhps-accent);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}
.mhps-step__icon {
	display: inline-flex;
	font-size: 1.35rem;
	color: var(--mhps-accent);
	margin-bottom: 0.55rem;
}
.mhps-step__title {
	margin: 0 0 0.4rem;
	font-size: 1.18rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--mhps-ink);
	text-transform: none;
}
.mhps-step__caption {
	margin: 0;
	color: var(--mhps-muted);
	font-size: 0.97rem;
	line-height: 1.6;
}
.mhps-step__media {
	margin-top: 0.9rem;
}
.mhps-step__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

/* ---- list layout (default, columns=1) ---- */
.mhps--list .mhps-step {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 1.4rem;
	align-items: start;
	padding: 1.7rem 0;
	border-top: 1px solid var(--mhps-line);
}
.mhps--list .mhps-step:first-child {
	border-top: 0;
	padding-top: 0;
}
.mhps--list .mhps-step__num {
	font-size: 2.6rem;
}

/* ---- grid layout (columns >= 2): cards ---- */
.mhps--grid {
	display: grid;
	grid-template-columns: repeat(var(--mhps-cols), minmax(0, 1fr));
	gap: 1.4rem;
}
.mhps--grid .mhps-step {
	background: #faf9ff;
	border: 1px solid var(--mhps-line);
	border-radius: 16px;
	padding: 1.6rem 1.5rem;
}
.mhps--grid .mhps-step__num {
	font-size: 2.1rem;
	display: block;
	margin-bottom: 0.6rem;
}

/* ---- staircase layout (ascending / descending) ---- */
.mhps--stairs {
	display: grid;
	grid-template-columns: repeat(var(--mhps-cols), minmax(0, 1fr));
	gap: 1.25rem;
	align-items: end;
}
.mhps--stairs .mhps-step {
	transform: translateY(var(--mhps-offset, 0));
	background: #faf9ff;
	border: 1px solid var(--mhps-line);
	border-radius: 16px;
	padding: 1.6rem 1.4rem 1.5rem;
	position: relative;
	transition: transform 0.25s ease;
}
.mhps--stairs .mhps-step::before {
	content: "";
	position: absolute;
	left: 1.4rem;
	right: 1.4rem;
	top: 0;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--mhps-accent);
	opacity: 0.9;
}
.mhps--stairs .mhps-step__num {
	font-size: 2.1rem;
	display: block;
	margin-bottom: 0.55rem;
}

/* ---- "theme" layout tweaks (reuses theme .offer-one styles) ---- */
.mhps-theme.offer-one {
	padding-top: 0;
	padding-bottom: 0;
}
.mhps-theme .offer-one_images_outer {
	min-height: 440px;
}
.mhps-theme .offer-one_image {
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}
.mhps-theme .offer-one_image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 24px;
}
.mhps-theme .offer-one_text {
	color: #666;
	font-size: 15px;
	line-height: 1.6;
	margin-top: 8px;
}
@media (max-width: 991px) {
	.mhps-theme .offer-one_images_outer {
		min-height: 280px;
		margin-bottom: 30px;
	}
}

/* ---- responsive ---- */
@media (max-width: 900px) {
	.mhps--stairs {
		grid-template-columns: 1fr;
		padding-top: 0 !important; /* override the inline staircase offset */
		gap: 1rem;
	}
	.mhps--stairs .mhps-step {
		transform: none !important;
	}
}

@media (max-width: 767px) {
	.mhps--list .mhps-step {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}
	.mhps--list .mhps-step__num {
		font-size: 2.1rem;
	}
	.mhps--grid {
		grid-template-columns: 1fr;
	}
}
