/* 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: static;
	z-index: 6;
	display: none;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	width: fit-content;
	margin: 12px auto 0;
}

.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 {
	position: absolute;
	top: calc(50% - 25px);
	z-index: 7;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(9, 76, 78, 0.14);
	background: rgba(255, 250, 244, 0.94);
	box-shadow: 0 8px 22px rgba(25, 28, 31, 0.13);
	transform: translateY(-50%);
	font-size: 23px;
	font-weight: 500;
}

.rb-hero-slider__arrow[data-rb-hero-prev] {
	left: 16px;
}

.rb-hero-slider__arrow[data-rb-hero-next] {
	right: 16px;
}

.rb-hero-slider__toggle {
	margin-left: 2px;
	border: 1px solid rgba(9, 76, 78, 0.12);
	background: #fffaf4;
	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;
}

.rb-hero-slider__arrow:hover {
	transform: translateY(calc(-50% - 1px));
}

.rb-hero-slider__toggle:hover {
	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__arrow {
		top: 170px;
	}

	.rb-hero-slider__arrow[data-rb-hero-prev] {
		left: 12px;
	}

	.rb-hero-slider__arrow[data-rb-hero-next] {
		right: 12px;
	}
}

@media (max-width: 440px) {
	.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;
	}
}
