/* Ruang Bestari Home Hero Slider V1 — isolated public styles. */

.rb-homepage__container > .rb-hero-slider:first-child {
	margin-top: 0;
}

.rb-hero-slider {
	position: relative;
	min-width: 0;
}

.rb-hero-slider__viewport {
	min-width: 0;
	overflow: hidden;
	border-radius: 24px;
}

.rb-hero-slider__track {
	display: flex;
	align-items: stretch;
	width: 100%;
	transform: translate3d(0, 0, 0);
	transition: transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.rb-hero-slider__slide.rb-school-cta {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	margin: 0 !important;
}

.rb-hero-slider__slide[aria-hidden="true"] {
	pointer-events: none;
}

.rb-hero-slider__controls {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 6;
	display: none;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 4px;
	border: 1px solid rgba(9, 76, 78, 0.14);
	border-radius: 999px;
	background: rgba(255, 250, 244, 0.92);
	box-shadow: 0 8px 24px rgba(25, 28, 31, 0.12);
	backdrop-filter: blur(10px);
}

.rb-hero-slider.is-ready .rb-hero-slider__controls {
	display: flex;
}

.rb-hero-slider__arrow,
.rb-hero-slider__toggle,
.rb-hero-slider__dot {
	margin: 0;
	border: 0;
	font-family: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.rb-hero-slider__arrow,
.rb-hero-slider__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 50%;
	background: transparent;
	color: #094c4e;
	line-height: 1;
	transition:
		background 180ms ease,
		color 180ms ease,
		transform 180ms ease;
}

.rb-hero-slider__arrow {
	font-size: 23px;
	font-weight: 500;
}

.rb-hero-slider__toggle {
	font-size: 11px;
	font-weight: 800;
}

.rb-hero-slider__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 3px;
}

.rb-hero-slider__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border-radius: 999px;
	background: rgba(9, 76, 78, 0.28);
	transition:
		width 220ms ease,
		background 220ms ease,
		transform 180ms ease;
}

.rb-hero-slider__dot.is-active {
	width: 22px;
	background: #0f9599;
}

.rb-hero-slider__arrow:hover,
.rb-hero-slider__toggle:hover {
	background: #094c4e;
	color: #fff;
	transform: translateY(-1px);
}

.rb-hero-slider__dot:hover {
	background: #094c4e;
	transform: scale(1.12);
}

.rb-hero-slider__arrow:focus-visible,
.rb-hero-slider__toggle:focus-visible,
.rb-hero-slider__dot:focus-visible {
	outline: 3px solid rgba(253, 170, 1, 0.48);
	outline-offset: 2px;
}

.rb-hero-slider.is-dragging .rb-hero-slider__track {
	transition: none;
}

@media (max-width: 700px) {
	.rb-hero-slider__controls {
		top: 292px;
		right: 16px;
		bottom: auto;
	}
}

@media (max-width: 440px) {
	.rb-hero-slider__controls {
		right: 12px;
	}

	.rb-hero-slider__arrow,
	.rb-hero-slider__toggle {
		width: 28px;
		height: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rb-hero-slider__track,
	.rb-hero-slider__arrow,
	.rb-hero-slider__toggle,
	.rb-hero-slider__dot {
		transition: none !important;
	}
}

