.custom-news-page {
	background: var(--light-color);
	display: grid;
	grid-template-columns: 75% 25%;
	grid-template-rows: auto;
}

.custom-news-page .custom-news-page-featured-posts {
	background: var(--secondary-color);
	padding: 20px;
}

.custom-news-page .custom-news-page-featured-posts .news-entry-title {
	margin-bottom: 20px;
}

.custom-news-page .custom-news-page-featured-posts .custom-post-block {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.custom-news-page .custom-news-page-featured-posts .post-card {
	display: grid;
	grid-template-columns: 200px auto;
	gap: 15px;
	background-color: var(--light-color);
	padding: 15px;
}

/* If there is NO image inside .post-card, use full width */
.custom-news-page .custom-news-page-featured-posts .post-card:not(:has(img)) {
    grid-template-columns: 100%;
	gap: 0;
}

.custom-news-page .post-card .post-title {
	color: var(--dark-color);
	font-size: 1.5rem;
	font-weight: 1000;
}

.custom-news-page .post-card a {
	color: var(--dark-color);
}

.custom-news-page .post-card a:hover {
	text-decoration: underline;
}

.custom-news-page .custom-post-block .post-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin-bottom: 15px;
	border: 5px double var(--primary-color);
}

.custom-news-page .news-entry-title {
	background: var(--primary-color);
	color: var(--dark-color);
	text-align: center;
	padding: 20px;
}

.custom-entry-wrapper {
	background: var(--primary-color);
	padding: 20px;
}

.custom-entry-wrapper h2 {
	color: var(--dark-color);
	font-weight: bolder !important;
	text-align: center;
	font-size: 5rem;
	margin: 0;
	padding: 0;
}

.custom-news-page .custom-current-page {
	color: var(--dark-color);
	padding: 20px;
	text-align: right;
}

.custom-news-page .no-results {
	padding: 15px 20px;
}

.custom-news-page .navigation.pagination {
	padding: 0 20px;
}

.custom-news-page .navigation.pagination .page-numbers {
	color: var(--dark-color);
	font-weight: bolder;
	cursor: pointer;
	margin: auto 10px;
}

.custom-news-page .navigation.pagination .page-numbers:hover {
	text-decoration: underline;
}

.custom-news-page #news-sidebar {
	background: var(--primary-color);
	padding: 35px 20px;
	float: none;
	width: auto;
}

.custom-news-page #news-sidebar .et_pb_widget {
	float: none;
	margin-bottom: 35px;
}

.custom-news-page #news-sidebar li {
	list-style: none;
	margin-bottom: 20px;
}

.custom-news-page #news-sidebar h2,
.custom-news-page #news-sidebar label {
	font-size: 1.5rem;
	font-family: 'Advent Pro', sans-serif;
	text-transform: uppercase;
	font-weight: 1000;
	margin-top: 10px;
}

.custom-news-page #news-sidebar h2,
.custom-news-page #news-sidebar h3,
.custom-news-page #news-sidebar h4,
.custom-news-page #news-sidebar h5, 
.custom-news-page #news-sidebar h6,
.custom-news-page #news-sidebar p,
.custom-news-page #news-sidebar a,
.custom-news-page #news-sidebar li,
.custom-news-page #news-sidebar ul,
.custom-news-page #news-sidebar ol,
.custom-news-page #news-sidebar span,
.custom-news-page #news-sidebar label,
.custom-news-page #news-sidebar div,
.custom-news-page #news-sidebar legend {
	color: var(--dark-color);
}

.custom-news-page #news-sidebar a:hover {
	text-decoration: underline;
}

.custom-news-page #news-sidebar input {
	width: 100%;
}

.custom-news-page #news-sidebar button {
	background: var(--light-color);
	color: var(--dark-color);
	cursor: pointer;
	transition: 0.2s ease-in-out;
	display: flex;
	align-items: center;
	margin-left: 0;
	border: 1px solid var(--tertiary-color);
}

.custom-news-page .wp-block-search__input {
	border: 1px solid var(--tertiary-color);
	border-right: none;
}

.custom-news-page #news-sidebar button:hover {
	background: var(--dark-color);
	color: var(--light-color);
}

.nav-links {
	display: flex;
	gap: 5px;
}

@media (max-width: 1400px) {
	.custom-news-page .custom-post-block {
		display: grid;
		grid-template-columns: 50% 50%;
		grid-template-rows: auto;
	}
	.custom-entry-wrapper h2 {
		font-size: 4rem;
	}
}

@media (max-width: 980px) {
	.custom-news-page {
		display: block;
	}

	.custom-news-page .custom-current-page {
		text-align: center;
	}

	.custom-news-page #news-sidebar {
		border-left: none;
	}

	.custom-entry-wrapper h2 {
		font-size: 3rem;
	}

	.custom-news-page .custom-post-block,
	.custom-news-page .custom-news-page-featured-posts .custom-post-block,
	.custom-news-page .custom-post-block .post-card {
		display: block;
	}

	.custom-news-page .custom-post-block .post-card img {
		height: auto;
		object-fit: inherit;
	}
}

@media (max-width: 767px) {
	.custom-entry-wrapper h2 {
		font-size: 2rem;
	}
}

@media (max-width: 576px) {
	.custom-entry-wrapper h2 {
		font-size: 1.5rem;
	}

	.custom-news-page .custom-post-block {
		display: block;
	}
}