/* ==========================================================
   ÜMUMİ SƏHİFƏ QURULUŞU
========================================================== */

.vp-news-page,
.vp-news-page * {
	box-sizing: border-box;
}

.vp-news-page {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	color: #10264a;
	background: #f6f9fd;
}

.vp-news-container {
	width: calc(100% - 40px);
	max-width: 1320px;
	margin: 0 auto;
	padding: 28px 0 48px;
}


/* ==========================================================
   BREADCRUMB
========================================================== */

.vp-news-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 14px;
	color: #75849a;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.vp-news-breadcrumb a {
	color: #64758d;
	text-decoration: none;
	transition: color 0.2s ease;
}

.vp-news-breadcrumb a:hover {
	color: #1769e8;
}

.vp-news-breadcrumb-separator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #a1adbd;
}


/* ==========================================================
   BAŞLIQ VƏ AXTARIŞ
========================================================== */

.vp-news-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	align-items: end;
	gap: 40px;
	width: 100%;
	margin: 0 0 26px;
}

.vp-news-heading {
	min-width: 0;
}

.vp-news-title {
	margin: 0 0 9px;
	color: #10264a;
	font-size: clamp(36px, 3.5vw, 46px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.vp-news-description {
	max-width: 680px;
	margin: 0;
	color: #697991;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
}

.vp-news-search {
	position: relative;
	width: 100%;
	min-width: 0;
}

.vp-news-search-input {
	display: block;
	width: 100%;
	height: 46px;
	padding: 10px 48px 10px 15px;
	color: #10264a;
	font-size: 14px;
	line-height: 1.5;
	background: #ffffff;
	border: 1px solid #d5dfeb;
	border-radius: 7px;
	outline: none;
	box-shadow: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.vp-news-search-input::placeholder {
	color: #8b9aaf;
	opacity: 1;
}

.vp-news-search-input:hover {
	border-color: #b8c7d9;
}

.vp-news-search-input:focus {
	border-color: #1769e8;
	box-shadow: 0 0 0 3px rgba(23, 105, 232, 0.1);
}

.vp-news-search-button {
	position: absolute;
	top: 50%;
	right: 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: #16375f;
	cursor: pointer;
	background: transparent;
	border: 0;
	border-radius: 6px;
	transform: translateY(-50%);
	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

.vp-news-search-button:hover {
	color: #1769e8;
	background: #edf4ff;
}


/* ==========================================================
   ƏSAS İKİ SÜTUNLU LAYOUT
========================================================== */

.vp-news-layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	align-items: start;
	gap: 28px;
	width: 100%;
	min-width: 0;
}

.vp-news-content {
	width: 100%;
	min-width: 0;
}


/* ==========================================================
   KATEQORİYA SIDEBAR
========================================================== */

.vp-news-sidebar {
	position: sticky;
	top: 105px;
	width: 100%;
	min-width: 0;
	padding: 17px 13px;
	background: #ffffff;
	border: 1px solid #dbe4ef;
	border-radius: 9px;
	box-shadow: 0 3px 12px rgba(20, 52, 94, 0.025);
}

.vp-news-sidebar-title {
	margin: 0 0 13px;
	padding: 0 6px;
	color: #10264a;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.vp-news-category-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 5px;
	width: 100%;
	min-width: 0;
}

.vp-news-category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-width: 0;
	min-height: 43px;
	padding: 6px 8px;
	color: #53657d;
	text-align: left;
	cursor: pointer;
	background: transparent;
	border: 0;
	border-radius: 7px;
	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

.vp-news-category:hover {
	color: #1769e8;
	background: #f3f7fd;
}

.vp-news-category.is-active {
	color: #1769e8;
	background: #eaf2ff;
}

.vp-news-category-left {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.vp-news-category-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 29px;
	width: 29px;
	height: 29px;
	color: #1769e8;
	background: #edf4ff;
	border-radius: 50%;
}

.vp-news-category:nth-child(3n + 2):not(.is-active)
	.vp-news-category-icon {
	color: #17a45a;
	background: #eaf8f0;
}

.vp-news-category:nth-child(3n + 3):not(.is-active)
	.vp-news-category-icon {
	color: #ed6b2d;
	background: #fff0e8;
}

.vp-news-category:nth-child(3n + 4):not(.is-active)
	.vp-news-category-icon {
	color: #7540dc;
	background: #f0ebff;
}

.vp-news-category.is-active .vp-news-category-icon {
	color: #1769e8;
	background: #dbe9ff;
}

.vp-news-category-name {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.35;
	white-space: normal;
	overflow-wrap: anywhere;
}

.vp-news-category-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 23px;
	height: 23px;
	padding: 0 6px;
	color: #65758b;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	background: #f0f4f8;
	border-radius: 999px;
}

.vp-news-category.is-active .vp-news-category-count {
	color: #1769e8;
	background: #ffffff;
}


/* ==========================================================
   TOOLBAR
========================================================== */

.vp-news-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	min-height: 46px;
	margin: 0 0 14px;
}

.vp-news-results-count {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	color: #6b7a91;
	font-size: 13px;
	line-height: 1.5;
}

.vp-news-results-count strong {
	color: #10264a;
	font-size: 13px;
	font-weight: 700;
}

.vp-news-sort-wrapper {
	flex: 0 0 220px;
	width: 220px;
}

.vp-news-sort {
	width: 100%;
	height: 42px;
	padding: 8px 36px 8px 13px;
	color: #53657d;
	font-size: 12.5px;
	font-weight: 500;
	cursor: pointer;
	background-color: #ffffff;
	border: 1px solid #d2deeb;
	border-radius: 7px;
	outline: none;
	box-shadow: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.vp-news-sort:hover {
	border-color: #b5c5d8;
}

.vp-news-sort:focus {
	border-color: #1769e8;
	box-shadow: 0 0 0 3px rgba(23, 105, 232, 0.1);
}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

.vp-news-page a:focus-visible,
.vp-news-page button:focus-visible,
.vp-news-page input:focus-visible,
.vp-news-page select:focus-visible {
	scroll-margin-top: 100px;
}

/* ==========================================================
   XƏBƏR GRID
========================================================== */

.vp-news-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	gap: 16px;
	width: 100%;
	min-width: 0;
}

.vp-news-card {
	width: 100%;
	min-width: 0;
	height: 100%;
}

.vp-news-card-link {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: 335px;
	color: #10264a;
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #dbe5f0;
	border-radius: 9px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(19, 54, 99, 0.03);
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.vp-news-card-link:hover {
	color: #10264a;
	border-color: #adc5e8;
	box-shadow: 0 10px 24px rgba(24, 77, 145, 0.09);
	transform: translateY(-2px);
}

.vp-news-card-image {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eaf0f7;
}

.vp-news-card-body {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding: 14px 14px 39px;
}

.vp-news-card-date {
	display: block;
	margin: 0 0 8px;
	color: #718198;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.4;
}

.vp-news-card-title {
	margin: 0 0 8px;
	color: #1769e8;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}

.vp-news-card-excerpt {
	margin: 0;
	color: #6d7d93;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.vp-news-card-arrow {
	position: absolute;
	right: 13px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #1769e8;
	transition: transform 0.2s ease;
}


/* ==========================================================
   XƏBƏR ŞƏKLİ
========================================================== */

.vp-news-card-image {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eaf0f7;
}

.vp-news-card-thumbnail {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease;
}

.vp-news-card-link:hover .vp-news-card-thumbnail {
	transform: scale(1.04);
}

.vp-news-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #7b91ad;
	background:
		linear-gradient(
			135deg,
			#edf3fa 0%,
			#f8fbff 100%
		);
}


/* ==========================================================
   XƏBƏR KARTININ MƏZMUNU
========================================================== */

.vp-news-card-body {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding: 16px 16px 42px;
}

.vp-news-card-date {
	display: block;
	margin: 0 0 10px;
	color: #6f8097;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.vp-news-card-title {
	margin: 0 0 10px;
	color: #1769e8;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
	transition: color 0.2s ease;
}

.vp-news-card-link:hover .vp-news-card-title {
	color: #0e59d1;
}

.vp-news-card-excerpt {
	margin: 0;
	color: #697a91;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.vp-news-card-arrow {
	position: absolute;
	right: 15px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #1769e8;
	transition: transform 0.2s ease;
}

.vp-news-card-link:hover .vp-news-card-arrow {
	transform: translateX(4px);
}


/* ==========================================================
   KARTLARIN HÜNDÜRLÜK BALANSI
========================================================== */

.vp-news-card-title,
.vp-news-card-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vp-news-card-title {
	-webkit-line-clamp: 2;
}

.vp-news-card-excerpt {
	-webkit-line-clamp: 3;
}


/* ==========================================================
   ŞƏKİLSİZ KART ÜÇÜN ƏLAVƏ TƏNZİMLƏMƏ
========================================================== */

.vp-news-card-placeholder svg {
	opacity: 0.85;
}


/* ==========================================================
   KART DAXİLİ FOKUS VƏ HOVER DAVRANIŞI
========================================================== */

.vp-news-card-link:active {
	transform: translateY(-1px);
}

@media (hover: none) {

	.vp-news-card-link:hover {
		transform: none;
	}

	.vp-news-card-link:hover .vp-news-card-thumbnail {
		transform: none;
	}

	.vp-news-card-link:hover .vp-news-card-arrow {
		transform: none;
	}

}
/* ==========================================================
   BOŞ NƏTİCƏ
========================================================== */

.vp-news-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	min-height: 340px;
	padding: 40px 24px;
	text-align: center;
	background: #ffffff;
	border: 1px solid #dbe5f0;
	border-radius: 10px;
}

.vp-news-empty[hidden] {
	display: none !important;
}

.vp-news-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin: 0 0 18px;
	color: #1769e8;
	background: #eaf2ff;
	border-radius: 50%;
}

.vp-news-empty h2 {
	margin: 0 0 9px;
	color: #10264a;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.35;
}

.vp-news-empty p {
	max-width: 440px;
	margin: 0;
	color: #6a7a91;
	font-size: 14px;
	line-height: 1.6;
}

.vp-news-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin-top: 20px;
	padding: 10px 19px;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	background: #1769e8;
	border: 1px solid #1769e8;
	border-radius: 7px;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.vp-news-reset:hover {
	background: #0f59d0;
	border-color: #0f59d0;
	transform: translateY(-1px);
}

.vp-news-reset:focus-visible {
	outline: 3px solid rgba(23, 105, 232, 0.2);
	outline-offset: 3px;
}


/* ==========================================================
   PAGINATION
========================================================== */

.vp-news-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 0;
}

.vp-news-pagination:empty {
	display: none;
}

.vp-news-page-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	color: #51647d;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	background: #ffffff;
	border: 1px solid #d6e1ed;
	border-radius: 7px;
	transition:
		color 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.vp-news-page-button:hover:not(:disabled) {
	color: #1769e8;
	background: #f4f8ff;
	border-color: #a9c3ea;
	transform: translateY(-1px);
}

.vp-news-page-button.is-active {
	color: #ffffff;
	background: #1769e8;
	border-color: #1769e8;
}

.vp-news-page-button:disabled {
	color: #a7b3c3;
	cursor: not-allowed;
	background: #f5f7fa;
	border-color: #e1e7ee;
}

.vp-news-page-button:focus-visible {
	outline: 3px solid rgba(23, 105, 232, 0.18);
	outline-offset: 2px;
}

.vp-news-pagination-ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 38px;
	color: #7c8ca2;
	font-size: 14px;
	font-weight: 600;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1280px) {

	.vp-news-container {
		max-width: 1180px;
	}

	.vp-news-layout {
		grid-template-columns: 210px minmax(0, 1fr);
		gap: 24px;
	}

	.vp-news-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

}


@media (max-width: 1024px) {

	.vp-news-container {
		width: calc(100% - 32px);
	}

	.vp-news-header {
		grid-template-columns: minmax(0, 1fr) 280px;
		gap: 26px;
	}

	.vp-news-layout {
		grid-template-columns: 200px minmax(0, 1fr);
		gap: 20px;
	}

	.vp-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}


@media (max-width: 820px) {

	.vp-news-header {
		grid-template-columns: 1fr;
		align-items: stretch;
		gap: 18px;
	}

	.vp-news-search {
		max-width: 100%;
	}

	.vp-news-layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.vp-news-sidebar {
		position: static;
		padding: 16px;
	}

	.vp-news-category-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 7px;
	}

	.vp-news-content {
		margin: 0;
	}

}


@media (max-width: 600px) {

	.vp-news-container {
		width: 100%;
		padding: 20px 14px 32px;
	}

	.vp-news-title {
		font-size: 33px;
	}

	.vp-news-description {
		font-size: 14px;
	}

	.vp-news-header {
		margin-bottom: 22px;
	}

	.vp-news-category-list {
		grid-template-columns: 1fr;
	}

	.vp-news-toolbar {
		align-items: stretch;
		flex-direction: column;
		gap: 10px;
	}

	.vp-news-sort-wrapper {
		flex: none;
		width: 100%;
	}

	.vp-news-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.vp-news-card-link {
		min-height: 0;
	}

	.vp-news-card-body {
		padding: 14px 14px 39px;
	}

}


@media (max-width: 420px) {

	.vp-news-container {
		padding-right: 12px;
		padding-left: 12px;
	}

	.vp-news-title {
		font-size: 30px;
	}

	.vp-news-sidebar {
		padding: 14px 11px;
	}

	.vp-news-category {
		padding-right: 7px;
		padding-left: 7px;
	}

}