.hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-radius: 18px;
	background: radial-gradient(120% 90% at 10% 10%, #e9f2ff 0%, #ffffff 60%);
	border: 1px solid #e6eefc;
	padding: 30px;
}

@media (max-width:900px) {
	.hero-grid {
		grid-template-columns: 1fr
	}
}

.h-title {
	font-size: 38px;
	line-height: 1.15;
	margin: 0 0 10px
}

.h-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap
}

.hero-illus {
	aspect-ratio: 4/3;
	background: #eef2ec;
	border-radius: 18px;
	display: grid;
	place-items: center;
	color: #556147;
	font-weight: 600
}

/* ----- Slider layout ----- */
.hero-slider {
	position: relative
}

.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .6s ease
}

.hero-slide.active {
	position: relative;
	opacity: 1
}

/* Dots */
.hero-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
}

.hero-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	cursor: pointer;
	opacity: 0.6;
}

.hero-dot.active,
.hero-dot:hover {
	background: var(--color-primary, #7c8d5a);
	opacity: 1;
}


/* Typewriter caret */
.h-sub {
	min-height: 1.6em;
	color: var(--muted,#6b7280);
	margin: 0 0 18px;
	position: relative;
	display: block;
	max-width: 90%;
	white-space: normal;
	word-wrap: break-word;
	text-align: left;
	font-size: 15px;
}

.h-sub.typewriter::after {
	content: "";
	display: inline-block;
	width: 1px;
	height: 1em;
	margin-left: 3px;
	background: #6b7280;
	animation: caretBlink 1s steps(1) infinite;
}

@keyframes caretBlink {
	50% {
		opacity: 0
	}
}

/* Responsif font h-sub jika perlu */
@media (max-width:768px) {
	.h-title {
		font-size: 32px
	}

	.h-sub {
		font-size: 14px;
		line-height: 1.4
	}
}

@media (max-width:480px) {
	.h-title {
		font-size: 28px
	}
}

.hero-slider {
	position: relative
}

.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .6s ease
}

.hero-slide.active {
	position: relative;
	opacity: 1
}

.hero-dots {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 14px
}

.hero-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c9d2c0;
	cursor: pointer;
	border: 0;
}

.hero-dot.active {
	background: var(--color-primary, #7c8d5a);
}

/* Prev/Next */
.hero-nav {
	position: absolute;
	bottom: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 0;
	background: #ffffffcc;
	cursor: pointer;
	display: grid;
	place-items: center;
	font-size: 18px;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-50%) scale(.96);
	transition: opacity .2s, visibility .2s, background .2s, transform .18s cubic-bezier(.2, .8, .2, 1);
}

.hero-slide:hover .hero-nav,
.hero-slider:hover .hero-nav,
.hero-slider:focus-within .hero-nav,
.hero-nav:focus-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(-50%) scale(1);
}

.hero-nav:hover {
	background: #fff
}

.hero-nav:active {
	transform: translateY(-50%) scale(1.12)
}

.hero-nav.prev {
	left: 8px
}

.hero-nav.next {
	right: 8px
}

@keyframes navPop {
	0% {
		transform: translateY(-50%) scale(1)
	}

	60% {
		transform: translateY(-50%) scale(1.14)
	}

	100% {
		transform: translateY(-50%) scale(1)
	}
}

.hero-nav.pulse {
	animation: navPop .22s ease-out
}

@media (max-width:600px) {
	.hero-nav {
		width: 32px;
		height: 32px;
		font-size: 16px
	}
}

@media (hover:none) {
	.hero-nav {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(-50%);
	}
}

.hero-grid {
	align-items: center;
}


/* Container */
.hero-slider {
	position: relative;
	overflow: hidden;
}

.hero-slide {
	transition: opacity .45s ease;
}

.hero-slide.active {
	opacity: 1;
	pointer-events: auto;
}

.hero-slide .hero-grid {
	display: grid;
	grid-template-columns: 1.25fr .75fr;
	gap: 24px;
	width: 100%;
}

.h-title {
	margin: 0 0 10px
}

.hero-slider .pill {
  accent-color: auto;
  display: inline-block;
  padding: 0;
  color: var(--barik-700);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* Responsif */
@media (max-width: 900px) {
	.hero-slide .hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-illus {
		margin: 0 auto;
	}
}

@media (max-width: 600px) {
	.hero-slide {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.hero-slide .hero-grid	 {
		gap: 0 !important;
	}

	.hero-illus {
		max-width: 100%;
		max-height: 44vh;
	}

	.h-sub {
		max-height: 100%;
		overflow: hidden;
	}
}


@media (max-width:480px) {
	.h-sub {
		max-height: 100%;
		overflow: hidden;
	}
}
