/* Main posts shortcode for homepage */
.posts-section__items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
	gap: 25px;
}

@media screen and (max-width: 992px) {
	.posts-section__items {
		grid-template-columns: 1fr;
		gap: 25px 0;
	}
}

/* Posts building shortcode for homepage */
.posts-section-building__items--wrapper .post__item {
	padding-right: 20px;
	padding-top: 20px;
	border-right: 0.5px solid #70787A;
}

.posts-section-building {
	padding: 0 20px;
}

.posts-section-building__top {
	padding-bottom: 24px;
	position: relative;
}

.posts-section-building__top::after {
	left: 0;
	content: '';
	position: absolute;
	bottom: 0;
	width: 100vw;
	height: 0.5px;
	background: #70787A;
	margin-left: calc(50% - 50vw);
}

.posts-section-building__tabs {
	display: flex;
	align-items: center;
	gap: 0 32px;
}

.posts-section-building__tabs span {
	color: var(--neutral-100, #101E21);
	font-family: "eUkraine Head";
	font-size: 14px;
	font-style: normal;
	font-weight: 200;
	line-height: normal;
	text-transform: uppercase;
	display: inline-block;
	width: auto;
	padding: 10px 0;
	cursor: pointer;
}

.posts-section-building__tabs span.active {
	border-bottom: 3px solid var(--main-1100, #BE4D00);
}

.posts-section-building__slider--first,
.posts-section-building__slider--second {
	padding: 0 0 0 20px;
}

.posts-section-building__slider--first,
.posts-section-building__slider--second {
	/* border-right: 0.5px solid #70787A; */
	border-left: 0.5px solid #70787A;
}

.swiper-building-nav .swiper-button-next,
.swiper-building-nav .swiper-button-prev,
.swiper-building-nav .swiper-button-next-second,
.swiper-building-nav .swiper-button-prev-second {
	position: unset;
	width: auto;
	right: unset;
	left: unset;
	margin: 0;
	color: unset;
	border-radius: 50%;
	border: 0.5px solid #000;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
}

.swiper-building-nav .swiper-button-next svg,
.swiper-building-nav .swiper-button-prev svg,
.swiper-building-nav .swiper-button-next-second svg,
.swiper-building-nav .swiper-button-prev-second svg {
	width: 24px;
	height: 24px;
}

.swiper-building-nav .swiper-button-next::after,
.swiper-building-nav .swiper-button-prev::after ,
.swiper-building-nav .swiper-button-next-second::after,
.swiper-building-nav .swiper-button-prev-second::after {
	content: unset;
}

.posts-section-building__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.swiper-building-nav {
	display: flex;
	align-items: center;
	gap: 0 24px;
}

.swiper-building-nav .swiper-button-disabled {
	opacity: .4 !important;
}

/* Main post style */
.post__item-bottom {
	padding: 24px;
}

.post__item-image {
	height: 285px;
}

.post__item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

h3.post__item-title {
	color: #101E21;
	font-family: "eUkraine Head";
	font-size: 20px;
	font-style: normal;
	font-weight: 200;
	line-height: 130%; /* 26px */
	display: -webkit-box;       /* Використовуємо для багаторядкового обрізання */
	-webkit-line-clamp: 3;     /* Обмежуємо текст трьома рядками */
	-webkit-box-orient: vertical; /* Вказуємо вертикальну орієнтацію */
	overflow: hidden;          /* Приховуємо текст, який не вміщається */
	text-overflow: ellipsis;   /* Додаємо три крапки (...) */
	max-height: 80px;          /* Максимальна висота для трьох рядків */
	height: 80px;
}

.post__item-date {
	color: var(--main-1100, #BE4D00);
	font-family: "eUkraine Head";
	font-size: 12px;
	font-style: normal;
	font-weight: 200;
	line-height: normal;
	text-transform: uppercase;
	padding-left: 16px;
	border-left: 1px solid #BE4D00;
}

.post__item:hover .post__item-bottom {
	background: rgba(231, 232, 233, 0.50);
}

.post__item-link-hover {
	display: none;
}

.post__item:hover .post__item-link-default {
	display: none;
}

.post__item:hover .post__item-link-hover {
	display: flex;
	align-items: center;
}


.post__item-link-hover p {
	color: #101E21;
	font-family: "eUkraine Head";
	font-size: 14px;
	font-style: normal;
	font-weight: 300;
	line-height: normal;
	text-transform: uppercase;
	padding-left: 8px;
	margin: 0;
}

.post__item-link-hover span {
	display: flex;
}

.post__item-link {
	margin-top: 10px;
	height: 25px;;
}

.post__item-image {
	overflow: hidden;
}

.post__item-image img {
	transition: all 1s ease-in-out;
	filter: grayscale(1);
}

.post__item:hover .post__item-image img {
	transform: scale(1.2);
	filter: grayscale(0);
}

.posts-section__pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    justify-content: center;
}

.posts-section__pagination li {
    margin: 0 5px;
}

.posts-section__pagination a,
.posts-section__pagination span {
    width: 40px;
    height: 40px;
    text-decoration: none;
    border: 0.5px solid #ccc;
    color: #101E21;
    font-family: "eUkraine Head";
    font-size: 12px;
    font-style: normal;
    font-weight: 200;
    line-height: 130%;    background-color: transparent;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.posts-section__pagination a:hover {
    background-color: #BE4D00;
    color: #fff;
}

.posts-section__pagination .current {
    background-color: #BE4D00;
    color: #fff;
    font-weight: bold;
    pointer-events: none;
}

@media screen and (max-width: 992px) {
	.post__item-image {
		height: 200px;
	}
	.post__item-bottom {
		padding: 16px 16px 16px 0;
	}
}