.cpm-pb {
	padding: 40px 100px 100px;
	background: #ffffff;
}

.cpm-pb__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(16px, 2.5vw, 36px);
	align-items: center;
	background: #F1F1F1;
	border-radius: 0;
	padding: clamp(24px, 4vw, 56px);
	max-width: 100%;
	margin-inline: 0;
}

.cpm-pb .cpm-pb__inner {
	padding-inline: clamp(24px, 4vw, 56px);
}

/* Left: image */
.cpm-pb__media {
	border-radius: var(--cpm-radius-md);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.cpm-pb__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Right: content */
.cpm-pb__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	height: 100%;
	min-height: 320px;
}

.cpm-pb__body-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	flex: 1;
	justify-content: center;
}

/* Badge pill */
.cpm-pb__badge {
	display: inline-block;
	background: var(--cpm-color-red);
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 700;
	font-style: normal;
	line-height: 19px;
	color: rgb(255, 255, 255);
	letter-spacing: .03em;
	padding: .45em 1.25em;
	border-radius: 13px;
}

/* Heading */
.cpm-pb__heading {
	font-family: 'Montserrat', sans-serif;
	font-size: 30px;
	font-weight: 600;
	font-style: normal;
	text-transform: uppercase;
	line-height: 36px;
	margin: 0;
}

.cpm-pb__heading-line {
	display: inline;
	font-weight: 600;
	color: rgb(30, 30, 30);
}

.cpm-pb__heading-line--red {
	font-weight: 900;
	color: rgb(255, 0, 0);
}

/* Body text */
.cpm-pb__content {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	line-height: 19px;
	color: rgb(30, 30, 30);
}

.cpm-pb__content p {
	margin: 0 0 .5em;
}

.cpm-pb__content p:last-child {
	margin-bottom: 0;
}

/* CTA button */
.cpm-pb__cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 600;
	font-style: normal;
	line-height: 20px;
	color: #ffffff;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 1em 3em;
	min-width: 200px;
	border-radius: 10px;
	background: #8E8E8E;
	overflow: hidden;
	margin-top: 0;
}

/* Text always on top */
.cpm-pb__cta-text {
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	height: 20px;
	overflow: hidden;
}

.cpm-pb__cta-text::before {
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
	color: #ffffff;
	text-transform: uppercase;
	transition: transform 0.4s ease;
}

.cpm-pb__cta-text::after {
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
	color: #ffffff;
	text-transform: uppercase;
	transform: translateX(-100%);
	transition: transform 0.4s ease;
}

.cpm-pb__cta:hover .cpm-pb__cta-text::before,
.cpm-pb__cta:focus-visible .cpm-pb__cta-text::before {
	transform: translateX(100%);
}

.cpm-pb__cta:hover .cpm-pb__cta-text::after,
.cpm-pb__cta:focus-visible .cpm-pb__cta-text::after {
	transform: translateX(0);
}

/* Dark bg slides in from left on hover */
.cpm-pb__cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: #1C1C1C;
	transform: translateX(-100%);
	transition: transform 0.4s ease;
	z-index: 1;
}

.cpm-pb__cta:hover::before,
.cpm-pb__cta:focus-visible::before {
	transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
	.cpm-pb {
		padding: 20px !important;
	}

	.cpm-pb__inner {
		grid-template-columns: 1fr;
		padding: 16px !important;
		gap: 1rem;
	}

	.cpm-pb__media {
		aspect-ratio: 3 / 2;
	}

	.cpm-pb__badge {
		font-size: 13px;
		line-height: 17px;
		padding: .35em 1em;
		border-radius: 12px;
		margin-bottom: .75rem;
	}

	.cpm-pb__heading {
		font-size: 25px;
		line-height: 31px;
		text-align: center;
	}

	.cpm-pb__body {
		align-items: center;
		text-align: center;
		min-height: unset;
	}

	.cpm-pb__body-content {
		align-items: center;
	}

	.cpm-pb__heading {
		font-size: 22px;
		line-height: 28px;
		text-align: center;
	}

	.cpm-pb__content {
		font-size: 14px;
		line-height: 20px;
		text-align: center;
	}

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