/* News list cards (views/news/news_list.php) */

.nl-empty {
	color: #5c6b7a;
}

.nl-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.nl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.nl-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid #e3e8ef;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: transform .25s ease, box-shadow .25s ease;
}

.nl-card:hover,
.nl-card:focus-within {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	transform: translateY(-2px);
}

.nl-card-img {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f3f5f8;
}

.nl-card-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.nl-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: .5rem;
	padding: .75rem 1rem 1rem;
}

.nl-card-title {
	display: -webkit-box;
	min-height: 44px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: var(--sci-navy);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.5;
}

.nl-card-title:hover {
	text-decoration: none;
}

.nl-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .1rem 1rem;
	margin: auto 0 0;
	padding: 0;
	list-style: none;
	font-size: .8125rem;
	color: #5c6b7a;
}

@media (prefers-reduced-motion: reduce) {
	.nl-card {
		transition: none;
	}

	.nl-card:hover,
	.nl-card:focus-within {
		transform: none;
	}
}
