.research-post-news-filter-wrapper {
	margin: 0 0 2rem;
}

.ubf-feed-heading {
	margin: 0 0 1rem;
}

.ubf-feed-heading--center {
	text-align: center;
}

.ubf-feed-heading--inline {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.ubf-feed-title {
	margin: 0;
}

.ubf-feed-title--center {
	text-align: center;
}

.ubf-feed-title--inline {
	margin: 0;
	white-space: normal;
}

.ubf-feed-subhead {
	margin: 0.35rem 0 0;
	color: #5b5b5b;
	font-size: 0.95rem;
	line-height: 1.5;
}

.ubf-feed-subhead--center {
	text-align: center;
}

.ubf-feed-rule {
	margin: 0.9rem 0 0;
	border: 0;
	border-top: 1px solid #d8d2ca;
}

.research-post-news-search-row {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.research-post-news-search-container {
	position: relative;
	display:flex;
	flex: 0 1 420px;
	width: 100%;
	max-width: 420px;
	margin-left: auto;
}

.ubf-search-input {
	width: 100%;
	min-height: 54px;
	padding: 0 3rem 0 1rem;
	border: 1px solid #d6d6d6;
	border-radius: 6px;
	font-size: 1rem;
}

.ubf-search-icon {
	position: absolute;
	top: 50%;
	right: 1rem;
	transform: translateY(-50%);
	color: #be0000;
	font-size: 1rem;
	line-height: 1;
	pointer-events: none;
}

.ubf-search-input:focus {
	outline: 2px solid #be0000;
	outline-offset: 2px;
}

.research-post-news-filter-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border: 1px solid #be0000;
	border-radius: 6px;
	background: #fff;
	color: #be0000;
	cursor: pointer;
}

.research-post-news-filter-toggle svg {
	display: block;
	width: 24px;
	height: 24px;
}

.research-post-news-icon-close {
	display: none;
}

.research-post-news-filter-toggle.is-open .research-post-news-icon-filter {
	display: none;
}

.research-post-news-filter-toggle.is-open .research-post-news-icon-close {
	display: inline-flex;
}

.research-post-news-filter-panel {
	display: none;
	gap: 0.75rem 0;
	padding: 1.5rem;
	background: #f8f6f3;
	border: 1px solid #e4ddd6;
	border-radius: 10px;
}

.research-post-news-filter-panel.active {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

.research-post-news-date-block,
.research-post-news-source-block,
.research-post-news-filter-actions {
	flex: 0 0 100%;
}

.research-post-news-filter-title {
	margin: 0.35rem 0 0.75rem;
	font-size: 1.1rem;
}

.research-post-news-date-options,
.research-post-news-source-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.research-post-news-year-option {
	display: inline-flex;
	gap: 0.45rem;
	align-items: center;
	font-size: 0.95rem;
}

.research-post-news-source-options {
	gap: 0;
}

.research-post-news-source-options .research-post-news-year-option {
	position: relative;
	display: inline-block;
	margin: 4px 8px 4px 0;
	padding: 4px 12px 4px 16px;
	border: 2px solid #d9d9d9;
	border-radius: 4px;
	background-color: #fff;
	color: #47494a;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

.research-post-news-source-options .research-post-news-year-option:hover,
.research-post-news-source-options .research-post-news-year-option:focus-within {
	border-color: #be0000;
	color: #be0000;
}

.research-post-news-source-options .research-post-news-year-option input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.research-post-news-source-options .research-post-news-year-option span {
	display: inline-block;
	padding-right: 0;
	color: inherit;
}

.research-post-news-source-options .research-post-news-year-option input[type="checkbox"]:checked + span {
	padding-right: 14px;
	color: #000;
}

.research-post-news-source-options .research-post-news-year-option.is-checked {
	border-color: #be0000;
	color: #000;
}

.research-post-news-source-options .research-post-news-year-option input[type="checkbox"]:checked + span::after {
	content: "\00d7";
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
}

.research-post-news-filter-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.75rem;
	justify-content: flex-start;
}

.research-post-news-btn-primary,
.research-post-news-btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1rem;
	border: 0;
	border-radius: 4px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.research-post-news-btn-primary {
	background: #be0000;
	color: #fff;
}

.research-post-news-btn-ghost {
	background: #222;
	color: #fff;
}

.research-unews-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.ubf-feed.ubf-grid-cols-1 .research-unews-card-grid {
	grid-template-columns: 1fr;
}

.ubf-feed.ubf-grid-cols-2 .research-unews-card-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ubf-feed.ubf-grid-cols-4 .research-unews-card-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.research-unews-card {
	min-width: 0;
}

.research-unews-card__inner {
	height: 100%;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.research-unews-card__image {
	aspect-ratio: 16 / 9;
	background: #ececec;
}

.research-unews-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.research-unews-card__img.is-placeholder {
	object-fit: contain;
	object-position: center center;
}

.research-unews-card__meta {
	padding: 1.2rem 1.2rem 1.4rem;
}

.research-unews-card__date-source {
	margin: 0 0 0.75rem;
	color: #666;
	font-size: 0.92rem;
}

.research-unews-card__title {
	margin: 0 0 0.75rem;
	font-size: 1.2rem;
	line-height: 1.3;
	font-weight: 700;
}

.research-unews-card__title a {
	color: #111;
	text-decoration: none;
}

.research-unews-card__title a:hover,
.research-unews-card__title a:focus {
	color: #be0000;
}

.research-unews-card__excerpt {
	margin: 0;
	color: #333;
	line-height: 1.6;
}

.ubf-no-results {
	margin-top: 1rem;
}

.ubf-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 2rem;
}

.ubf-pagination__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.9rem;
	border: 1px solid #d6d6d6;
	border-radius: 6px;
	background: #fff;
	color: #111;
	text-decoration: none;
	font-weight: 700;
}

.ubf-pagination__link:hover,
.ubf-pagination__link:focus {
	border-color: #be0000;
	color: #be0000;
}

.ubf-pagination__link.is-active {
	background: #be0000;
	border-color: #be0000;
	color: #fff;
}

.ubf-clear-link {
	text-decoration: none;
	text-align: center;
}

.screen-reader-text,
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 900px) {
	.ubf-feed.ubf-grid-cols-4 .research-unews-card-grid,
	.research-unews-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.research-unews-card-grid {
		grid-template-columns: 1fr;
	}

	.research-post-news-search-row {
		gap: 0.75rem;
		align-items: center;
	}

	.research-post-news-search-container {
		flex: 1 1 auto;
		max-width: none;
		margin-left: 0;
	}

	.ubf-feed-title--inline {
		flex: 1 1 100%;
		white-space: normal;
	}
}
