/* =========================================
   News and Features (om_news)
   - Listing page: templates/News-Grid.php,
     template-parts/news/card.php
   - Blog sidebar block: template-parts/blog/sidebar.php,
     template-parts/news/sidebar-item.php
========================================= */

.om-news-page .screen-reader-text,
.blog-news .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.om-news-arrow {
	display: inline-block;
	font-size: 0.95em;
	line-height: 1;
	color: #ed1b45;
}

.om-news-tag {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ed1b45;
}

/* ---------- Listing page ---------- */

.om-news-band {
	padding: 50px 0 70px;
	background: #f6f6f6;
}

.om-news-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 30px;
}

.om-news-head .om-section-head {
	width: auto;
	margin: 0;
}

.om-news-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.om-news-chip {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 7px 18px;
	border: 1px solid #ddd;
	border-radius: 20px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: #222;
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.om-news-chip:hover,
.om-news-chip:focus-visible {
	border-color: #ed1b45;
	color: #ed1b45;
}

.om-news-chip.is-active {
	background: #ed1b45;
	border-color: #ed1b45;
	color: #fff;
}

.om-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.om-news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-top: 3px solid #ed1b45;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.2s, transform 0.2s;
}

.om-news-card:hover,
.om-news-card:focus-within {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.om-news-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 110px;
	padding: 18px 24px;
	background: #fafafa;
	border-bottom: 1px solid #eee;
}

.om-news-card__logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 64px;
	object-fit: contain;
}

.om-news-card__wordmark {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	color: #222;
}

.om-news-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 20px 20px;
}

.om-news-page .om-news-card__title {
	flex: 1;
	margin: 8px 0 16px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
}

.om-news-card__title a {
	color: #222;
	text-decoration: none;
}

/* The title link covers the whole card. */
.om-news-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.om-news-card:hover .om-news-card__title a,
.om-news-card__title a:focus-visible {
	color: #ed1b45;
}

.om-news-card__title a:focus-visible {
	outline: none;
}

.om-news-card:focus-within {
	outline: 2px solid #ed1b45;
	outline-offset: 2px;
}

.om-news-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid #eee;
	font-size: 12px;
	color: #888;
}

.om-news-card__read {
	font-size: 13px;
	font-weight: 600;
	color: #ed1b45;
	text-align: right;
}

.om-news-pagination .page-numbers.current {
	background: #ed1b45;
	border-color: #ed1b45;
}

.om-news-pagination a.page-numbers {
	background: #fff;
}

.om-news-pagination a.page-numbers:hover,
.om-news-pagination a.page-numbers:focus-visible {
	border-color: #ed1b45;
	color: #ed1b45;
}

.om-news-empty {
	padding: 20px 0;
	text-align: center;
}

@media (max-width: 991px) {
	.om-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.om-news-band {
		padding: 35px 0 50px;
	}

	.om-news-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-bottom: 22px;
	}

	.om-news-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.om-news-card__logo {
		height: 90px;
	}

	.om-news-card:hover,
	.om-news-card:focus-within {
		transform: none;
	}
}

/* ---------- Blog sidebar block (matches .blog-trending) ---------- */

.blog-news {
	margin-bottom: 24px;
	padding: 24px 22px 18px;
	background: #fff;
	border-top: 3px solid #ed1b45;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.blog-news .om-section-head {
	margin-bottom: 18px;
}

.blog-news .om-section-head .om-section-head__title {
	font-size: 22px;
}

.blog-news-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
	border-top: 1px solid #ececec;
}

.blog-news-item:first-child {
	padding-top: 0;
	border-top: 0;
}

.blog-news-logo {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 48px;
	padding: 5px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e6e6e6;
}

.blog-news-logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

.blog-news-wordmark {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	color: #222;
	word-break: break-word;
}

.blog-news-body {
	min-width: 0;
}

.blog-news .blog-news-title {
	margin: 0 0 6px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
}

.blog-news-title a {
	color: #222;
	text-decoration: none;
}

.blog-news-title a:hover,
.blog-news-title a:focus {
	color: #ed1b45;
}

.blog-news-meta {
	display: block;
	font-size: 12px;
	color: #8a8a8a;
}

.blog-news-foot {
	display: flex;
	justify-content: flex-end;
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid #ececec;
}
