/*Post Slider Start*/
.post-slider{
	display: flex;
	flex-direction: column;
	padding: var(--side-padding);
	padding-top: 100px;
	padding-bottom: 100px;
	background-repeat: no-repeat;
	background-size: cover;
	position: relative;
}

.post-slider__content-wrapper{
	display: flex;
	flex-direction: column;
	width: 100%;
}

.post-slider__content-wrapper:has(.post-slider__sortby){
	flex-direction: row;
}

.post-slider__overlay{
	display: flex;
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1;
}

.post-slider__head{
	display: flex;
	flex-direction: column;
	width: 25%;
	margin-right: 40px;
	z-index: 2;
}

h2.post-slider__header{
	color: white;
	text-transform: uppercase;
	font-family: var(--header-font);
	transition: 0.2s ease;
}

h2.post-slider__header:hover{
	color: var(--action-green);
}

.post-slider__foot{
	display: none;
	margin-top: 30px;
	z-index: 2;
}

.post-slider__sortby--text{
	color: white;
	font-family: var(--body-font);
	font-size: var(--body-size);
	font-weight: var(--body-weight);
}

.post-slider__sortby--links{
	display: flex;
	flex-wrap: wrap;
	gap: 6px 4px;
}

.post-slider__sortby--link{
	color: black;
	background-color: white;
	border-radius: 9999px;
	padding: 4px 8px;
	width: fit-content;
	font-size: 13px;
	transition: 0.2s ease;
}

.post-slider__sortby--link:hover{
	background-color: var(--action-green);
	color: white;
}

.post-slider__button, .post-slider__post--button{
	margin-top: 20px;
	background-color: var(--accent-color);
	border-radius: 9999px;
	text-align: center;
	display: flex;
	justify-content: center;
	width: 250px;
	padding: 10px 20px;
	color: white;
	transition: 0.2s ease;
}
.post-slider__slider-wrap{
	width: 75%;
	position: relative;
	z-index: 2;
}
.post-slider__posts{
	display: flex;
	height: 100%;
}

.post-slider__posts:not(.swiper){
	gap: 30px;
	width: 75%;
}

.post-slider__posts:not(.swiper) .post-slider__post:nth-child(4){
	display: none;
}

.post-slider__post{
	background-color: white;
	border-radius: 20px;
	overflow: hidden;
	border: white solid 2px;
	display: flex;
	flex-direction: column;
	height: auto;
	width: 33%;
}

.post-slider__post--image img{
	object-fit: cover;
	object-position: top center;
	height: 100%;
}

.post-slider__post--content{
	padding: 10px 20px 20px;
	display: flex;
	flex-direction: column;
	height: 100%;
}

h3.post-slider__post--title{
	font-size: var(--accent-header-size);
	font-family: var(--header-font);
	line-height: var(--accent-header-height);
}

.post-slider__post--excerpt{
	font-family: var(--body-font);
	font-size: var(--body-size);
	line-height: var(--body-height);
}

.post-slider__post--tags{
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.post-slider__post--tags a{
	color: white;
	background-color: var(--charcoal);
	font-size: 13px;
	padding: 4px 8px;
	border-radius: 9999px;
	transition: 0.2s ease;
}

.post-slider__post--tags a::before{
	content: "#";
}

.post-slider__post--tags a:hover{
	background-color: var(--action-green);
}

.post-slider__post--button{
	margin-top: auto;
	margin-inline: auto;
}

/*slider styles*/
.post-slider__button--prev{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M169.4 297.4C156.9 309.9 156.9 330.2 169.4 342.7L361.4 534.7C373.9 547.2 394.2 547.2 406.7 534.7C419.2 522.2 419.2 501.9 406.7 489.4L237.3 320L406.6 150.6C419.1 138.1 419.1 117.8 406.6 105.3C394.1 92.8 373.8 92.8 361.3 105.3L169.3 297.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 80% auto;
  background-position: center;
  background-color: #FFFFFF98;
  border-radius: 9999px;
  height: 30px;
  width: 30px;
  overflow: visible;
	left: -5%;
}

.post-slider__button--prev::after{
	content: "";
}

.post-slider__button--next{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M471.1 297.4C483.6 309.9 483.6 330.2 471.1 342.7L279.1 534.7C266.6 547.2 246.3 547.2 233.8 534.7C221.3 522.2 221.3 501.9 233.8 489.4L403.2 320L233.9 150.6C221.4 138.1 221.4 117.8 233.9 105.3C246.4 92.8 266.7 92.8 279.2 105.3L471.2 297.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 80% auto;
  background-position: center;
  background-color: #FFFFFF98;
  border-radius: 9999px;
  height: 30px;
  width: 30px;
	right: -5%;
}

.post-slider__button--next::after{
	content: "";
}

.post-slider__pagination.swiper-pagination-bullets{
	bottom: -30px;
}

.post-slider__pagination .swiper-pagination-bullet{
	background-color: white;
	width: 30px;
	border-radius: 10px;
	height: 5px;
	opacity: .5;
}

.post-slider__pagination .swiper-pagination-bullet-active{
	background-color: var(--action-green);
	opacity: 1;
}

@media(width > 1920px){
	.post-slider__content-wrapper{
		max-width: 1650px;
		margin-inline: auto;
	}
}

@media(width < 1440px){
	.post-slider__content-wrapper:has(.post-slider__sortby){
		flex-direction: column;
	}
	
	.post-slider__head{
		width: 100%;
		margin-bottom: 30px;
	}
	
	.post-slider__head .post-slider__sortby{
		display: none;
	}
	
	.post-slider__head .post-slider__button{
		display: none;
	}
	
	.post-slider__foot{
		display: flex;
		flex-direction: column;
	}
	
	.post-slider__foot .post-slider__sortby--text{
		font-family: var(--accent-font);
		font-weight: var(--accent-header-weight);
	}
	
	.post-slider__button{
		height: fit-content;
	}
	
	.post-slider__posts{
		width: 100%;
	}
	.post-slider__slider-wrap{
		width: 100%;
	}
	
	.post-slider__posts:not(.swiper) .post-slider__post:nth-child(4){
		display: flex;
	}
	
	.post-slider__posts:not(.swiper){
		width: 100%;
	}
	
	.post-slider__post{
		width: 25%;
	}
	
	.post-slider__post--excerpt{
		font-size: 13.5px;
		line-height: 16px;
	}
	
	a.post-slider__post--button{
		max-width: 100%;
	}
}

@media(max-width: 1280px){
	.post-slider__posts:not(.swiper) {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
	
	.post-slider__posts:not(.swiper) .post-slider__post{
		width: 100%;
	}
	
}

@media(1050px < width < 1250px){
	.post-slider__button--prev{
		left: -4%;
	}
	
	.post-slider__button--next{
		right: -4%;
	}
}

@media(max-width: 1050px){
	.post-slider{
		gap: 15px;
		padding-block: 50px;
	}
	
	.post-slider__posts:not(.swiper){
		gap: 15px;
	}
	
	.post-slider__post--content{
		padding-inline: 12px;
	}
}

@media(max-width: 768px){
	.post-slider{
		gap: 12px;
	}
	
	.post-slider__head{
		width: 100%;
	}
	
	.post-slider__posts:not(.swiper){
		gap: 12px;
		grid-template-columns: repeat(1, 1fr);
		min-height: 500px;
	}
	
	
	.post-slider__posts .swiper-wrapper{
		height: auto;
	}
	
	.post-slider__button--prev, .post-slider__button--next{
		display: none;
	}
}

@media(max-width: 500px){
	.post-slider__post{
		min-height: 400px;
	}
}

/*Post Slider End*/