.posts-slider,
.posts-slider__posts {
	position: relative;
}

.posts-slider__header {
	display: flex;
	align-items: flex-end;
	gap: 2rem;
	margin-bottom: 2.5rem;
	flex-wrap: wrap;
}

.posts-slider__label {
	width: 50%;
}

.posts-slider__actions {
	margin-left: auto;
	display: flex;
	justify-content: flex-end;
	flex: 0 0 auto;
}

.posts-slider__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.posts-slider__title {
	font-size: clamp(2rem, 1.8rem + 1vw, 3rem);
	font-weight: 600;
	color: var(--primary-16);
	margin: 0 0 2rem;
	line-height: 1.2;
}

.posts-slider__pagination {
	margin-top: 1.5rem;
	display: flex;
	justify-content: center;
}

.posts-slider__pagination .splide__pagination {
	position: static;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
	transform: none;
}

.posts-slider__pagination .splide__pagination__page {
	width: 1.5625rem;
	height: 0.5rem;
	border-radius: 0.25rem;
	margin: 0;
	transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	background: var(--gray-3);
	opacity: 1;
}

.posts-slider__pagination .splide__pagination__page.is-active {
	width: 4.0625rem;
	background: var(--primary-4);
	transform: none;
}

.posts-slider__pagination .splide__pagination__page:hover:not(.is-active) {
	width: 2.1875rem;
	background: var(--gray-5);
}

@media (max-width: 61.99875em) {
	.posts-slider__header {
		flex-direction: column;
		align-items: stretch;
	}

	.posts-slider__actions,
	.posts-slider__label {
		width: 100%;
	}

	.posts-slider__actions {
		margin-left: 0;
		justify-content: flex-start;
	}

	.posts-slider__title {
		font-size: 2rem;
		margin-bottom: 2rem;
	}
}
