.evs-wrap {
	--evs-dark: #16241f;
	--evs-green: #1a6b52;
	font-family: inherit;
}

.evs-heading {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 20px 0;
}

/* Filter tabs */
.evs-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.evs-tab {
	background: #fff;
	border: 2px solid #e2e2e2;
	border-radius: 40px;
	padding: 10px 20px;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	transition: box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.evs-tab:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.evs-tab.active {
	background: var(--evs-dark);
	border-color: var(--evs-dark);
	color: #fff;
}

/* Grid */
.evs-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

@media (max-width: 1024px) {
	.evs-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

@media (max-width: 640px) {
	.evs-grid { grid-template-columns: 1fr; }
	.evs-filters { gap: 8px; }
	.evs-tab { padding: 8px 16px; font-size: 13px; }
}

.evs-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e2e2;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0,0,0,.06);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}

.evs-card:hover,
.evs-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.evs-card:focus-visible {
	outline: 3px solid var(--evs-green);
	outline-offset: 2px;
}

.evs-card.evs-hidden {
	display: none;
}

.evs-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--evs-dark), #2c4038);
	overflow: hidden;
}

.evs-card-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.evs-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: rgba(255,255,255,.92);
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
	transition: transform .15s ease;
}

.evs-card:hover .evs-play-icon {
	transform: translate(-50%, -50%) scale(1.08);
}

.evs-play-icon svg {
	width: 24px;
	height: 24px;
	fill: var(--evs-dark);
	margin-left: 3px;
}

.evs-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: rgba(22,36,31,.85);
	pointer-events: none;
}

.evs-card-body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex-grow: 1;
}

.evs-card-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--evs-green);
	line-height: 1.3;
}

.evs-card-cta {
	display: inline-block;
	align-self: flex-start;
	margin-top: auto;
	padding: 10px 20px;
	border-radius: 8px;
	background: var(--evs-dark);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

/* Popup / modal */
.evs-modal[hidden] {
	display: none;
}

.evs-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.evs-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.82);
}

.evs-modal-dialog {
	position: relative;
	width: min(92vw, 1100px);
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 10px;
	overflow: visible;
	z-index: 1;
}

.evs-modal-video {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	overflow: hidden;
}

.evs-modal-video iframe,
.evs-modal-video video {
	width: 100%;
	height: 100%;
	border: 0;
}

.evs-modal-close {
	position: absolute;
	top: -18px;
	right: -18px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 0;
	box-shadow: 0 2px 10px rgba(0,0,0,.35);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.evs-modal-close svg {
	width: 18px;
	height: 18px;
}

.evs-modal-close svg line {
	stroke: var(--evs-dark);
	stroke-width: 2.4;
	stroke-linecap: round;
}

.evs-modal-close:hover {
	background: #f2f2f2;
}

@media (max-width: 640px) {
	.evs-modal { padding: 12px; }
	.evs-modal-dialog { width: 100%; }
	.evs-modal-close {
		top: -46px;
		right: 0;
		background: rgba(255,255,255,.95);
	}
}

body.evs-modal-open {
	overflow: hidden;
}
