/* ==========================================================================
   NSW Live News — self-contained stylesheet.
   No Bootstrap (or any other framework) required — every class below is
   scoped under .nsw-live-news so it can never leak into / clash with theme
   styles, and never depends on theme styles being present either.
   ========================================================================== */

.nsw-live-news {
	--nsw-accent: #D63031;
	font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.nsw-live-news * {
	box-sizing: border-box;
}

.nsw-news-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* ---- Card ---- */

.nsw-news-card {
	display: flex;
	align-items: stretch;
	gap: 18px;
	background: #fff;
	border-radius: 10px;
	border-left: 4px solid var(--nsw-accent);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	padding: 16px;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nsw-news-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* ---- Thumbnail ---- */

.nsw-news-thumb {
	flex: 0 0 150px;
	width: 150px;
	height: 110px;
	border-radius: 8px;
	overflow: hidden;
	display: block;
	background: #f1f2f4;
}

.nsw-news-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nsw-news-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b6b9bf;
	font-size: 34px;
}

/* ---- Body ---- */

.nsw-news-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.nsw-news-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}

.nsw-live-badge {
	background: var(--nsw-accent);
	color: #fff;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.3px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	line-height: 1;
	animation: nsw-pulse 1.5s infinite;
}

.nsw-news-date {
	color: #6b7280;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.nsw-news-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 8px;
}

.nsw-news-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.nsw-news-title a:hover {
	color: var(--nsw-accent);
}

.nsw-news-excerpt {
	color: #595959;
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 12px;
}

.nsw-read-more-btn {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1.5px solid var(--nsw-accent);
	color: var(--nsw-accent);
	background: transparent;
	padding: 6px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s ease;
}

.nsw-read-more-btn:hover {
	background: var(--nsw-accent);
	color: #fff;
}

/* ---- Empty state ---- */

.nsw-no-posts {
	background: #fdf1f1;
	color: #7a1f1f;
	border: 1px solid #f3c7c7;
	border-radius: 8px;
	padding: 14px 18px;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ---- Pagination ---- */

.nsw-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 26px;
}

.nsw-pagination .page-numbers {
	padding: 8px 15px;
	margin: 4px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
	font-size: 14px;
	transition: all 0.25s ease;
	display: inline-block;
}

.nsw-pagination .page-numbers.current,
.nsw-pagination .page-numbers:hover {
	background: var(--nsw-accent);
	color: #fff;
	border-color: var(--nsw-accent);
}

.nsw-pagination .page-numbers.dots {
	border: none;
}

@keyframes nsw-pulse {
	0% { opacity: 1; }
	50% { opacity: 0.6; }
	100% { opacity: 1; }
}

/* ---- Responsive: stack the card on narrow screens ---- */

@media (max-width: 560px) {
	.nsw-news-card {
		flex-direction: column;
	}
	.nsw-news-thumb {
		width: 100%;
		height: 170px;
	}
	.nsw-news-title {
		font-size: 16px;
	}
}
