.cpm-ms {
	background: #ffffff;
	padding-block: var(--cpm-section-gap);
}

/* ── Two-col main grid ──────────────────────────────────── */

.cpm-ms__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: stretch;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* ── Left: 2×2 stat cards ───────────────────────────────── */

.cpm-ms__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(12px, 1.5vw, 20px);
}

.cpm-ms__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: .6rem;
	background: #ffffff;
	border: 1px dashed rgb(180, 180, 180);
	border-radius: 16px;
	padding: 2rem 1rem;
	min-height: 200px;
	justify-content: center;
}

.cpm-ms__card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.cpm-ms__card-icon img,
.cpm-ms__card-icon-svg {
	width: 44px;
	height: 44px;
	object-fit: contain;
	color: rgb(30, 30, 30);
}

.cpm-ms__card-number {
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: 32px;
	line-height: 36px;
	color: rgb(30, 30, 30);
}

.cpm-ms__card-label {
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 19px;
	color: rgb(30, 30, 30);
	text-transform: uppercase;
}

/* ── Right: bg image ────────────────────────────────────── */

.cpm-ms__media {
	position: relative;
	border-radius: 15px;
	overflow: hidden;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	min-height: 380px;
}

/* ── Overlay box — flush top-right inside image ─────────── */

.cpm-ms__overlay {
	position: absolute;
	top: 0;
	right: 0;
	background: #ffffff;
	border-radius: 0 0 0 15px;
	padding: 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	max-width: 320px;
}

.cpm-ms__badge {
	display: inline-block;
	align-self: flex-start;
	background: rgb(108, 108, 108);
	color: rgb(241, 241, 241);
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
	font-weight: 600;
	font-size: 16px;
	line-height: 19px;
	padding: .4rem 1rem;
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.cpm-ms__heading-dark {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	font-style: normal;
	font-weight: 600;
	font-size: 36px;
	line-height: 1.1;
	color: rgb(51, 51, 51);
	text-transform: uppercase;
	margin: 0;
}

.cpm-ms__heading-red {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	font-style: normal;
	font-weight: 900;
	font-size: 36px;
	line-height: 1.1;
	color: rgb(255, 0, 0);
	text-transform: uppercase;
	margin: 0;
}

/* ── Bottom: centered button ────────────────────────────── */

.cpm-ms__btn-wrap {
	display: flex;
	justify-content: center;
}

.cpm-ms__btn {
	display: inline-flex;
	align-items: center;
	background: rgb(108, 108, 108);
	color: #ffffff;
	border-radius: 10px;
	padding: .85rem 3rem;
	text-decoration: none;
	overflow: hidden;
	position: relative;
	min-width: 220px;
	justify-content: center;
}

.cpm-ms__btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgb(30, 30, 30);
	transform: translateX(-100%);
	transition: transform 0.35s ease;
	z-index: 0;
}

.cpm-ms__btn:hover::before {
	transform: translateX(0);
}

.cpm-ms__btn-inner {
	position: relative;
	z-index: 1;
	display: inline-block;
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
	font-weight: 600;
	font-size: 0;
	overflow: hidden;
	height: 20px;
	white-space: nowrap;
}

.cpm-ms__btn-inner::before,
.cpm-ms__btn-inner::after {
	display: block;
	font-size: 16px;
	line-height: 20px;
	font-weight: 600;
	font-family: 'Montserrat', sans-serif;
	color: #ffffff;
	transition: transform 0.35s ease;
	white-space: nowrap;
	content: attr(data-text);
}

.cpm-ms__btn-inner::before {
	transform: translateX(0);
}

.cpm-ms__btn-inner::after {
	position: absolute;
	top: 0;
	left: 0;
	transform: translateX(-100%);
}

.cpm-ms__btn:hover .cpm-ms__btn-inner::before {
	transform: translateX(100%);
}

.cpm-ms__btn:hover .cpm-ms__btn-inner::after {
	transform: translateX(0);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1024px) {
	.cpm-ms__grid {
		grid-template-columns: 1fr;
	}

	.cpm-ms__media {
		min-height: 320px;
	}
}

@media (max-width: 768px) {
	/* Section becomes the bg image */
	.cpm-ms {
		position: relative;
		background-image: none;
		padding-top: 20px;
		padding-bottom: 20px;
		overflow: hidden;
	}

	/* Blurred bg via pseudo */
	.cpm-ms::before {
		content: '';
		position: absolute;
		inset: 0;
		background-image: var(--ms-bg);
		background-size: cover;
		background-position: center center;
		filter: blur(4px);
		transform: scale(1.05);
		z-index: 0;
	}

	/* Dark overlay on top of blur */
	.cpm-ms::after {
		content: '';
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, 0.45);
		z-index: 0;
	}

	.cpm-ms .cpm-container {
		position: relative;
		z-index: 1;
		padding-left: 20px !important;
		padding-right: 20px !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	.cpm-ms__grid {
		grid-template-columns: 1fr;
		margin-bottom: 1rem;
		gap: .75rem;
	}

	/* Show media but strip its bg — just show overlay box on top */
	.cpm-ms__media {
		background-image: none !important;
		min-height: unset;
		border-radius: 0;
		order: -1;
	}

	.cpm-ms__overlay {
		position: static;
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.88);
		max-width: 100%;
		padding: 1rem 1.25rem;
		gap: .5rem;
	}

	.cpm-ms__badge {
		font-size: 13px;
	}

	.cpm-ms__heading-dark,
	.cpm-ms__heading-red {
		font-size: 20px;
		line-height: 26px;
	}

	/* Cards with semi-transparent white bg */
	.cpm-ms__stats {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.cpm-ms__card {
		background: rgba(255, 255, 255, 0.88);
		min-height: 140px;
		padding: 1rem .75rem;
	}

	.cpm-ms__card-number {
		font-size: 24px;
		line-height: 28px;
	}

	.cpm-ms__card-label {
		font-size: 12px;
		line-height: 16px;
	}

	.cpm-ms__card-icon img,
	.cpm-ms__card-icon-svg {
		width: 32px;
		height: 32px;
	}

	/* Button */
	.cpm-ms__btn-wrap {
		width: 100%;
	}

	.cpm-ms__btn {
		width: 100%;
		min-width: unset;
	}
}
