/* wp-content/plugins/ceca-widgets/widgets/news-hero/news-hero.css */
/* News Hero (Figma 200:788): date 16 grey, 50/60 Bold title, translucent
   pill on the left; 424px cover image + 16px grey caption right; full-bleed
   5px #8CC078 rule below. Exact design type baked in; controls override. */

.ceca-news-hero {
	--ceca-nh-gap: 24px;
}

.ceca-nh__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--ceca-nh-gap);
	align-items: start;
}

.ceca-nh__date {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 30px;
	color: #7e7e7e;
}

.ceca-nh__title {
	margin: 0 0 24px;
	font-size: 50px;
	line-height: 60px;
	font-weight: 700;
	color: #1a1a1a;
}

.ceca-nh__pill {
	display: inline-flex;
	align-items: center;
	height: 25px;
	padding: 0 14px;
	background: rgba(198, 198, 198, 0.5);
	border-radius: 300px;
	font-size: 16px;
	line-height: 20px;
	color: #1a1a1a;
}

.ceca-nh__figure {
	margin: 0;
}

.ceca-nh__media {
	height: 424px;
	background: #e8e8e8;
	overflow: hidden;
}

.ceca-nh__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ceca-nh__caption {
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 20px;
	color: #7e7e7e;
}

/* Full-bleed rule: the widget sits in a boxed container, the rule breaks out
   to the viewport edges — same formula as the header bars / CTA banner. */
.ceca-nh__rule {
	position: relative;
	height: 5px;
	margin-top: 36px;
}

.ceca-nh__rule::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(50% - 50vw);
	width: 100vw;
	background: #8cc078;
}

/* Mobile (Figma 2372:10721): pill + date share one row above the title,
   title 25/30 bold, then the 400×251 image, caption 10px under it and the
   rule 20px under that (user, 2026-10-02). Reordered with flex order so
   the desktop markup stays as is. */
@media (max-width: 767px) {
	.ceca-nh__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.ceca-nh__text {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: 10px;
	}

	.ceca-nh__pill {
		order: 1;
	}

	.ceca-nh__date {
		order: 2;
		margin: 0;
		line-height: 25px;
	}

	.ceca-nh__title {
		order: 3;
		flex: 0 0 100%;
		margin: 10px 0;
		font-size: 25px;
		line-height: 30px;
	}

	.ceca-nh__media {
		height: auto;
		aspect-ratio: 400 / 251;
	}

	.ceca-nh__caption {
		margin-top: 10px;
	}

	.ceca-nh__rule {
		margin-top: 20px;
	}

	.ceca-nh__text {
		order: 0;
	}

	.ceca-nh__figure {
		order: 1;
	}
}
