/* ── TZ Post Carousel Widget ─────────────────────────────────────────── */

.tz-pc-wrapper {
	position: relative;
	overflow: hidden; /* clips peek at container edge */
}

/* ── Track ───────────────────────────────────────────────────────────── */

.tz-pc-track-wrap {
	overflow: visible;
}

.tz-pc-track {
	display: flex;
	/* gap, transition, transform all managed by JS */
	will-change: transform;
	align-items: stretch;
	cursor: grab;
	user-select: none;
}

.tz-pc-track.is-dragging {
	cursor: grabbing;
}

.tz-pc-track.no-transition {
	transition: none !important;
}

.tz-pc-slide {
	/* width set by JS; flex keeps it from shrinking */
	flex-shrink: 0;
	min-width: 0;
}

/* ── Card ────────────────────────────────────────────────────────────── */

.tz-pc-card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* ── Image ───────────────────────────────────────────────────────────── */

.tz-pc-image {
	height: 260px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	flex-shrink: 0;
	border-radius: 16px 16px 0 0;
}

.tz-pc-badges {
	position: absolute;
	top: 14px;
	left: 14px;
	right: 80px; /* keep away from right edge */
}

.tz-pc-badges--no-img {
	position: static;
	padding: 16px 16px 0;
}

/* ── Badge ───────────────────────────────────────────────────────────── */

.tz-pc-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.88);
	color: #1a1a1a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 50px;
	padding: 6px 12px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	line-height: 1;
}

/* ── Content area ────────────────────────────────────────────────────── */

.tz-pc-content {
	padding: 24px 24px 28px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* ── Title ───────────────────────────────────────────────────────────── */

.tz-pc-title {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 12px;
	line-height: 1.3;
	padding: 0;
}

.tz-pc-title a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.tz-pc-title a:hover {
	opacity: 0.7;
}

/* ── Excerpt ─────────────────────────────────────────────────────────── */

.tz-pc-excerpt {
	font-size: 14px;
	color: #666666;
	line-height: 1.65;
	margin: 0 0 20px;
	flex-grow: 1;
}

/* ── CTA ─────────────────────────────────────────────────────────────── */

.tz-pc-cta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 700;
	font-size: 14px;
	color: #1a1a1a;
	text-decoration: none;
	margin-top: auto;
	transition: opacity 0.15s ease;
}

.tz-pc-cta:hover {
	opacity: 0.65;
	color: #1a1a1a;
}

.tz-pc-cta-icon {
	display: inline-flex;
	align-items: center;
	font-size: 0.9em;
}

/* ── Navigation ──────────────────────────────────────────────────────── */

.tz-pc-nav {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
}

.tz-pc-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: #ffffff;
	color: #1a1a1a;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease, opacity 0.15s ease;
	flex-shrink: 0;
	padding: 0;
}

.tz-pc-btn:hover {
	background: #f0f0f0;
}

.tz-pc-btn:disabled,
.tz-pc-btn.is-disabled {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

.tz-pc-btn svg {
	width: 16px;
	height: 16px;
	display: block;
	flex-shrink: 0;
	stroke: #1a1a1a;
}

/* ── Dots ────────────────────────────────────────────────────────────── */

.tz-pc-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.tz-pc-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: #cccccc;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease, transform 0.2s ease, width 0.2s ease;
	flex-shrink: 0;
}

.tz-pc-dot.is-active {
	background: #1a1a1a;
	transform: scale(1.3);
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.tz-pc-image {
		height: 220px;
	}
}

@media (max-width: 767px) {
	.tz-pc-image {
		height: 200px;
	}

	.tz-pc-content {
		padding: 20px 20px 24px;
	}

	.tz-pc-title {
		font-size: 16px;
	}
}
