/* Zigzag Blog Posts for Elementor */

.zbp-posts {
	--zbp-img-w: 44%;
	--zbp-img-h: 220px;
	--zbp-row-gap: 26px;
	--zbp-col-gap: 20px;
	display: flex;
	flex-direction: column;
	gap: var(--zbp-row-gap);
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
	font-family: inherit;
}

.zbp-post {
	display: flex;
	align-items: stretch;
	gap: var(--zbp-col-gap);
	margin: 0;
}

.zbp-post--img-right {
	flex-direction: row-reverse;
}

/* ---------- Image ---------- */
.zbp-post__media {
	position: relative;
	display: block;
	flex: 0 0 calc(var(--zbp-img-w) - (var(--zbp-col-gap) / 2));
	max-width: calc(var(--zbp-img-w) - (var(--zbp-col-gap) / 2));
	min-height: var(--zbp-img-h);
	overflow: hidden;
	border-radius: 8px;
	background-color: #e9edf1;
	isolation: isolate;
}

.zbp-post__media img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	border-radius: 0 !important;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.zbp-zoom-yes .zbp-post:hover .zbp-post__media img {
	transform: scale(1.05);
}

/* ---------- Card ---------- */
.zbp-post__card {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 30px 34px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 34px rgba(30, 55, 80, .08);
}

.zbp-post__title {
	margin: 0 0 14px;
	padding: 0;
	color: #2f4a5e;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.zbp-post__title a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

.zbp-post__meta {
	line-height: 1;
}

.zbp-post__date {
	display: inline-block;
	margin-bottom: 14px;
	padding: 5px 10px;
	border-radius: 50px;
	background: #eef0f3;
	color: #2f3b45;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	line-height: 1.2;
}

.zbp-post__excerpt {
	margin: 0 0 18px;
	color: #3e4a55;
	font-size: 13px;
	line-height: 1.55;
}

.zbp-post__more {
	display: inline-flex;
	align-items: center;
	gap: .35em;
	color: #e8753a;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: color .2s ease;
}

.zbp-post__arrow {
	flex: none;
	width: .95em;
	height: .95em;
	transition: transform .25s ease;
}

.zbp-post__more:hover .zbp-post__arrow {
	transform: translateX(3px);
}

.zbp-post__title a:focus-visible,
.zbp-post__more:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- Pagination ---------- */
.zbp-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.zbp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	background: #fff;
	color: #2f4a5e;
	font-size: 14px;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(30, 55, 80, .08);
	transition: background-color .2s ease, color .2s ease;
}

.zbp-pagination .page-numbers.current,
.zbp-pagination a.page-numbers:hover {
	background: #e8753a;
	color: #fff;
}

.zbp-pagination .page-numbers.dots {
	box-shadow: none;
	background: transparent !important;
}

.zbp-empty {
	text-align: center;
	padding: 30px;
}

/* ---------- Responsive: stacking ---------- */
@media (max-width: 1024px) {
	.zbp-stack-tablet .zbp-post,
	.zbp-stack-tablet .zbp-post--img-right {
		flex-direction: column;
		gap: 0;
	}
}

@media (max-width: 767px) {
	.zbp-stack-mobile .zbp-post,
	.zbp-stack-mobile .zbp-post--img-right {
		flex-direction: column;
		gap: 0;
	}
}

@media (max-width: 1024px) {
	.zbp-stack-tablet .zbp-post__media {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
		height: var(--zbp-img-h);
		border-bottom-left-radius: 0 !important;
		border-bottom-right-radius: 0 !important;
	}
	.zbp-stack-tablet .zbp-post__card {
		border-top-left-radius: 0 !important;
		border-top-right-radius: 0 !important;
	}
}

@media (max-width: 767px) {
	.zbp-stack-mobile .zbp-post__media {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
		height: var(--zbp-img-h);
		border-bottom-left-radius: 0 !important;
		border-bottom-right-radius: 0 !important;
	}
	.zbp-stack-mobile .zbp-post__card {
		border-top-left-radius: 0 !important;
		border-top-right-radius: 0 !important;
	}
	.zbp-pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		padding: 0 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zbp-post__media img,
	.zbp-post__arrow {
		transition: none;
	}
}
