/* =================================================================
   Emerald Treatment Cards
   ================================================================= */

.emerald-treat-cards {
	--emerald-treat-cols: 3;
	--emerald-treat-gap: 20px;
	--emerald-treat-ratio: 3 / 4;
	--emerald-treat-mobile-ratio: 16 / 9;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: var(--emerald-treat-gap);
	width: 100%;
}

.emerald-treat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	flex: 0 0 calc((100% - (var(--emerald-treat-cols) - 1) * var(--emerald-treat-gap)) / var(--emerald-treat-cols));
	width: calc((100% - (var(--emerald-treat-cols) - 1) * var(--emerald-treat-gap)) / var(--emerald-treat-cols));
	max-width: calc((100% - (var(--emerald-treat-cols) - 1) * var(--emerald-treat-gap)) / var(--emerald-treat-cols));
	min-width: 0;
	aspect-ratio: var(--emerald-treat-ratio);
	overflow: hidden;
	border: 0.61px solid #ffffff54;
	border-radius: 24px;
	background-color: #1d5f51;
	box-shadow: 0 4.92px 19.67px 0 #1f2d2a14;
	-webkit-backdrop-filter: blur(5.28675651550293px);
	backdrop-filter: blur(5.28675651550293px);
	color: #ffffff;
	text-decoration: none;
	isolation: isolate;
}

a.emerald-treat-card {
	cursor: pointer;
}

.emerald-treat-card:hover,
.emerald-treat-card:focus {
	color: #ffffff;
	text-decoration: none;
}

.emerald-treat-card:focus {
	outline: 0;
}

.emerald-treat-card:focus-visible {
	outline: 2px solid #1d5f51;
	outline-offset: 4px;
}

.emerald-treat-card > .emerald-treat-card__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.6s ease;
}

.emerald-treat-card:hover .emerald-treat-card__bg {
	transform: scale(1.05);
}

.emerald-treat-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(31, 45, 42, 0.08) 35%, rgba(31, 45, 42, 0.62) 100%);
	pointer-events: none;
}

.emerald-treat-card__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 32px 28px;
	gap: 8px;
	text-align: center;
	color: #ffffff;
}

.emerald-treat-card__title {
	margin: 0;
	color: #ffffff;
	font-family: 'Manrope', sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.emerald-treat-card__text {
	margin: 0;
	color: #ffffff;
	font-family: 'Source Sans 3', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
}

@media (max-width: 1024px) {
	.emerald-treat-cards {
		--emerald-treat-cols: 2;
	}
}

@media (max-width: 767px) {
	.emerald-treat-cards {
		--emerald-treat-cols: 1;
	}

	.emerald-treat-card {
		aspect-ratio: var(--emerald-treat-mobile-ratio);
	}

	.emerald-treat-card > .emerald-treat-card__bg {
		object-position: center center;
	}

	.emerald-treat-card__inner {
		align-items: flex-start;
		padding: 24px 20px;
		text-align: left;
	}

	.emerald-treat-card__title {
		font-size: 22px;
	}

	.emerald-treat-card__text {
		font-size: 15px;
	}
}
