/*News Search Start*/
.news-search__wrapper{
	display: flex;
	flex-direction: column;
  background-color: #f1f1f1;
}

.news-search__head{
	display: flex;
	padding: 20px var(--site-padding);
	background-color: white;
	align-items: center;
	justify-content: space-between;
}

.news-search__header{
	text-transform: uppercase;
}

.news-search__search{
	display: flex;
}

input[type="text"].news-search-input{
	margin-left: auto;
	margin-right: 20px;
	border: none;
	background-color: #f1f1f1;
	min-width: 250px;
	max-width: 560px;
	width: 100%;
	height: 44px;
	border-radius: 20px;
	padding: 1em;
}

.news-search__head button{
	border: none;
    cursor: pointer;
}

.news-search__results{
	display: grid;
    grid-template-columns: repeat(3, 1fr);
	flex-direction: row;
	column-gap: 10px;
	flex-wrap: wrap;
	justify-content: space-between;
	width: 75%;
	margin: auto;
	max-width: 100%;
    padding-block: 75px;
}

.news-result{
	background-color: white;
	border-radius: 20px;
	overflow: hidden;
	border: var(--tertiary-color) solid 1px;
	display: flex;
	flex-direction: column;
	height: auto;
	width: unset;
	transition: 0.25s;
	margin: 5px 0;
}

.news-result:hover{
	border-color: var(--accent-color);
}

.news-result__image{
	display: flex;
}

.news-result__image img{
	object-fit: cover;
	object-position: top center;
	height: 100%;
}

.news-result__content{
	padding: 10px 20px 20px;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.news-result__title{
	font-size: 24px;
}

.news-result__tags{
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.news-result__tags a{
	color: white;
	background-color: var(--text-color);
	font-size: 13px;
	padding: 4px 8px;
	border-radius: 9999px;
	transition: 0.2s ease;
}

.news-result__tags a::before{
	content: "#";
}

.news-result__tags a:hover{
	background-color: var(--accent-color);
}

.news-result__button{
	margin: auto auto 0 auto;
}

@media(max-width: 1440px){
	.news-search__results{
		width: 100%;
		padding-inline: var(--site-padding);
	}
}

@media(max-width: 1100px){
	.news-search__head{
		flex-direction: column;
		align-items: center;
	}
	
	.news-search__header{
		text-align: center;
		margin-bottom: 20px;
		width: 100%;
	}
	
	.news-search__results{
		grid-template-columns: repeat(2, 1fr);
	}
	
	.news-search__search{
		width: 100%;
		justify-content: center;
	}
	
	input[type="text"].news-search-input{
		width: 300px;
		margin-left: 0;
	}
	
	.news-search__button{
		margin: unset;
	}

}

@media(max-width: 768px){
	.news-result__title{
		font-size: 18px
	}
}

@media(max-width: 650px){
	.news-search__search{
		flex-direction: column;
		align-items: center;
	}
	
	input[type="text"].news-search-input{
		margin-right: 0;
		margin-bottom: 20px;
	}
	
	.news-search__results{
		grid-template-columns: repeat(1, 1fr);
	}
}

/*News Search End*/