/**
 * Simple Blog Slider — front-end styles
 */

.sbs-slider-wrapper {
	--sbs-section-bg: #f7f7f7;
	background-color: var(--sbs-section-bg);
	padding: 32px 8px;
	box-sizing: border-box;
}

.sbs-swiper {
	width: 100%;
	padding-bottom: 44px; /* room for pagination dots */
}

.sbs-swiper .swiper-wrapper {
	align-items: stretch;
}

.sbs-swiper .swiper-slide {
	height: auto;
	display: flex;
}

/* ---------- Card ---------- */

.sbs-card {
	--sbs-radius: 12px;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sbs-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.sbs-card-image {
	--sbs-img-h: 280px;
	display: block;
	width: 100%;
	height: var(--sbs-img-h);
	overflow: hidden;
	flex-shrink: 0;
	background-color: #eee;
}

.sbs-card-img,
.sbs-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.sbs-card:hover .sbs-card-img,
.sbs-card:hover .sbs-card-image img {
	transform: scale(1.06);
}

.sbs-card-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e6e6e6 0%, #f2f2f2 100%);
}

.sbs-card-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 18px 20px 20px;
}

.sbs-card-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: #1a1a1a;

	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

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

.sbs-card-title a:hover {
	text-decoration: underline;
}

.sbs-card-excerpt {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	flex-grow: 1;

	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sbs-card-btn {
	align-self: flex-start;
	display: inline-block;
	padding: 9px 20px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	background-color: #2271b1;
	color: #fff;
	border-radius: 6px;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sbs-card-btn:hover {
	opacity: 0.88;
	transform: translateY(-1px);
	color: #fff;
}

/* ---------- Swiper navigation & pagination ---------- */

.sbs-swiper .swiper-button-next,
.sbs-swiper .swiper-button-prev {
	width: 42px;
	height: 42px;
	margin-top: -21px;
	background-color: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	color: #1a1a1a;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.sbs-swiper .swiper-button-next:hover,
.sbs-swiper .swiper-button-prev:hover {
	background-color: #2271b1;
	color: #fff;
}

.sbs-swiper .swiper-button-next::after,
.sbs-swiper .swiper-button-prev::after {
	font-size: 16px;
	font-weight: 700;
}

.sbs-swiper .swiper-pagination {
	bottom: 0;
}

.sbs-swiper .swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	background-color: #ccc;
	opacity: 1;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.sbs-swiper .swiper-pagination-bullet-active {
	background-color: #2271b1;
	transform: scale(1.25);
}

/* ---------- Responsive image heights ---------- */

@media (max-width: 1024px) {
	.sbs-card-image {
		--sbs-img-h: 220px;
	}
}

@media (max-width: 600px) {
	.sbs-card-image {
		--sbs-img-h: 180px;
	}

	.sbs-swiper .swiper-button-next,
	.sbs-swiper .swiper-button-prev {
		display: none;
	}
}

.sbs-no-posts {
	text-align: center;
	color: #666;
	padding: 24px;
}
