.klb2-news-grid {
	--klb2-news-overlay-hover-tint-opacity: 0;
	--klb2-news-overlay-hover-tint-color: rgba(10, 14, 20, 0);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	overflow: visible;
	align-items: start;
}

.klb2-archive-title {
	display: block;
	margin: 0 0 24px;
	font-size: clamp(30px, 4vw, 52px);
	line-height: 1.02;
	font-weight: 700;
	color: #0f172a;
}

.klb2-news-archive {
	display: block;
}

.klb2-news-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.klb2-news-archive-item {
	min-width: 0;
}

.klb2-news-archive-empty {
	padding: 24px;
	border-radius: 20px;
	background: rgba(15, 23, 42, 0.05);
	color: #475569;
}

.klb2-news-archive-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: center;
	margin-top: 26px;
}

.klb2-news-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	background: #ffffff;
	color: #0f172a;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.klb2-news-archive-pagination .page-numbers.current,
.klb2-news-archive-pagination .page-numbers:hover,
.klb2-news-archive-pagination .page-numbers:focus {
	background: #2563eb;
	color: #ffffff;
	text-decoration: none;
}

.klb2-news-grid--has-group-titles .klb2-news-item {
	grid-row: 2;
}

.klb2-news-item {
	min-width: 0;
	overflow: visible;
	border-radius: var(--klb2-news-card-radius, 16px);
	transition:
		transform 0.28s ease,
		box-shadow 0.28s ease;
}

.klb2-news-group-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.klb2-news-group-title {
	display: block;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 600;
	color: #111827;
	min-width: 0;
}

.klb2-news-group-head--main {
	grid-column: 1 / span 3;
}

.klb2-news-group-head--fourth {
	grid-column: 4;
	gap: 6px;
}

.klb2-news-group-title--fourth {
	font-size: clamp(15px, 0.95vw, 17px);
	line-height: 1.15;
}

.klb2-news-group-head--fourth .klb2-news-group-link {
	font-size: 13px;
}

.klb2-news-group-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	flex: 0 0 auto;
	font-size: 14px;
	line-height: normal !important;
	font-weight: 500;
	color: #111827;
	text-decoration: none;
	white-space: nowrap;
	border: 0 solid transparent;
	border-radius: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	transition:
		color 0.24s ease,
		background-color 0.24s ease,
		border-color 0.24s ease,
		box-shadow 0.24s ease,
		transform 0.24s ease;
}

.klb2-news-group-link:hover,
.klb2-news-group-link:focus {
	text-decoration: none;
	transform: translateY(-1px);
}

.klb2-news-item--slot-1 {
	grid-column: 1;
}

.klb2-news-item--slot-2 {
	grid-column: 2;
}

.klb2-news-item--slot-3 {
	grid-column: 3;
}

.klb2-news-item--slot-4 {
	grid-column: 4;
}

.klb2-news-card {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: var(--klb2-news-card-radius, 16px);
	text-decoration: none;
	color: inherit;
	background: #d7dde5;
}

.klb2-news-card__image {
	position: absolute;
	inset: 0;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center;
	vertical-align: top;
	transform: scale(1);
	transition: transform 0.45s ease;
}

.klb2-news-card__image--placeholder {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.28)),
		linear-gradient(45deg, #dde5ee, #c4d0dd);
}

.klb2-news-card__overlay {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 16px 16px;
	overflow: hidden;
	z-index: 1;
}

.klb2-news-card__overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 14, 20, 0) 0%, rgba(10, 14, 20, 0.82) 72%, rgba(10, 14, 20, 0.94) 100%);
	opacity: 1;
	transition:
		opacity 0.35s ease,
		filter 0.35s ease;
	pointer-events: none;
	z-index: 0;
	filter: brightness(1);
}

.klb2-news-card__overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--klb2-news-overlay-hover-tint-color);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
	z-index: 1;
}

.klb2-news-card__overlay > * {
	position: relative;
	z-index: 2;
}

.klb2-news-card__date {
	display: block;
	font-size: 13px;
	line-height: 1.35;
	color: #ffffff;
	opacity: 0.82;
	flex: 0 0 auto;
}

.klb2-news-card__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 600;
	color: #ffffff;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	flex: 0 0 auto;
}

.klb2-news-card__excerpt-wrap {
	display: block;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(12px);
	transition:
		max-height 0.35s ease,
		opacity 0.28s ease,
		transform 0.35s ease,
		margin-top 0.35s ease;
	margin-top: 0;
	flex: 0 0 auto;
}

.klb2-news-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.88);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	max-height: calc(1.45em * 3);
	word-break: break-word;
}

.klb2-news-grid--has-zoom .klb2-news-card:hover .klb2-news-card__image {
	transform: scale(1.08);
}

.klb2-news-grid--hover-lift .klb2-news-item:hover,
.klb2-news-grid--hover-lift .klb2-news-item:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.klb2-news-grid--has-excerpt .klb2-news-card:hover .klb2-news-card__excerpt-wrap {
	max-height: calc(1.45em * 3);
	opacity: 1;
	transform: translateY(0);
	margin-top: 4px;
}

.klb2-news-card:hover .klb2-news-card__overlay::before,
.klb2-news-card:focus-visible .klb2-news-card__overlay::before {
	filter: brightness(calc(1 - (var(--klb2-news-overlay-hover-tint-opacity) * 0.55)));
}

.klb2-news-card:hover .klb2-news-card__overlay::after,
.klb2-news-card:focus-visible .klb2-news-card__overlay::after {
	opacity: var(--klb2-news-overlay-hover-tint-opacity);
}

.klb2-news-grid--overlay-disabled .klb2-news-card__overlay::before {
	opacity: 0;
}

.klb2-news-grid--overlay-disabled .klb2-news-card__overlay::after {
	opacity: 0 !important;
}

.klb2-news-grid--overlay-hover-only .klb2-news-card__overlay::before {
	opacity: 0;
}

.klb2-news-grid--overlay-hover-only .klb2-news-card:hover .klb2-news-card__overlay::before {
	opacity: 1;
}

@media (max-width: 1024px) {
	.klb2-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.klb2-news-archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.klb2-news-grid--has-group-titles .klb2-news-item {
		grid-row: auto;
	}

	.klb2-news-group-head--main,
	.klb2-news-group-head--fourth,
	.klb2-news-item--slot-1,
	.klb2-news-item--slot-2,
	.klb2-news-item--slot-3,
	.klb2-news-item--slot-4 {
		grid-column: auto;
	}
}

@media (max-width: 767px) {
	.klb2-news-grid {
		grid-template-columns: 1fr;
	}

	.klb2-news-archive-grid {
		grid-template-columns: 1fr;
	}

	.klb2-news-group-head {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}
