/* wp-content/plugins/ceca-widgets/widgets/news-sidebar/news-sidebar.css */
/* News Sidebar (Figma 200:788): #F3F3F3 region lockup panel (CECA logo |
   divider | region name), then download cards — cover image, bordered white
   body (25/26 Bold title, 22/26 grey label, 16px date, black r300 pill
   button), 3px green base rule. */

.ceca-news-sidebar {
	--ceca-ns-btn-bg: #000000;
	--ceca-ns-btn-color: #ffffff;
	--ceca-ns-btn-bg-hover: #411024;
	--ceca-ns-btn-color-hover: #ffffff;

	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Self-sizing template row: drop Post Content and News Sidebar DIRECTLY into
   one row container — the sidebar owns the design's 416px and the content
   takes the rest. No manual column percentages needed (and Elementor's
   nested-flexbox width settings, which fight this, aren't either). */
.e-con > .elementor-widget-ceca-news-sidebar,
.e-con-inner > .elementor-widget-ceca-news-sidebar {
	width: 416px;
	max-width: 100%;
	flex: none;
	/* The design's 134px content↔sidebar gutter. Set the row container's own
	   gap to 0 — any container gap adds to this. */
	margin-left: 134px;
}

.e-con:has(> .elementor-widget-ceca-news-sidebar) > .elementor-widget-theme-post-content,
.e-con-inner:has(> .elementor-widget-ceca-news-sidebar) > .elementor-widget-theme-post-content {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 1024px) {
	.e-con > .elementor-widget-ceca-news-sidebar,
	.e-con-inner > .elementor-widget-ceca-news-sidebar {
		width: 100%;
		margin-left: 0;
	}
}

/* --- Region lockup ------------------------------------------------------- */

.ceca-ns__region {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	height: 140px;
	padding: 0 24px;
	background: #f3f3f3;
}

/* Fixed height so SVG logos (no intrinsic raster size) render reliably. */
.ceca-ns__region-logo img {
	display: block;
	height: 52px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

.ceca-ns__region-logo--text {
	font-size: 34px;
	font-weight: 700;
	color: #411024;
}

.ceca-ns__region-divider {
	width: 1px;
	align-self: stretch;
	margin: 34px 0;
	background: #b5b5b5;
}

.ceca-ns__region-name {
	font-size: 26px;
	line-height: 30px;
	color: #411024;
}

/* --- Download cards ------------------------------------------------------ */

.ceca-ns__card {
	border-bottom: 3px solid #8cc078;
}

.ceca-ns__card-media {
	height: 173px;
	background: #e8e8e8;
	overflow: hidden;
}

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

/* Document previews show as a whole A4 page (user, 2026-09-30), not a
   173px crop of the masthead. */
.ceca-ns__card-media--doc {
	height: auto;
	aspect-ratio: 210 / 297;
}

.ceca-ns__card-media--doc img {
	object-position: top center;
}

/* Topic drawings are portrait with open sky on top: the 173px banner shows
   the scene's lower middle, as the resource cards do. */
.ceca-ns__card-media--art {
	background: #ffffff;
}

.ceca-ns__card-media--art img {
	object-position: center 70%;
}

.ceca-ns__card-body {
	padding: 22px;
	background: #ffffff;
	border: 1px solid #e8e8e8;
	border-top: 0;
}

/* When a card has no image the body carries the full border. */
.ceca-ns__card > .ceca-ns__card-body:first-child {
	border-top: 1px solid #e8e8e8;
}

.ceca-ns__card-title {
	margin: 0;
	font-size: 25px;
	line-height: 26px;
	font-weight: 700;
	color: #1a1a1a;
}

.ceca-ns__card-label {
	margin: 11px 0 0;
	font-size: 22px;
	line-height: 26px;
	color: #7f7f7f;
}

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

/* High specificity + explicit states so kit link/button globals never win. */
.ceca-news-sidebar a.ceca-ns__card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 30px;
	margin-top: 18px;
	background: var(--ceca-ns-btn-bg);
	border-radius: 300px;
	font-size: 18px;
	line-height: 30px;
	color: var(--ceca-ns-btn-color);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ceca-news-sidebar a.ceca-ns__card-button:hover,
.ceca-news-sidebar a.ceca-ns__card-button:focus {
	background: var(--ceca-ns-btn-bg-hover);
	color: var(--ceca-ns-btn-color-hover);
}
