/* =================================================================
   Emerald Tab Cards
   ================================================================= */

.emerald-tab-cards {
	width: 100%;
}

.emerald-tab-cards__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 0 0 32px;
}

.emerald-tab-cards__tab {
	--emerald-tc-tab-bg: #41a48f;
	margin: 0;
	padding: 10px 24px;
	border: 1px solid #8080808c;
	border-radius: 999px;
	background: transparent;
	box-shadow: 0 8px 32px 0 #1f2d2a14;
	-webkit-backdrop-filter: blur(8.6px);
	backdrop-filter: blur(8.6px);
	color: #6b7a75;
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.emerald-tab-cards__tab:hover {
	color: #1d5f51;
}

.emerald-tab-cards__tab.is-active,
.emerald-tab-cards__tab.is-active:hover {
	border-color: transparent;
	background:
		linear-gradient(var(--emerald-tc-tab-bg), var(--emerald-tc-tab-bg)) padding-box,
		linear-gradient(168.44deg, rgba(255, 255, 255, 0.462) -8.7%, rgba(255, 255, 255, 0) 112.65%) border-box;
	color: #ffffff;
}

.emerald-tab-cards__tab:focus {
	outline: 0;
}

.emerald-tab-cards__tab:focus-visible {
	outline: 2px solid #1d5f51;
	outline-offset: 3px;
}

.emerald-tab-cards__panels {
	display: block;
}

.emerald-tab-cards__panel {
	display: none;
}

.emerald-tab-cards__panel.is-active {
	display: block;
	animation: emerald-tc-fade 0.35s ease;
}

@keyframes emerald-tc-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.emerald-tab-cards__grid {
	--emerald-tc-cols: 4;
	--emerald-tc-gap: 16px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: var(--emerald-tc-gap);
}

.emerald-tab-cards__card {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	flex: 0 0 calc((100% - (var(--emerald-tc-cols) - 1) * var(--emerald-tc-gap)) / var(--emerald-tc-cols));
	width: calc((100% - (var(--emerald-tc-cols) - 1) * var(--emerald-tc-gap)) / var(--emerald-tc-cols));
	max-width: calc((100% - (var(--emerald-tc-cols) - 1) * var(--emerald-tc-gap)) / var(--emerald-tc-cols));
	min-width: 0;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 20px;
	background-color: #1d5f51;
	isolation: isolate;
}

.emerald-tab-cards__card > .emerald-tab-cards__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s ease;
}

.emerald-tab-cards__card:hover .emerald-tab-cards__bg {
	transform: scale(1.05);
}

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

.emerald-tab-cards__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	height: 100%;
	padding: 28px 20px 24px;
	gap: 12px;
	text-align: center;
	color: #ffffff;
}

.emerald-tab-cards__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 52px;
	height: 52px;
	margin: 0;
	border-radius: 50%;
	background-color: #1d5f51;
	color: #ffffff;
}

.emerald-tab-cards__icon svg,
.emerald-tab-cards__icon i {
	width: 22px;
	height: 22px;
	font-size: 20px;
	line-height: 1;
}

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

.emerald-tab-cards__text {
	margin: 0;
	flex: 1 1 auto;
	color: #ffffff;
	font-family: 'Source Sans 3', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.emerald-tab-cards__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	color: #ffffff;
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.emerald-tab-cards__more:hover,
.emerald-tab-cards__more:focus {
	color: #ffffff;
	opacity: 0.85;
}

.emerald-tab-cards__more svg {
	display: block;
	flex: none;
}

@media (max-width: 1024px) {
	.emerald-tab-cards__grid {
		--emerald-tc-cols: 2;
	}
}

@media (max-width: 767px) {
	.emerald-tab-cards__grid {
		--emerald-tc-cols: 1;
	}

	.emerald-tab-cards__nav {
		margin-bottom: 24px;
	}

	.emerald-tab-cards__card {
		aspect-ratio: 4 / 5;
	}

	.emerald-tab-cards__title {
		font-size: 22px;
	}
}
