/**
 * News listing (filter + grid + pagination).
 * Enqueued only on the News page (the static "Posts page") — see functions.php.
 * Article card styles are shared in style.css §9.
 */

/* On the News page the intro block flows straight into the listing (this file
   only loads there, so this override is scoped to the News page). */
.content-block-section {
	padding-bottom: 0;
}
.news-listing-wrap {
	padding-bottom: clamp(3rem, 6vw, 6rem);
}
.news-listing-wrap .news-filter {
	margin-top: 2rem;
}

/* ---- Filter bar ---- */
.news-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: stretch;
	margin-bottom: 2.5rem;
}
.news-filter .news-search {
	position: relative;
	flex: 1 1 260px;
}
.news-filter .news-search .bi-search {
	position: absolute;
	top: 50%;
	left: 0.9rem;
	transform: translateY(-50%);
	color: var(--fuchs-500, #918F8F);
	pointer-events: none;
}
.news-filter .news-search input {
	width: 100%;
	height: 100%;
	min-height: 46px;
	padding: 0.6rem 0.9rem 0.6rem 2.4rem;
	border: 1px solid var(--fuchs-border, #BDBCBC);
	border-radius: 8px;
	font-family: var(--fuchs-font);
	font-size: 1rem;
}
.news-filter .news-type {
	flex: 0 1 220px;
}
.news-filter .news-type select {
	width: 100%;
	min-height: 46px;
	padding: 0.6rem 2rem 0.6rem 0.9rem;
	border: 1px solid var(--fuchs-border, #BDBCBC);
	border-radius: 8px;
	font-family: var(--fuchs-font);
	font-size: 1rem;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23656263'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.8rem center;
	background-size: 14px;
	appearance: none;
	-webkit-appearance: none;
}
.news-filter .news-search input:focus,
.news-filter .news-type select:focus {
	outline: 0;
	border-color: var(--fuchs-primary, #1260A9);
	box-shadow: 0 0 0 0.2rem rgba(18, 96, 169, 0.15);
}
.news-filter .news-search-btn {
	min-height: 46px;
	padding: 0.6rem 1.8rem;
	border: 0;
	border-radius: 8px;
	background-color: var(--fuchs-dark-blue, #0F1F41);
	color: #fff;
	font-weight: var(--fuchs-fw-semibold, 600);
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out;
}
.news-filter .news-search-btn:hover,
.news-filter .news-search-btn:focus {
	background-color: #16294f;
}

/* ---- Footer: showing text + pagination ---- */
.news-footer {
	margin-top: 2.5rem;
}
.news-showing {
	color: var(--fuchs-700, #656263);
	font-size: 0.95rem;
}
.news-showing .news-showing-current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 0.35rem;
	margin: 0 0.15rem;
	border-radius: 50%;
	background-color: var(--fuchs-dark-blue, #0F1F41);
	color: #fff;
	font-weight: var(--fuchs-fw-semibold, 600);
	font-size: 0.85rem;
}

/* Pagination pills (Bootstrap .pagination re-skinned) */
.news-pagination .page-item .page-link {
	min-width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0.2rem;
	border: 1px solid var(--fuchs-border, #BDBCBC);
	border-radius: 50%;
	color: var(--fuchs-text, #231F20);
}
.news-pagination .page-item.active .page-link,
.news-pagination .page-item .page-link:hover {
	background-color: var(--fuchs-dark-blue, #0F1F41);
	border-color: var(--fuchs-dark-blue, #0F1F41);
	color: #fff;
}
.news-pagination .page-item .page-link:focus {
	box-shadow: 0 0 0 0.2rem rgba(18, 96, 169, 0.2);
}

.news-empty {
	padding: 2rem 0;
	color: var(--fuchs-700, #656263);
	font-size: 1.05rem;
}
