.bouyin-slider {
	width: 100%;
	padding-bottom: 34px; /* room for the scrollbar track below the cards */
}

.bouyin-slide {
	height: clamp(280px, 30vw, 380px);
	border-radius: 14px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-color: #1e1e1e; /* fallback if a slide has no image */
	display: flex;
	align-items: flex-end;
	position: relative;
	cursor: grab;
}

.bouyin-slide:active {
	cursor: grabbing;
}

.bouyin-slide.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1) 55%, transparent 75%);
}

.bouyin-slide-overlay {
	position: relative;
	z-index: 1;
	padding: 26px 28px;
	color: #ffffff;
}

.bouyin-slide-divider {
	width: 32px;
	height: 3px;
	margin-bottom: 12px;
}

.bouyin-slide-heading {
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 10px;
	color: #ffffff;
}

.bouyin-slide-desc {
	font-size: 0.9rem;
	line-height: 1.5;
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.9);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bouyin-slide-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bouyin-slide-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.85rem;
	border-radius: 6px;
	border: 1.5px solid transparent;
	transition: opacity 0.2s ease;
}

.bouyin-slide-btn:hover {
	opacity: 0.85;
}

/* Fallback colours if a slide has no Button Colour set */
.bouyin-slide-btn-solid {
	background-color: #046bd2;
	border-color: #046bd2;
	color: #ffffff;
}

.bouyin-slide-btn-outline {
	background-color: transparent;
	border-color: #ffffff;
	color: #ffffff;
}

/* Thin, draggable scrollbar track -- matches Prezzee's slide indicator */
.bouyin-slider .swiper-scrollbar {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 2px;
}

.bouyin-slider .swiper-scrollbar-drag {
	background: rgba(255, 255, 255, 0.75);
	border-radius: 2px;
	cursor: grab;
}

.bouyin-slider .swiper-scrollbar-drag:active {
	cursor: grabbing;
}

@media (max-width: 640px) {
	.bouyin-slide {
		height: clamp(340px, 78vw, 420px);
	}
	.bouyin-slide-overlay {
		padding: 20px 22px;
	}
	.bouyin-slide-heading {
		font-size: 1.2rem;
	}
}
