/**
 * Hebahan Kuliah — Carousel shortcode style.
 *
 * Self-contained: unlike the grid/magazine/timeline archive styles, this
 * does not depend on archive-grid.css or any `.hk-archive--*` ancestor
 * class, so [hebahan_kuliah style="carousel"] works correctly even if no
 * other listing style has ever been loaded on the page.
 */

.hk-carousel {
	position: relative;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	max-width: 420px;
	margin: 0 auto;
}

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

.hk-carousel__viewport {
	overflow: hidden;
	border-radius: 16px;
}

.hk-carousel__track {
	display: flex;
	transition: transform 400ms ease;
	will-change: transform;
}

.hk-carousel__slide {
	flex: 0 0 100%;
	min-width: 0;
}

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

.hk-carousel__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 0.5px solid #e6eaee;
	text-decoration: none;
	color: inherit;
}

.hk-carousel__media {
	position: relative;
	aspect-ratio: 3 / 4;
	background: #f0f4f8;
	overflow: hidden;
	flex-shrink: 0;
}
.hk-carousel__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}
.hk-carousel__media-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 64px;
	background: linear-gradient(160deg, #1d6f42, #155a36);
	color: rgba(255,255,255,0.5);
}
.hk-carousel__chip {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 12px;
	background: rgba(255,255,255,0.95);
	color: #1d6f42;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 999px;
	backdrop-filter: blur(4px);
}

.hk-carousel__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.hk-carousel__date { font-size: 12px; color: #7d8896; font-weight: 500; }
.hk-carousel__sep { opacity: 0.4; margin: 0 4px; }
.hk-carousel__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
	color: #1a2332;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hk-carousel__loc { font-size: 12px; color: #7d8896; }

/* ── Mini countdown — same visual language as the other listing styles ──── */

.hk-carousel .hk-card-countdown {
	margin-top: 4px;
	padding-top: 10px;
	border-top: 0.5px solid #f0f0f5;
}
.hk-carousel .hk-card-countdown__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	text-align: center;
}
.hk-carousel .hk-card-countdown__cell {
	background: #f7f8fa;
	border-radius: 8px;
	padding: 6px 4px;
}
.hk-carousel .hk-card-countdown__num {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #1d6f42;
	line-height: 1;
	font-feature-settings: 'tnum';
}
.hk-carousel .hk-card-countdown__label {
	display: block;
	font-size: 9px;
	font-weight: 600;
	color: #7d8896;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: 3px;
}

/* ── Arrows ─────────────────────────────────────────────────────────────── */

.hk-carousel__arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 0;
	background: rgba(255,255,255,0.92);
	color: #1d6f42;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(20,30,50,0.15);
	transition: opacity 150ms ease, transform 150ms ease;
	z-index: 2;
}
.hk-carousel__arrow:hover {
	transform: translateY(-50%) scale(1.06);
}
.hk-carousel__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}
.hk-carousel__arrow--prev { left: 10px; }
.hk-carousel__arrow--next { right: 10px; }

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

.hk-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
}
.hk-carousel__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	border: 0;
	background: #d7dce2;
	padding: 0;
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease;
}
.hk-carousel__dot.is-active {
	background: #1d6f42;
	transform: scale(1.3);
}

@media (max-width: 480px) {
	.hk-carousel { max-width: 100%; }
}
