/* ==================================================
   ZENTRALIA BLOG
   ================================================== */

.zch-blog,
.zch-blog * {
	box-sizing: border-box;
}

.zch-blog {
	width: min(1760px, calc(100% - 64px));
	margin: 32px auto 42px;
	padding: 28px 36px 34px;
	border-radius: 20px;
	background:
		linear-gradient(
			135deg,
			#fff 0%,
			#f7f8fb 52%,
			#fff 100%
		);
}


/* ==================================================
   HEADER
   ================================================== */

.zch-blog__head {
	display: flex;
	margin-bottom: 20px;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

.zch-blog__heading {
	min-width: 0;
}

.zch-blog__heading h2 {
	margin: 0;
	color: #171727;
	font-size: clamp(24px, 2vw, 32px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.035em;
}

.zch-blog__heading p {
	margin: 6px 0 0;
	color: #747481;
	font-size: 15px;
	line-height: 1.4;
}

.zch-blog__all {
	display: inline-flex;
	min-height: 40px;
	padding: 0 4px;
	align-items: center;
	gap: 8px;
	color: #302aff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.zch-blog__all:hover,
.zch-blog__all:focus {
	color: #1710db;
}

.zch-blog__all svg,
.zch-blog-card__more svg {
	display: block;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}


/* ==================================================
   SLIDER
   ================================================== */

.zch-blog__slider-wrap {
	position: relative;
}

.zch-blog__track {
	display: grid;
	grid-auto-columns: calc((100% - 40px) / 3);
	grid-auto-flow: column;
	gap: 20px;
	padding: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.zch-blog__track::-webkit-scrollbar {
	display: none;
}


/* ==================================================
   CARD
   ================================================== */

.zch-blog-card {
	display: flex;
	min-width: 0;
	margin: 0;
	gap: 0;
	flex-direction: column;
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 18px rgb(23 23 39 / 5%);
	scroll-snap-align: start;
}


/* ==================================================
   CARD IMAGE
   ================================================== */

.zch-blog-card__image-link {
	position: relative;
	display: block;
	width: 100%;
	height: 220px;
	min-height: 220px;
	margin: 0;
	padding: 0;
	flex: 0 0 220px;
	overflow: hidden;
	border: 0;
	background: #eceff3;
	line-height: 0;
	text-decoration: none;
}

.zch-blog-card__image,
.zch-blog-card__image-link img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: top;
	object-fit: cover;
	object-position: center;
	transition: transform 250ms ease;
}

.zch-blog-card:hover .zch-blog-card__image {
	transform: scale(1.025);
}

.zch-blog-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	place-items: center;
	background:
		linear-gradient(
			135deg,
			#e9edff,
			#f7f8ff
		);
	color: #3630ff;
	font-size: 58px;
	font-weight: 800;
	line-height: 1;
}


/* ==================================================
   CARD CONTENT
   ================================================== */

.zch-blog-card__content {
	display: flex;
	width: 100%;
	min-width: 0;
	min-height: 210px;
	margin: 0;
	padding: 20px 20px 22px;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	border: 0;
	background: #fff;
}

.zch-blog-card__date {
	display: block;
	margin: 0 0 7px;
	color: #7c7c89;
	font-size: 12px;
	line-height: 1.3;
}

.zch-blog-card__title {
	display: -webkit-box;
	width: 100%;
	margin: 0;
	overflow: hidden;
	color: #171727;
	font-size: 20px;
	font-weight: 750;
	line-height: 1.25;
	letter-spacing: -0.025em;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.zch-blog-card__title a {
	color: inherit;
	text-decoration: none;
}

.zch-blog-card__title a:hover,
.zch-blog-card__title a:focus {
	color: #302aff;
}

.zch-blog-card__excerpt {
	display: -webkit-box;
	width: 100%;
	margin: 13px 0 17px;
	overflow: hidden;
	color: #4f4f5d;
	font-size: 15px;
	line-height: 1.45;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.zch-blog-card__more {
	display: inline-flex;
	margin-top: auto;
	align-items: center;
	gap: 9px;
	color: #2721e9;
	font-size: 15px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none;
}

.zch-blog-card__more:hover,
.zch-blog-card__more:focus {
	color: #1710c4;
}


/* ==================================================
   SLIDER ARROWS
   ================================================== */

.zch-blog__arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: grid;
	width: 50px;
	min-width: 50px;
	height: 64px;
	min-height: 64px;
	padding: 0;
	place-items: center;
	border: 1px solid rgb(23 23 39 / 5%);
	border-radius: 50%;
	background: #fff;
	color: #201bd7;
	box-shadow: 0 5px 20px rgb(23 23 39 / 10%);
	transform: translateY(-50%);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.zch-blog__arrow--previous {
	left: -61px;
}

.zch-blog__arrow--next {
	right: -61px;
}

.zch-blog__arrow:hover,
.zch-blog__arrow:focus {
	border-color: rgb(48 42 255 / 16%);
	background: #fff;
	color: #302aff;
}

.zch-blog__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.zch-blog__arrow svg {
	display: block;
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}


/* ==================================================
   LAPTOP
   ================================================== */

@media (max-width: 1199px) {
	.zch-blog {
		width: calc(100% - 44px);
		padding-right: 30px;
		padding-left: 30px;
	}

	.zch-blog__track {
		grid-auto-columns: calc((100% - 32px) / 3);
		gap: 16px;
	}

	.zch-blog__arrow--previous {
		left: -50px;
	}

	.zch-blog__arrow--next {
		right: -50px;
	}
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 991px) {
	.zch-blog {
		width: calc(100% - 28px);
		padding: 24px;
	}

	.zch-blog__track {
		grid-auto-columns: calc((100% - 16px) / 2);
		gap: 16px;
	}

	.zch-blog__arrow {
		width: 42px;
		min-width: 42px;
		height: 56px;
		min-height: 56px;
	}

	.zch-blog__arrow--previous {
		left: -42px;
	}

	.zch-blog__arrow--next {
		right: -42px;
	}
}


/* ==================================================
   MOBILE: 3 CARDS
   ================================================== */

@media (max-width: 767px) {
	.zch-blog {
		width: calc(100% - 12px);
		margin: 18px auto 24px;
		padding: 15px 8px 17px;
		border-radius: 12px;
	}

	/* Header */

	.zch-blog__head {
		margin-bottom: 12px;
		gap: 8px;
		align-items: flex-start;
	}

	.zch-blog__heading {
		min-width: 0;
	}

	.zch-blog__heading h2 {
		margin: 0;
		font-size: 16px;
		line-height: 1.15;
		letter-spacing: -0.03em;
	}

	.zch-blog__heading p {
		margin: 3px 0 0;
		font-size: 9px;
		line-height: 1.25;
	}

	.zch-blog__all {
		display: inline-flex;
		height: 24px;
		min-width: 0;
		min-height: 24px;
		padding: 0;
		gap: 4px;
		flex: 0 0 auto;
		font-size: 9px;
		line-height: 1;
	}

	.zch-blog__all svg {
		width: 12px;
		height: 12px;
		flex: 0 0 12px;
	}

	/* Track */

	.zch-blog__track {
		display: grid;
		width: 100%;
		grid-auto-columns: calc((100% - 16px) / 3);
		grid-auto-flow: column;
		gap: 8px;
		padding: 0;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.zch-blog__track::-webkit-scrollbar {
		display: none;
	}

	/* Card */

	.zch-blog-card {
		display: flex;
		width: 100%;
		min-width: 0;
		max-width: none;
		margin: 0;
		gap: 0;
		flex-direction: column;
		overflow: hidden;
		border-radius: 10px;
		background: #fff;
		box-shadow: 0 3px 10px rgb(23 23 39 / 5%);
		scroll-snap-align: start;
	}

	/* Image */

	.zch-blog-card__image-link {
		display: block;
		width: 100%;
		height: 88px;
		min-height: 88px;
		margin: 0 !important;
		padding: 0 !important;
		flex: 0 0 88px;
		overflow: hidden;
		border: 0 !important;
		border-radius: 10px 10px 0 0;
		background: #eceff3;
		line-height: 0 !important;
	}

	.zch-blog-card__image,
	.zch-blog-card__image-link img {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		vertical-align: top;
		object-fit: cover;
		object-position: center;
	}

	.zch-blog-card__placeholder {
		display: grid;
		width: 100%;
		height: 88px;
		margin: 0;
		padding: 0;
		place-items: center;
		font-size: 30px;
		line-height: 1;
	}

	/* Content – i lidhur direkt me fotografinë */

	.zch-blog-card__content {
		display: flex;
		width: 100%;
		min-width: 0;
		min-height: 80px;
		margin: 0 !important;
		padding: 4px 8px 10px !important;
		flex: 1;
		flex-direction: column;
		align-items: flex-start;
		border: 0 !important;
		background: #fff !important;
	}

	.zch-blog-card__date {
		margin: 0 0 4px;
		font-size: 8px;
		line-height: 1.2;
	}

	.zch-blog-card__title {
		display: -webkit-box;
		width: 100%;
		min-width: 0;
		margin: 0 !important;
		padding: 0;
		overflow: hidden;
		font-size: 11px;
		font-weight: 750;
		line-height: 1.2;
		letter-spacing: -0.02em;
		overflow-wrap: anywhere;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.zch-blog-card__title a {
		color: inherit;
		text-decoration: none;
	}

	.zch-blog-card__excerpt {
		display: -webkit-box;
		width: 100%;
		margin: 7px 0 8px;
		overflow: hidden;
		color: #4f4f5d;
		font-size: 8.5px;
		line-height: 1.3;
		overflow-wrap: anywhere;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
	}

	.zch-blog-card__more {
		display: inline-flex;
		margin: 0;
		gap: 4px;
		align-items: center;
		font-size: 9px;
		line-height: 1;
		white-space: nowrap;
	}

	.zch-blog-card__more svg {
		width: 11px;
		height: 11px;
		flex: 0 0 11px;
	}

	/* Mobile përdor swipe */

	.zch-blog__arrow {
		display: none;
	}
}


/* ==================================================
   SMALL MOBILE
   ================================================== */

@media (max-width: 390px) {
	.zch-blog {
		width: calc(100% - 8px);
		padding-right: 6px;
		padding-left: 6px;
	}

	.zch-blog__track {
		grid-auto-columns: calc((100% - 12px) / 3);
		gap: 6px;
	}

	.zch-blog-card__image-link,
	.zch-blog-card__placeholder {
		height: 82px;
		min-height: 82px;
	}

	.zch-blog-card__image-link {
		flex-basis: 82px;
	}

	.zch-blog-card__content {
		min-height: 80px;
		padding: 4px 6px 9px !important;
	}

	.zch-blog-card__title {
		font-size: 10px;
	}

	.zch-blog-card__excerpt {
		font-size: 8px;
	}

	.zch-blog-card__more {
		font-size: 8.5px;
	}
}


/* ==================================================
   REDUCED MOTION
   ================================================== */

@media (prefers-reduced-motion: reduce) {
	.zch-blog__track {
		scroll-behavior: auto;
	}

	.zch-blog-card__image {
		transition: none;
	}
}