/*
 * News & Events page (page-news-events.php). Header / page-header / filter
 * pills come from page-blog.css (enqueued as a dependency); this file only
 * adds the card grid.
 */
/* Header CTA button (same rules as page-blog.css, repeated so it never renders unstyled) */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:12px;padding:15px 24px;text-decoration:none;font-weight:700;border:1px solid transparent;transition:.2s;cursor:pointer;font-family:inherit;font-size:15px}
.btn-primary{background:var(--emerald,#183c28);color:#fff}
.btn-primary:hover{background:var(--emerald2,#133020);transform:translateY(-1px)}
.r1-pillnav .btn-primary{padding:.625rem 1.5rem;border:0;border-radius:.75rem;font-size:1rem;font-weight:500;line-height:1.5}

.ne-section { padding-top: 0; }

.ne-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-top: 44px;
}

.ne-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--slate200, #e2e8f0);
	border-radius: 15px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.ne-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}

.ne-media {
	background: #f8fafc;
	line-height: 0;
}
/* Full image, natural proportions — never cropped. */
.ne-media-link { display: block; }
.ne-media img {
	display: block;
	width: 100%;
	height: auto;
}
.ne-media-empty { display: block; width: 100%; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 100%); }

.ne-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px 24px 24px;
	flex: 1;
}
.ne-body h3 {
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -.02em;
	color: var(--slate950, #020617);
}

.ne-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-top: auto;
}
.ne-date {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 600;
	color: var(--slate600, #475569);
}
.ne-cat {
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--emerald50, #ecfdf5);
	color: var(--emerald2, #133020);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ne-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 48px;
}
.ne-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--slate200, #e2e8f0);
	border-radius: 12px;
	background: #fff;
	color: var(--slate700, #334155);
	font-weight: 700;
	text-decoration: none;
	transition: .15s;
}
.ne-page:hover,
.ne-page.active {
	background: var(--emerald, #183c28);
	border-color: var(--emerald, #183c28);
	color: #fff;
}

.ne-empty {
	margin: 44px 0 0;
	text-align: center;
	color: var(--slate600, #475569);
	font-size: 17px;
}

@media (max-width: 1000px) {
	.ne-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 640px) {
	.ne-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
	.ne-body { padding: 18px 20px 20px; }
}
