.cpm-ti {
	background: #ffffff;
	padding-top: 20px;
	padding-bottom: var(--cpm-section-gap);
}

/* ── 50/50 grid ─────────────────────────────────────────── */

.cpm-ti__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1rem, 2vw, 2rem);
	align-items: center;
}

/* ── Left: content ──────────────────────────────────────── */

.cpm-ti__body {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.cpm-ti__heading {
	font-family: 'Montserrat', sans-serif;
	font-size: 40px;
	line-height: 44px;
	text-transform: uppercase;
	margin: 0;
	width: 100%;
}

.cpm-ti__heading-dark {
	display: block;
	font-weight: 600;
	font-style: normal;
	color: rgb(30, 30, 30);
	font-size: 40px;
	line-height: 44px;
}

.cpm-ti__heading-red {
	display: block;
	font-weight: 900;
	font-style: normal;
	color: rgb(255, 0, 0);
	font-size: 40px;
	line-height: 44px;
}

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

.cpm-ti__content p {
	margin: 0 0 1rem;
}

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

.cpm-ti__content a {
	color: var(--cpm-color-red);
	text-decoration: none;
}

/* ── Button (gray slide-right) ──────────────────────────── */

.cpm-ti__btn {
	display: inline-flex;
	align-items: center;
	background: rgb(108, 108, 108);
	color: #ffffff;
	border-radius: 10px;
	padding: .85rem 2.5rem;
	text-decoration: none;
	overflow: hidden;
	position: relative;
	align-self: flex-start;
	width: fit-content;
}

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

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

.cpm-ti__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-ti__btn-inner::before,
.cpm-ti__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-ti__btn-inner::before {
	transform: translateX(0);
}

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

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

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

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

.cpm-ti__media {
	align-self: stretch;
}

.cpm-ti__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 15px;
	display: block;
}

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

@media (max-width: 768px) {
	.cpm-ti {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.cpm-ti .cpm-container {
		padding-left: 20px !important;
		padding-right: 20px !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	.cpm-ti__grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	/* Image on top */
	.cpm-ti__media {
		order: -1;
		aspect-ratio: 16 / 9;
	}

	.cpm-ti__img {
		height: 100%;
	}

	.cpm-ti__heading-dark,
	.cpm-ti__heading-red {
		font-size: 21px;
		line-height: 27px;
	}

	.cpm-ti__body {
		align-items: center;
		text-align: center;
		gap: 1rem;
	}

	.cpm-ti__content {
		text-align: center;
	}

	.cpm-ti__btn {
		align-self: stretch;
		width: 100%;
		justify-content: center;
	}
}
