/* Custom News System – Frontend shortcode styles */

.cns-news-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin: 20px 0;
}

.cns-news-item {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease;
}

.cns-news-item:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cns-news-item.is-breaking {
	border-color: #d63638;
}

.cns-thumb img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.cns-body {
	padding: 14px 16px 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cns-cat {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #d63638;
	margin-bottom: 6px;
}

.cns-title {
	font-size: 17px;
	line-height: 1.35;
	margin: 0 0 8px;
	font-weight: 650;
}

.cns-title a {
	text-decoration: none;
	color: inherit;
}

.cns-title a:hover {
	color: #d63638;
}

.cns-subtitle {
	font-size: 13px;
	color: #666;
	margin: 0 0 10px;
	line-height: 1.4;
}

.cns-meta {
	font-size: 12px;
	color: #888;
	margin-top: auto;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.cns-video-wrap {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	margin: 16px 0;
	border-radius: 6px;
}

.cns-video-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.cns-no-news {
	color: #888;
	font-style: italic;
	padding: 20px 0;
}

/* Lead style – single wider card */
.cns-lead-list {
	grid-template-columns: 1fr;
}

.cns-lead-list .cns-title {
	font-size: 24px;
}

/* Breaking ticker-style optional */
.cns-breaking-list .cns-news-item {
	border-left: 4px solid #d63638;
}

@media (max-width: 600px) {
	.cns-news-list {
		grid-template-columns: 1fr;
	}
}
