/* =====================================================
   Serenity Blog Carousel Widget
   ===================================================== */

.sbc-wrapper {
	position: relative;
	overflow: hidden;
	padding-bottom: 48px; /* space for dots */
}

/* ── Track ── */
.sbc-track-outer { overflow: hidden; }

.sbc-track {
	display: flex;
	gap: 24px;
	transition: transform 500ms cubic-bezier(.4,0,.2,1);
	will-change: transform;
}

.sbc-slide {
	flex: 0 0 auto;
	min-width: 0;
}

/* ── Card ── */
.sbc-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 280ms ease, box-shadow 280ms ease;
}

.sbc-card.sbc-hover-lift:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* ── Image ── */
.sbc-card-image-link { display: block; }

.sbc-card-image {
	width: 100%;
	height: 220px;
	overflow: hidden;
	position: relative;
	border-radius: 12px 12px 0 0;
}

.sbc-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}

.sbc-hover-zoom:hover .sbc-card-image img {
	transform: scale(1.06);
}

/* ── Badge ── */
.sbc-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: #c9a96e;
	color: #fff;
	border-radius: 4px;
	line-height: 1.4;
}

/* Badge overlaid on image */
.sbc-card-image .sbc-badge {
	position: absolute;
	top: 14px;
	left: 14px;
}

.sbc-badge-inline {
	margin-bottom: 10px;
}

/* ── Card Body ── */
.sbc-card-body {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* ── Title ── */
.sbc-card-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 10px;
}

.sbc-card-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 200ms ease;
}

.sbc-card-title a:hover { color: #c9a96e; }

/* ── Meta ── */
.sbc-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
	color: #888;
	margin-bottom: 10px;
}

.sbc-meta svg {
	width: 13px;
	height: 13px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 3px;
}

.sbc-meta-sep { opacity: 0.4; }

/* ── Excerpt ── */
.sbc-excerpt {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
	margin: 0 0 14px;
	flex: 1;
}

/* ── Read More ── */
.sbc-read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #c9a96e;
	text-decoration: none;
	letter-spacing: 0.04em;
	margin-top: auto;
	transition: gap 200ms ease, color 200ms ease;
}

.sbc-read-more:hover { gap: 10px; }

.sbc-read-more svg {
	width: 14px;
	height: 14px;
}

/* ── Arrows ── */
.sbc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(calc(-50% - 24px)); /* offset for dots height */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #fff;
	border: 1.5px solid #1a1a1a;
	border-radius: 50%;
	cursor: pointer;
	color: #1a1a1a;
	transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
	z-index: 10;
	padding: 0;
}

.sbc-arrow svg {
	width: 18px;
	height: 18px;
	display: block;
	pointer-events: none;
}

.sbc-arrow:hover {
	background: #c9a96e;
	color: #fff;
	border-color: #c9a96e;
}

.sbc-arrow.disabled {
	opacity: 0.35;
	pointer-events: none;
}

.sbc-arrow-prev { left: 0; }
.sbc-arrow-next { right: 0; }

/* When arrows present, inset the track slightly */
.sbc-wrapper:has(.sbc-arrow) .sbc-track-outer {
	padding: 0 56px;
}

/* ── Dots ── */
.sbc-dots {
	position: absolute;
	bottom: 8px;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.sbc-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(0,0,0,0.2);
	cursor: pointer;
	transition: background 250ms ease, transform 250ms ease, width 250ms ease;
	padding: 0;
	border: none;
}

.sbc-dot.active {
	background: #c9a96e;
	transform: scale(1.2);
	width: 20px;
	border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.sbc-wrapper:has(.sbc-arrow) .sbc-track-outer { padding: 0 44px; }
}

@media (max-width: 768px) {
	.sbc-arrow { display: none; }
	.sbc-wrapper:has(.sbc-arrow) .sbc-track-outer { padding: 0; }
	.sbc-card-image { height: 180px !important; }
}

/* ── Editor ── */
.elementor-editor-active .sbc-track { transition: none; }
