/**
 * Sekolah Amil Core — Event Slider ([sai-event-slider])
 * Strictly scoped inside .sai-es-wrap to prevent conflicts with Elementor or theme styles.
 */

.sai-es-wrap {
	--sai-navy: #1f2863;
	--sai-red: #e63934;
	--sai-blue: #2258a4;
	--sai-bg-light: #FAFAFA;
	--sai-card-border: #e8edf5;
	--sai-text: #1e293b;
	--sai-muted: #64748b;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--sai-text);
	line-height: 1.5;
}

.sai-es-wrap *,
.sai-es-wrap *::before,
.sai-es-wrap *::after {
	box-sizing: border-box;
}

/* Header */
.sai-es-wrap .sai-es-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.sai-es-wrap .sai-es-header-left {
	flex: 1 1 auto;
	min-width: 0;
}

.sai-es-wrap .sai-es-eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	font-style: italic;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sai-red);
}

.sai-es-wrap .sai-es-heading {
	margin: 0 0 8px;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--sai-navy);
}

.sai-es-wrap .sai-es-subtitle {
	margin: 0;
	font-size: 15px;
	color: var(--sai-muted);
	max-width: 620px;
}

.sai-es-wrap .sai-es-header-right {
	flex: 0 0 auto;
}

.sai-es-wrap .sai-es-catalog-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--sai-navy);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: opacity 0.2s ease;
}

.sai-es-wrap .sai-es-catalog-link:hover {
	opacity: 0.88;
}

.sai-es-wrap .sai-es-catalog-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: var(--sai-navy);
	color: #ffffff;
	font-size: 17px;
	line-height: 1;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.sai-es-wrap .sai-es-catalog-link:hover .sai-es-catalog-circle {
	background: var(--sai-blue);
	transform: translateX(3px);
}

/* Viewport & Track */
.sai-es-wrap .sai-es-viewport {
	overflow: hidden;
	width: 100%;
	padding: 6px 2px 14px;
	touch-action: pan-y;
}

.sai-es-wrap .sai-es-track {
	display: flex;
	width: 100%;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.sai-es-wrap .sai-es-track.is-dragging {
	transition: none;
}

.sai-es-wrap .sai-es-slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	padding: 0 2px;
}

/* Main Card */
.sai-es-wrap .sai-es-card {
	display: flex;
	align-items: stretch;
	gap: 28px;
	background: #ffffff;
	border: 1px solid var(--sai-card-border);
	border-radius: 24px;
	padding: 26px;
	box-shadow: 0 12px 32px rgba(31, 40, 99, 0.06);
}

/* Left Column: Poster (~34%) */
.sai-es-wrap .sai-es-poster-col {
	flex: 0 0 34%;
	max-width: 34%;
	display: flex;
}

.sai-es-wrap .sai-es-poster-box {
	position: relative;
	width: 100%;
	background: #f4f7fb;
	border-radius: 16px;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	min-height: 320px;
}

.sai-es-wrap .sai-es-program-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-block;
	padding: 5px 12px;
	border-radius: 8px;
	background: var(--sai-navy);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 4px 12px rgba(31, 40, 99, 0.22);
}

.sai-es-wrap .sai-es-poster-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 440px;
	object-fit: contain;
	border-radius: 10px;
	margin: 0;
}

.sai-es-wrap .sai-es-poster-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 260px;
	color: var(--sai-navy);
	font-size: 15px;
	font-weight: 700;
	opacity: 0.45;
}

/* Right Column: Detail (~66%) */
.sai-es-wrap .sai-es-detail-col {
	flex: 1 1 66%;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.sai-es-wrap .sai-es-meta-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.sai-es-wrap .sai-es-sub-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--sai-blue);
	letter-spacing: 0.02em;
}

.sai-es-wrap .sai-es-cat-pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #eef3fb;
	color: var(--sai-navy);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.sai-es-wrap .sai-es-title {
	margin: 0 0 16px;
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 800;
	line-height: 1.28;
	color: var(--sai-navy);
}

/* Speaker Box */
.sai-es-wrap .sai-es-speaker-box {
	background: #f8f9fc;
	border-left: 3px solid var(--sai-red);
	border-radius: 0 10px 10px 0;
	padding: 12px 16px;
	margin-bottom: 18px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sai-es-wrap .sai-es-speaker-label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sai-red);
}

.sai-es-wrap .sai-es-speaker-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--sai-navy);
}

.sai-es-wrap .sai-es-speaker-role {
	font-size: 13px;
	color: var(--sai-muted);
}

/* Points List */
.sai-es-wrap .sai-es-points-section {
	margin-bottom: 18px;
}

.sai-es-wrap .sai-es-section-label {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sai-red);
}

.sai-es-wrap .sai-es-points-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 20px;
}

.sai-es-wrap .sai-es-point-item {
	position: relative;
	padding-left: 16px;
	font-size: 13.5px;
	line-height: 1.45;
	color: #334155;
	margin: 0;
}

.sai-es-wrap .sai-es-point-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 7px;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--sai-blue);
}

/* Divider */
.sai-es-wrap .sai-es-divider {
	border: 0;
	border-top: 1px solid #e8edf5;
	margin: 14px 0;
	width: 100%;
}

/* 3-Column Info Grid */
.sai-es-wrap .sai-es-info-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.sai-es-wrap .sai-es-info-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.sai-es-wrap .sai-es-info-label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--sai-muted);
}

.sai-es-wrap .sai-es-info-val {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--sai-navy);
}

/* Footer: Price + CTA */
.sai-es-wrap .sai-es-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: auto;
	padding-top: 4px;
}

.sai-es-wrap .sai-es-price-block {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sai-es-wrap .sai-es-price-eyebrow {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sai-muted);
}

.sai-es-wrap .sai-es-price-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
}

.sai-es-wrap .sai-es-price-normal {
	font-size: 13px;
	color: #94a3b8;
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
}

.sai-es-wrap .sai-es-price-tag {
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8;
}

.sai-es-wrap .sai-es-price-special-wrap {
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
}

.sai-es-wrap .sai-es-price-special {
	font-size: 24px;
	font-weight: 800;
	color: var(--sai-red);
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.sai-es-wrap .sai-es-price-unit {
	font-size: 13px;
	font-weight: 600;
	color: var(--sai-muted);
}

.sai-es-wrap .sai-es-cta-btn,
.sai-es-wrap .sai-es-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 24px;
	border-radius: 12px;
	background-color: #1f2863 !important;
	color: #ffffff !important;
	opacity: 1 !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sai-es-wrap .sai-es-cta-btn:hover,
.sai-es-wrap .sai-es-cta-btn:focus-visible,
.sai-es-wrap .sai-es-cta:hover,
.sai-es-wrap .sai-es-cta:focus-visible {
	background-color: #151c4a !important;
	color: #ffffff !important;
	opacity: 1 !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(31, 40, 99, 0.25);
	outline: none;
}

.sai-es-wrap .sai-es-cta-arrow {
	font-size: 16px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.sai-es-wrap .sai-es-cta-btn:hover .sai-es-cta-arrow,
.sai-es-wrap .sai-es-cta:hover .sai-es-cta-arrow {
	transform: translateX(3px);
}

/* Bottom Navigation */
.sai-es-wrap .sai-es-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 18px;
}

.sai-es-wrap .sai-es-progress-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	max-width: 340px;
}

.sai-es-wrap .sai-es-counter-current,
.sai-es-wrap .sai-es-counter-total {
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.sai-es-wrap .sai-es-counter-current {
	color: var(--sai-navy);
}

.sai-es-wrap .sai-es-counter-total {
	color: #94a3b8;
}

.sai-es-wrap .sai-es-progress-track {
	flex: 1 1 auto;
	height: 4px;
	border-radius: 999px;
	background: #e2e8f0;
	overflow: hidden;
}

.sai-es-wrap .sai-es-progress-fill {
	height: 100%;
	border-radius: 999px;
	background: var(--sai-red);
	transition: width 0.35s ease;
}

.sai-es-wrap .sai-es-nav-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sai-es-wrap .sai-es-nav-btn {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: #ffffff;
	border: 1px solid #dbe2ee;
	color: var(--sai-navy);
	font-size: 18px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	margin: 0;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sai-es-wrap .sai-es-nav-btn:hover,
.sai-es-wrap .sai-es-nav-btn:focus-visible {
	background: var(--sai-navy);
	border-color: var(--sai-navy);
	color: #ffffff;
	outline: none;
}

/* Admin Empty Notice */
.sai-es-wrap .sai-es-empty {
	padding: 20px 24px;
	border-radius: 14px;
	background: var(--sai-bg-light);
	border: 1px dashed #cbd5e1;
	color: var(--sai-navy);
	font-size: 14px;
	text-align: center;
}

.sai-es-wrap .sai-es-empty a {
	color: var(--sai-blue);
	font-weight: 600;
	text-decoration: underline;
}

/* Responsive (< 900px) */
@media (max-width: 899px) {
	.sai-es-wrap .sai-es-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		margin-bottom: 20px;
	}

	.sai-es-wrap .sai-es-card {
		flex-direction: column;
		padding: 20px;
		gap: 20px;
		border-radius: 20px;
	}

	.sai-es-wrap .sai-es-poster-col {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
	}

	.sai-es-wrap .sai-es-poster-box {
		min-height: 220px;
	}

	.sai-es-wrap .sai-es-poster-img {
		max-height: 360px;
	}

	.sai-es-wrap .sai-es-detail-col {
		flex: 1 1 auto;
		width: 100%;
	}

	.sai-es-wrap .sai-es-points-list {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.sai-es-wrap .sai-es-info-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.sai-es-wrap .sai-es-footer {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.sai-es-wrap .sai-es-cta-btn {
		width: 100%;
	}
}
