#news-panels.status-loading {
	cursor: progress;
	position: relative;
}
#news-panels.status-loading::after {
	content: 'Loading...';
	cursor: progress;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: 200px;
	text-align: center;
	background: rgba(255,255,255,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	color: var(--clr-grey);
}
#news-panels.status-noresults::after {
	content: 'No results found. Please expand your criteria and search again.';
	font-size: 1.375rem;
	text-align: center;
	display: block;
}
#news-panels.status-error {
	background: red;
	color: white;
}
#news-panels.status-error::after {
	content: 'Some error occured';
}

#news-panels .panel-container {
	display: grid;
	gap: 35px;
	grid-template-columns: repeat(4, 1fr);
}

.news-panel {
	background-color: var(--clr-middle-grey);
	cursor: pointer;
	transition: all 0.3s;
	--news-pad-inline: 35px;
	display: flex;
	flex-direction: column;
}
.news-panel:hover {
	box-shadow: 2px 2px 5px var(--clr-grey);
}
.news-panel .news-thumb {
	width: 100%;
	padding-bottom: 75%;
	position: relative;
}
.news-panel .news-thumb img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.news-panel time {
	padding-inline: var(--news-pad-inline);
	color: var(--clr-grey);
	font-size: 1.375rem;
	padding-bottom: 20px;
	display: block;
}
.news-panel h2 {
	padding-inline: var(--news-pad-inline);
	margin-block:45px 30px;
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1;
	flex-grow: 1;
}
.news-panel h2 a {
	color: var(--clr-grey);
}
.news-panel:hover h2 a {
	color: var(--clr-thrive);
}
.news-panel p {
	padding-inline: var(--news-pad-inline);
	color: var(--clr-grey);
}
#news-panels .next-btn {
	display: block;
	margin: 50px auto;
}
.newsarticle .date-time-duration {
	padding-block: 1rem;
}
.newsarticle .date-time-duration time {
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--clr-grey);
	display: block;
}
#news-search {
	display: flex;
	flex-wrap: wrap;
	gap: 55px;
	justify-content: center;
	width: 100%;
	font-size: 1.5rem;
	font-weight: 600;
	padding: 50px var(--pad-in-1);
	margin-bottom: 50px;
	background-color: var(--clr-calm-light);
}
#news-search label {
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: var(--clr-thrive);
}
#news-search input,
#news-search select {
	border: 1px solid var(--clr-thrive);
	border-radius: 22px;
	padding: 10px 20px;
	padding-right: 20px;
	font-size: 1.2rem;
	font-weight: 400;
}
#news-search select {
	appearance: none;
	background-color: var(--clr-white);
	background-image: url(/images/icon-triangle-down.svg);
	background-repeat: no-repeat;
	background-position: right 22px center;
	background-size: 13px;
	padding-right: 40px;
}
#news-search button {
	height: fit-content;
	align-self: end;
}
@media (max-width: 1599px) {
	#news-panels .panel-container {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 1199px) {
	#news-panels .panel-container {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 767px) {
	#news-panels .panel-container {
		grid-template-columns: repeat(1, 1fr);
	}
}
@media (max-width: 639px) {
	#news-search {
		flex-direction: column;
		gap: 30px;
	}
	#news-search button {
		align-self: center;
	}
}