/* ================================================================
   WPLB Projects Featured — Carousel
   ================================================================ */

.wplb-featured-wrapper {
	position: relative;
}

/* Viewport clips the track */
.wplb-featured-viewport {
	overflow: hidden;
	width: 100%;
}

/* Track — slides live here, flex in a row */
.wplb-featured-track {
	display: flex;
	align-items: stretch;
	will-change: transform;
	transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Slide wrapper — width set via JS */
.wplb-featured-slide {
	flex: 0 0 auto;
	box-sizing: border-box;
	/* gap via padding-right + negative margin on wrapper set in JS */
}

/* ================================================================
   Card
   ================================================================ */
.wplb-featured-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.wplb-featured-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Image */
.wplb-featured-card-image {
	display: block;
	overflow: hidden;
	line-height: 0;
}

.wplb-featured-card-image img {
	width: 100%;
	height: 320px;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: transform 0.4s ease;
}

.wplb-featured-card:hover .wplb-featured-card-image img {
	transform: scale(1.04);
}

/* Body */
.wplb-featured-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px;
}

/* Category badges */
.wplb-featured-card-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

/* Title */
.wplb-featured-card-title {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.wplb-featured-card-title a {
	color: inherit;
	text-decoration: none;
}

.wplb-featured-card-title a:hover {
	text-decoration: none;
}

/* Excerpt */
.wplb-featured-card-excerpt {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.65;
	color: #555;
	flex: 1;
}

/* CTA Button — full width, black */
.wplb-featured-card-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 20px;
	background-color: #000;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	margin-top: auto;
}

.wplb-featured-card-btn:hover {
	background-color: #222;
	color: #fff;
}

/* ================================================================
   Navigation — Arrows
   ================================================================ */
.wplb-featured-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	/* Shift up by half of the dots area so arrows centre on the cards */
	margin-top: -20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background-color: #000;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: background-color 0.2s, opacity 0.2s;
	padding: 0;
}

.wplb-featured-arrow:hover {
	background-color: #333;
}

.wplb-featured-arrow.is-disabled {
	opacity: 0.3;
	pointer-events: none;
}

.wplb-featured-prev { left: -22px; }
.wplb-featured-next { right: -22px; }

/* ================================================================
   Navigation — Dots
   ================================================================ */
.wplb-featured-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}

.wplb-featured-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #ccc;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
}

.wplb-featured-dot.is-active {
	background-color: #000;
	transform: scale(1.4);
}

/* ================================================================
   No posts
   ================================================================ */
.wplb-featured-no-posts {
	text-align: center;
	color: #999;
	padding: 40px 0;
}

/* ================================================================
   Responsive overrides handled via JS (slides count)
   ================================================================ */
@media (max-width: 768px) {
	.wplb-featured-prev { left: -8px; }
	.wplb-featured-next { right: -8px; }
}
