.mea-rs5 {
	font-family: 'Outfit', sans-serif;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.mea-rs5 *,
.mea-rs5 *::before,
.mea-rs5 *::after {
	box-sizing: border-box;
}

.mea-rs5__main {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 840px;
	padding: 60px 0;
	background-color: #efe9e2;
	overflow: hidden;
}

.mea-rs5__picture {
	position: absolute;
	inset: 0;
	display: block;
	z-index: 0;
}

.mea-rs5__bg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.mea-rs5__main::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.mea-rs5__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	column-gap: 40px;
	width: 100%;
	max-width: var(--mea-rs5-content-max, 1290px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--mea-rs5-side-pad, 20px);
	padding-right: var(--mea-rs5-side-pad, 20px);
}

.mea-rs5__inner--cert-left {
	flex-direction: row-reverse;
}

.mea-rs5__text {
	flex: 0 1 55%;
	max-width: 55%;
	min-width: 0;
	text-align: left;
}

.mea-rs5__title {
	margin: 0 0 16px;
	font-size: 52px;
	font-weight: 700;
	line-height: 1.05;
}

.mea-rs5__title-1,
.mea-rs5__title-2 {
	display: block;
}

.mea-rs5__title-1 {
	color: #d81c1c;
}

.mea-rs5__title-2 {
	color: #0a0a0a;
}

.mea-rs5__subtitle {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.5;
	color: #111111;
}

.mea-rs5__badge {
	display: inline-block;
	max-width: 100%;
	padding: 8px 20px;
	font-size: 40px;
	font-weight: 600;
	line-height: 1.2;
	color: #ffffff;
	background-color: #000000;
	border-radius: 20px;
	text-decoration: none;
	overflow-wrap: anywhere;
}

a.mea-rs5__badge:hover,
a.mea-rs5__badge:focus {
	color: #ffffff;
	text-decoration: none;
}

.mea-rs5__button-wrap {
	margin-top: 28px;
}

.mea-rs5__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	color: #ffffff;
	background-color: #c8102e;
	border: 0 solid transparent;
	border-radius: 6px;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.mea-rs5__button:hover,
.mea-rs5__button:focus {
	color: #ffffff;
	background-color: #1a1a1a;
	text-decoration: none;
}

.mea-rs5__button-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.mea-rs5__button-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.mea-rs5__certificate {
	display: flex;
	justify-content: flex-end;
	flex: 1 1 0;
	min-width: 0;
}

.mea-rs5__certificate-link {
	display: block;
	width: fit-content;
	max-width: 100%;
}

.mea-rs5__certificate-img {
	display: block;
	width: 520px;
	max-width: 100%;
	height: auto;
	border: 4px solid #000000;
	transform: translateY(0) scale(1);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
	will-change: transform;
}

.mea-rs5__certificate-link:hover .mea-rs5__certificate-img {
	transform: translateY(calc(-1 * var(--mea-rs5-lift, 8px))) scale(var(--mea-rs5-zoom, 1.04));
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: reduce) {
	.mea-rs5__certificate-img {
		transition: none;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.mea-rs5__main {
		min-height: 640px;
	}

	.mea-rs5__inner {
		column-gap: 24px;
	}

	.mea-rs5__text {
		flex-basis: 52%;
		max-width: 52%;
	}

	.mea-rs5__title {
		font-size: 40px;
	}

	.mea-rs5__subtitle {
		font-size: 20px;
	}

	.mea-rs5__badge {
		font-size: 30px;
	}

	.mea-rs5__certificate-img {
		width: 400px;
	}
}

/* Mobile: text block first, certificate below. */
@media (max-width: 767px) {
	.mea-rs5__main {
		min-height: 0;
		padding: 40px 0;
	}

	.mea-rs5__inner,
	.mea-rs5__inner--cert-left {
		flex-direction: column;
		align-items: stretch;
		row-gap: 32px;
		column-gap: 0;
	}

	.mea-rs5__text {
		flex: 0 0 auto;
		max-width: 100% !important;
		width: 100%;
	}

	.mea-rs5__title {
		font-size: 28px;
	}

	.mea-rs5__subtitle {
		font-size: 16px;
	}

	.mea-rs5__badge {
		font-size: 18px;
		border-radius: 14px;
	}

	.mea-rs5__certificate {
		flex: 0 0 auto;
		justify-content: center;
	}

	.mea-rs5__certificate-img {
		width: 100%;
		max-width: 480px;
	}
}

@media (max-width: 480px) {
	.mea-rs5__button {
		width: 100%;
	}
}

/* ---------- Extended responsive (matches home page breakpoints) ---------- */
@media (max-width: 1680px) {
	.mea-rs5__inner {
		max-width: min(var(--mea-rs5-content-max, 1290px), 80%);
	}

	.mea-rs5__title {
		font-size: 48px;
	}

	.mea-rs5__badge {
		font-size: 36px;
	}

	.mea-rs5__certificate-img {
		width: 480px;
	}
}

@media (max-width: 1440px) {
	.mea-rs5__inner {
		max-width: min(var(--mea-rs5-content-max, 1290px), 85%);
	}

	.mea-rs5__main {
		min-height: 720px;
	}

	.mea-rs5__title {
		font-size: 44px;
	}

	.mea-rs5__subtitle {
		font-size: 22px;
	}

	.mea-rs5__badge {
		font-size: 32px;
	}

	.mea-rs5__certificate-img {
		width: 440px;
	}
}

@media (max-width: 1024px) {
	.mea-rs5__inner {
		max-width: min(var(--mea-rs5-content-max, 1290px), 90%);
	}

	.mea-rs5__title {
		font-size: 36px;
	}

	.mea-rs5__badge {
		font-size: 26px;
		border-radius: 16px;
	}

	.mea-rs5__certificate-img {
		width: 100%;
		max-width: 380px;
	}
}

@media (max-width: 767px) {
	.mea-rs5__inner,
	.mea-rs5__inner--cert-left {
		max-width: 100%;
	}

	.mea-rs5__certificate-img {
		max-width: 420px;
	}
}

@media (max-width: 480px) {
	.mea-rs5__main {
		padding: 32px 0;
	}

	.mea-rs5__title {
		font-size: 24px;
	}

	.mea-rs5__subtitle {
		font-size: 15px;
		margin-bottom: 18px;
	}

	.mea-rs5__badge {
		padding: 6px 14px;
		font-size: 16px;
	}

	.mea-rs5__certificate-img {
		max-width: 100%;
		border-width: 3px;
	}
}

@media (min-width: 768px) and (max-width: 1680px) {
	.mea-rs5__subtitle {
		font-size: 18px;
	}

	.mea-rs5__badge {
		font-size: 25px;
	}
}

@media (min-width: 768px) and (max-width: 1366px) {
	.mea-rs5__badge {
		font-size: 16px !important;
	}
}

@media (max-width: 1680px) {
	.mea-rs5__bg {
		object-position: center center;
		object-fit: cover !important;
		height: 100% !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.mea-rs5__title {
		font-size: 30px !important;
	}

	.mea-rs5__subtitle {
		font-size: 16px !important;
	}
}

@media (min-width: 768px) and (max-width: 1366px) {
	.mea-rs5__badge {
		font-size: 14px !important;
	}
}

@media (max-width: 768px) {
	.mea-rs5__title {
		font-size: 25px !important;
	}
}

@media (max-width: 500px) {
	.mea-rs5__badge,
	.mea-rs5__subtitle {
		font-size: 14px !important;
	}
}
