.posts-tabs {
	padding-block: 20px;
}

/* .posts-tabs__container {
	max-width: 1270px;
	padding-inline: 20px;
	margin-inline: auto;
} */

 .posts-tabs__hader {
	&>:not(:last-child) {
		margin-bottom: 32px !important;
	}

	&:not(:last-child) {
		margin-bottom: 24px;
	}
} 

.posts-tabs__title {
	text-align: center;
	text-transform: uppercase;
}

.posts-tabs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	list-style: none;
	padding-left: 0;
}

/* .posts-tabs__item {} */

button.posts-tabs__button {
	padding: 10px 12px;
	display: grid;
	place-items: center;
	border-radius: 64px;
	text-align: center;
	font-family: "Poppins", sans-serif;
	border: 1px solid #E1E6E8;
	background-color: #FFF;
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.21;
	min-height: 42px;
	text-transform: none;
	outline: none !important;
}

@media (any-hover:hover) {
	button.posts-tabs__button.posts-tabs__button:hover {
		border-radius: 64px;
		background-color: #144041;
		border-color: #144041;
		border-width: 1px;
	}
}

button.posts-tabs__button.posts-tabs__button:focus,
button.posts-tabs__button.posts-tabs__button:active,
button.posts-tabs__button.posts-tabs__button--active {
	border-width: 1px;
	border-radius: 64px;
	background-color: #144041;
	border-color: #144041;
	color: #FFF;
}

.posts-tabs__body>:not(:last-child) {
	margin-bottom: 40px;
}

.posts-tabs__row {
	display: grid;
	gap: 28px;
}

.posts-tabs__block-item {
	display: none;
	gap: 40px;
}

.posts-tabs__block-item--active {
	display: grid;
}

.tab-item {
	display: flex;
	flex-direction: column;
	position: relative;
	min-height: 385px;
}

.tab-item__image-wrap {
	display: contents;
}

.tab-item__image {
	aspect-ratio: 1 / 1;
	width: 100%;
	max-width: 100%;
	object-fit: cover;
}

.tab-item__content {
	background-color: white;
	color: black;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
	padding: 28px;
	flex: 1 1 auto;

	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tab-item__badge {
	position: absolute;
	width: fit-content;
	height: fit-content;
	top: 0;
	transform: translateY(-99%);
	left: 33px;
	background-color: #fff;
	font-size: 13px;
	line-height: 15px;
	color: black;
	padding: 6px 13px;
	display: flex;
	align-items: center;
	gap: 8px;

	border-top-left-radius: 6px;
	border-top-right-radius: 6px;

	& img,
	& svg {
		flex-shrink: 0;
		width: 18px;
		height: 18px;
		/* display: none; */
	}
}

.tab-item:not(:has(.tab-item__image-wrap)) .tab-item__content .tab-item__badge {
	transform: translateY(0);
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;

}

.tab-item__badge.tab-item__badge--news {
	background-color: #FFAA9A;
}

.tab-item__badge.tab-item__badge--business {
	background-color: #C7DCFF;
}

.tab-item__title {
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.tab-item__title a {
	margin: 0;
	border-color: #fff !important;
	border-bottom: 2px solid;
	transition: border-color 0.3s ease;

}

.tab-item__title a:hover {
	border-color: var(--color) !important;
}

/* first row */
.posts-tabs__row .tab-item__content {
	border-radius: 6px;
	margin: -75px 15px 0;
	min-height: 150px;
	padding: 33px;
}


/* masonry  */
.posts-tabs__masonry {
	/* display: grid;
	grid-gap: 28px;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	grid-auto-flow: dense; */
	gap: 28px;
	column-count: 1;
}

.posts-tabs__masonry .tab-item__image {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.posts-tabs__tags {
	display: inline-block;
}

.tab-item,
.posts-tabs__tags {
	break-inside: avoid;
	width: 100%;
}

.posts-tabs__masonry>:not(:last-child) {
	margin-bottom: 28px;
}

.tags-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 22px 16px;
	padding: 28px;
	background-color: #C7DCFF;
	border-radius: 6px;
}

.tags-list__item {
	flex: 1 1 auto;
}

.tags-list__link {
	box-shadow: none;
	text-decoration: none;
	color: black;
	font-size: 13px !important;
	letter-spacing: 0.5px !important;
	line-height: 38px;
	background-color: white;
	justify-content: center;
	width: unset !important;
	width: 100% !important;
	display: flex;
	padding: 0px 20px;
	border-radius: 6px;
}

@media (any-hover:hover) {
	.tags-list__link {
		transition: background-color 0.3s ease;
	}

	.tags-list__link:hover {
		background-color: rgb(241, 241, 241);
	}
}

@media (min-width:768px) {
	.posts-tabs__hader {
		&>:not(:last-child) {
			margin-bottom: 32px;
		}

		&:not(:last-child) {
			margin-bottom: 24px;
		}
	}

	button.posts-tabs__button {
		padding: 14px 20px;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.4;
		min-height: 54px;
	}

	.tab-item__image {
		aspect-ratio: 621 / 373;
	}

	.posts-tabs__row {
		grid-template-columns: repeat(2, 1fr);
	}

	.posts-tabs__masonry {
		column-count: 2;
	}
}


@media (min-width:1024px) {
	.posts-tabs__masonry {
		column-count: 3;
	}
}