/**
 * ExpertMatrimony.com — How It Works
 * Shortcode: [em_how_it_works]
 */

.em-hiw {
	--em-hiw-brand: #ca1c1c;
	--em-hiw-gold: #c9a227;
	--em-hiw-cream: #fdf4ea;
	--em-hiw-text: #222222;
	--em-hiw-muted: #555555;
	--em-hiw-white: #ffffff;
	--em-hiw-shadow: 0 8px 24px rgba(60, 30, 20, 0.08);
	--em-hiw-max: 1140px;
	--em-hiw-sans: "Poppins", system-ui, -apple-system, sans-serif;

	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--em-hiw-cream);
	font-family: var(--em-hiw-sans);
	color: var(--em-hiw-text);
	padding: 64px 40px 72px;
	box-sizing: border-box;
}

.em-hiw *,
.em-hiw *::before,
.em-hiw *::after {
	box-sizing: border-box;
}

.em-hiw__decor {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 40% 30% at 0% 0%, rgba(201, 162, 39, 0.12), transparent 70%),
		radial-gradient(ellipse 40% 30% at 100% 0%, rgba(201, 162, 39, 0.12), transparent 70%);
	opacity: 0.9;
	z-index: 0;
}

.em-hiw__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--em-hiw-max);
	margin: 0 auto;
}

/* Header — match Mutual Interest Advantage title styles */
.em-hiw__header {
	text-align: center;
	margin-bottom: 36px;
}

.em-hiw__ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 0 14px;
	color: var(--em-hiw-gold);
}

.em-hiw__ornament-line {
	display: block;
	width: 72px;
	height: 1.5px;
	background: var(--em-hiw-gold);
}

.em-hiw__ornament-heart {
	width: 16px;
	height: 16px;
	color: var(--em-hiw-brand);
	flex-shrink: 0;
}

.em-hiw__title {
	margin: 0 0 14px;
	font-family: var(--em-hiw-sans);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--em-hiw-brand);
	letter-spacing: -0.02em;
}

.em-hiw__subtitle {
	margin: 10px auto 0;
	max-width: 640px;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--em-hiw-text);
}

.em-hiw__subtitle strong,
.em-hiw__subtitle b {
	color: var(--em-hiw-brand);
	font-weight: 700;
}

/* Steps */
.em-hiw__steps {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	padding-top: 28px;
	margin-bottom: 48px;
}

.em-hiw__steps-line {
	position: absolute;
	top: 14px;
	left: 10%;
	right: 10%;
	height: 2px;
	background: var(--em-hiw-gold);
	opacity: 0.85;
	z-index: 0;
}

.em-hiw__card {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--em-hiw-white);
	border-radius: 14px;
	box-shadow: var(--em-hiw-shadow);
	padding: 36px 12px 22px;
	min-width: 0;
	z-index: 1;
}

.em-hiw__num {
	position: absolute;
	top: -28px;
	left: 50%;
	transform: translateX(-50%);
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--em-hiw-brand);
	color: var(--em-hiw-white);
	font-size: 13px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	box-shadow: 0 0 0 4px var(--em-hiw-cream);
	z-index: 2;
}

.em-hiw__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border: 2px solid var(--em-hiw-gold);
	border-radius: 50%;
	color: var(--em-hiw-brand);
	margin-bottom: 14px;
}

.em-hiw__icon svg {
	width: 26px;
	height: 26px;
}

.em-hiw__card-title {
	margin: 0 0 10px;
	font-family: var(--em-hiw-sans);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--em-hiw-brand);
}

.em-hiw__card-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-bottom: 10px;
	width: 100%;
}

.em-hiw__card-divider span {
	display: block;
	width: 28px;
	height: 1.5px;
	background: var(--em-hiw-gold);
}

.em-hiw__card-divider i {
	display: block;
	width: 6px;
	height: 6px;
	background: var(--em-hiw-gold);
	transform: rotate(45deg);
	font-style: normal;
}

.em-hiw__card-desc {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--em-hiw-muted);
}

/* Why Choose banner */
.em-hiw__why {
	--em-hiw-why-bg: var(--em-hiw-brand);
	background: var(--em-hiw-why-bg);
	border-radius: 18px;
	padding: 36px 28px 32px;
	color: var(--em-hiw-white);
	box-shadow: 0 12px 32px rgba(160, 20, 20, 0.25);
}

.em-hiw__why-header {
	text-align: center;
	margin-bottom: 28px;
}

.em-hiw__why-ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 12px;
	color: var(--em-hiw-gold);
}

.em-hiw__why-ornament-line {
	display: block;
	width: 56px;
	height: 1.5px;
	background: var(--em-hiw-gold);
}

.em-hiw__why-ornament svg {
	width: 16px;
	height: 16px;
}

.em-hiw__why-title {
	margin: 0;
	font-family: var(--em-hiw-sans);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--em-hiw-white);
	letter-spacing: -0.01em;
}

.em-hiw__why-grid {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: space-between;
	gap: 0;
}

.em-hiw__why-item {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0 16px;
	min-width: 0;
	position: relative;
}

.em-hiw__why-item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 8%;
	right: 0;
	bottom: 8%;
	width: 1px;
	background: rgba(201, 162, 39, 0.55);
}

.em-hiw__why-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: var(--em-hiw-gold);
	margin-bottom: 12px;
}

.em-hiw__why-icon svg {
	width: 32px;
	height: 32px;
}

.em-hiw__why-item-title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--em-hiw-white);
}

.em-hiw__why-item-desc {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 400;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.em-hiw {
		padding: 52px 24px 60px;
	}

	.em-hiw__title {
		font-size: 32px;
	}

	.em-hiw__why-title {
		font-size: 24px;
	}

	.em-hiw__steps {
		flex-wrap: wrap;
		justify-content: center;
		gap: 28px 16px;
		padding-top: 20px;
	}

	.em-hiw__steps-line {
		display: none;
	}

	.em-hiw__card {
		flex: 0 0 calc(33.333% - 12px);
		max-width: calc(33.333% - 12px);
		padding-top: 40px;
	}

	.em-hiw__num {
		top: -14px;
		box-shadow: 0 0 0 3px var(--em-hiw-cream);
	}

	.em-hiw__why-grid {
		flex-wrap: wrap;
		gap: 24px 0;
	}

	.em-hiw__why-item {
		flex: 0 0 33.333%;
		max-width: 33.333%;
		padding: 8px 14px;
	}

	.em-hiw__why-item:nth-child(3)::after {
		display: none;
	}

	.em-hiw__why-item:nth-child(n + 4) {
		flex: 0 0 50%;
		max-width: 50%;
	}

	.em-hiw__why-item:nth-child(5)::after {
		display: none;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.em-hiw {
		padding: 44px 16px 52px;
	}

	.em-hiw__header {
		margin-bottom: 28px;
	}

	.em-hiw__title {
		font-size: 26px;
	}

	.em-hiw__subtitle {
		font-size: 15px;
	}

	.em-hiw__ornament-line {
		width: 40px;
	}

	.em-hiw__steps {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
		margin-bottom: 36px;
		padding-top: 8px;
	}

	.em-hiw__card {
		flex: 1 1 auto;
		max-width: 100%;
		width: 100%;
		padding: 40px 20px 24px;
	}

	.em-hiw__num {
		top: -15px;
	}

	.em-hiw__card-title {
		font-size: 17px;
	}

	.em-hiw__card-desc {
		font-size: 14px;
	}

	.em-hiw__why {
		padding: 28px 18px 24px;
		border-radius: 14px;
	}

	.em-hiw__why-title {
		font-size: 20px;
	}

	.em-hiw__why-grid {
		flex-direction: column;
		gap: 0;
	}

	.em-hiw__why-item {
		flex: 1 1 auto;
		max-width: 100%;
		width: 100%;
		padding: 22px 8px;
	}

	.em-hiw__why-item:not(:last-child)::after {
		display: none;
	}

	.em-hiw__why-item:not(:last-child) {
		border-bottom: 1px solid rgba(201, 162, 39, 0.4);
	}

	.em-hiw__why-item:nth-child(n + 4) {
		flex: 1 1 auto;
		max-width: 100%;
	}

	.em-hiw__why-item-title {
		font-size: 16px;
	}

	.em-hiw__why-item-desc {
		font-size: 13.5px;
	}
}

@media (max-width: 420px) {
	.em-hiw__title {
		font-size: 24px;
	}

	.em-hiw__why-title {
		font-size: 18px;
	}
}
