/* wp-content/plugins/ceca-widgets/widgets/related-news/related-news.css */
/* Related News (Figma 200:788): 30/40 Bold heading, 4 hairline-topped cards
   sharing the news-card markup (renderer in ceca-widgets includes). Card
   styles are restated here because the archive stylesheet only loads on
   pages using the News Archive widget. Dates are hidden — the design's
   related cards carry pill + title + image only. */

.ceca-related-news .ceca-rn__heading {
	margin: 0 0 20px;
	font-size: 30px;
	line-height: 40px;
	font-weight: 700;
	color: #1a1a1a;
}

.ceca-rn__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.ceca-related-news .ceca-news-card {
	border-top: 1px solid #e8e8e8;
	padding-top: 20px;
}

.ceca-related-news .ceca-news-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.ceca-related-news .ceca-news-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ceca-related-news .ceca-news-card__pill {
	display: inline-flex;
	align-items: center;
	height: 25px;
	padding: 0 14px;
	background: #e3e3e3;
	border-radius: 300px;
	font-size: 16px;
	line-height: 20px;
	color: #1a1a1a;
}

.ceca-related-news .ceca-news-card__date {
	display: none;
}

.ceca-related-news .ceca-news-card__title {
	margin: 14px 0 20px;
	min-height: 90px;
	font-size: 25px;
	line-height: 30px;
	font-weight: 700;
	color: #1a1a1a;
	/* Capped at 3 lines (ellipsis) so a long headline can't make its card,
	   and the whole row, taller than its neighbours. Visual only — the full
	   title stays in the markup for screen readers and search. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.ceca-related-news .ceca-news-card__media {
	height: 204px;
	background: #e8e8e8;
	overflow: hidden;
}

.ceca-related-news .ceca-news-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ceca-related-news .ceca-news-card__excerpt {
	margin: 0;
	font-size: 18px;
	line-height: 26px;
	color: #1a1a1a;
}

@media (max-width: 1024px) {
	.ceca-rn__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ceca-rn__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ceca-related-news .ceca-news-card__title {
		min-height: 0;
	}
}
