/**
 * ExpertMatrimony.com — Mutual Interest Advantage
 * Shortcode: [em_mutual_interest]
 *
 * Layout: Header → Illustration → How it works (3 cards)
 * Responsive: Desktop / Laptop / Tablet / Mobile
 */

.em-mia {
	--em-mia-brand: #ca1c1c;
	--em-mia-gold: #c9a227;
	--em-mia-cream: #fdf4ea;
	--em-mia-text: #222222;
	--em-mia-muted: #555555;
	--em-mia-white: #ffffff;
	--em-mia-frame-bg: #fffdf9;
	--em-mia-frame-border: #f3d9b8;
	--em-mia-shadow: 0 8px 24px rgba(60, 30, 20, 0.08);
	--em-mia-frame-shadow: 0 12px 35px rgba(184, 135, 73, 0.18), 0 2px 8px rgba(0, 0, 0, 0.05);
	--em-mia-max: 1140px;
	--em-mia-sans: "Poppins", system-ui, -apple-system, sans-serif;

	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--em-mia-cream);
	font-family: var(--em-mia-sans);
	color: var(--em-mia-text);
	padding: 72px 40px 80px;
	box-sizing: border-box;
}

.em-mia *,
.em-mia *::before,
.em-mia *::after {
	box-sizing: border-box;
}

.em-mia__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--em-mia-max);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

/* ---------- Header ---------- */
.em-mia__header {
	text-align: center;
	margin-bottom: 10px;
}

.em-mia__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--em-mia-brand);
	color: var(--em-mia-white);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 9px 18px;
	border-radius: 6px;
	margin-bottom: 20px;
	line-height: 1;
}

.em-mia__badge-icon {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.em-mia__title {
	margin: 0 0 16px;
	font-family: var(--em-mia-sans);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--em-mia-brand);
	letter-spacing: -0.02em;
}

.em-mia__ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
	color: var(--em-mia-gold);
}

.em-mia__ornament-line {
	display: block;
	width: 80px;
	height: 1.5px;
	background: var(--em-mia-gold);
	opacity: 0.9;
}

.em-mia__ornament-diamond {
	width: 7px;
	height: 7px;
	background: var(--em-mia-gold);
	transform: rotate(45deg);
	flex-shrink: 0;
}

.em-mia__ornament-heart {
	width: 18px;
	height: 18px;
	color: var(--em-mia-brand);
	flex-shrink: 0;
	filter: drop-shadow(0 1px 2px rgba(202, 28, 28, 0.35));
}

.em-mia__subtitle {
	margin: 0 auto;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.55;
}

.em-mia__subtitle-line {
	display: block;
	color: var(--em-mia-text);
}

.em-mia__subtitle-line--accent {
	color: var(--em-mia-brand);
	font-weight: 700;
}

/* ---------- Illustration (full width, framed) ---------- */
.em-mia__visual {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	margin-block: 0;
	padding: 12px;
	border-radius: 28px;
	border: 2px solid var(--em-mia-frame-border);
	background: var(--em-mia-frame-bg);
	box-shadow: var(--em-mia-frame-shadow);
	overflow: hidden;
}

.em-mia__visual-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin: 0 auto;
	border-radius: 18px;
	object-fit: contain;
}

/* ---------- How it works ---------- */
.em-mia__how {
	width: 100%;
	text-align: center;
	/* Space between illustration and this heading */
	margin-top: 28px;
	padding-top: 0;
}

.em-mia__how-title {
	margin: 0 0 28px;
	font-family: var(--em-mia-sans);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--em-mia-text);
}

.em-mia__steps {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: stretch;
	gap: 22px;
	width: 100%;
}

.em-mia__card {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--em-mia-white);
	border-radius: 16px;
	box-shadow: var(--em-mia-shadow);
	padding: 40px 20px 28px;
	min-width: 0;
	max-width: 340px;
}

.em-mia__step-num {
	position: absolute;
	top: -15px;
	left: 50%;
	transform: translateX(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--em-mia-brand);
	color: var(--em-mia-white);
	font-size: 14px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	box-shadow: 0 4px 12px rgba(202, 28, 28, 0.28);
}

.em-mia__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border: 2px solid var(--em-mia-brand);
	border-radius: 50%;
	color: var(--em-mia-brand);
	margin-bottom: 16px;
	background: transparent;
}

.em-mia__card-icon svg {
	width: 30px;
	height: 30px;
}

.em-mia__card-title {
	margin: 0 0 12px;
	font-family: var(--em-mia-sans);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--em-mia-brand);
}

.em-mia__card-ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--em-mia-brand);
	width: 100%;
}

.em-mia__card-ornament-line {
	display: block;
	flex: 1 1 auto;
	max-width: 52px;
	height: 1.5px;
	background: var(--em-mia-gold);
	opacity: 0.85;
}

.em-mia__card-ornament svg {
	width: 11px;
	height: 11px;
	flex-shrink: 0;
}

.em-mia__card-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--em-mia-muted);
	font-weight: 400;
}

/* ---------- Laptop ---------- */
@media (max-width: 1200px) {
	.em-mia {
		padding: 64px 32px 72px;
	}

	.em-mia__title {
		font-size: 36px;
	}

	.em-mia__how-title {
		font-size: 26px;
	}
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.em-mia {
		padding: 56px 24px 64px;
	}

	.em-mia__title {
		font-size: 32px;
	}

	.em-mia__header {
		margin-bottom: 10px;
	}

	.em-mia__visual {
		padding: 10px;
		border-radius: 24px;
	}

	.em-mia__visual-img {
		border-radius: 16px;
	}

	.em-mia__how {
		margin-top: 24px;
	}

	.em-mia__how-title {
		font-size: 24px;
		margin-bottom: 24px;
	}

	.em-mia__steps {
		gap: 16px;
	}

	.em-mia__card {
		padding: 36px 14px 24px;
		max-width: none;
	}

	.em-mia__card-title {
		font-size: 16px;
	}

	.em-mia__card-desc {
		font-size: 13px;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.em-mia {
		padding: 48px 16px 56px;
	}

	.em-mia__header {
		margin-bottom: 8px;
	}

	.em-mia__title {
		font-size: 26px;
		line-height: 1.3;
	}

	.em-mia__ornament-line {
		width: 40px;
	}

	.em-mia__subtitle {
		font-size: 15px;
	}

	.em-mia__visual {
		padding: 8px;
		border-radius: 20px;
	}

	.em-mia__visual-img {
		border-radius: 12px;
	}

	.em-mia__how {
		margin-top: 20px;
	}

	.em-mia__how-title {
		font-size: 17px;
		line-height: 1.25;
		letter-spacing: -0.02em;
		white-space: nowrap;
		margin-bottom: 20px;
		padding: 0;
	}

	.em-mia__steps {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}

	.em-mia__card {
		width: 100%;
		max-width: 100%;
		padding: 40px 20px 28px;
	}

	.em-mia__card-icon {
		width: 64px;
		height: 64px;
	}

	.em-mia__card-title {
		font-size: 17px;
	}

	.em-mia__card-desc {
		font-size: 14px;
	}
}

/* Small phones */
@media (max-width: 420px) {
	.em-mia__title {
		font-size: 24px;
	}

	.em-mia__how-title {
		font-size: 14px;
		letter-spacing: -0.03em;
		white-space: nowrap;
		margin-bottom: 18px;
	}

	.em-mia__badge {
		font-size: 11px;
		padding: 8px 14px;
	}
}
