.hero-brand-surface {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-brand-surface.has-hero-bg {
  background: transparent;
}

.hero-brand-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-brand-bg-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-brand-surface.has-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(45, 138, 78, var(--hero-overlay-opacity, 0.72)) 0%,
    rgba(26, 92, 46, var(--hero-overlay-opacity, 0.72)) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-brand-surface.has-hero-bg > *:not(.hero-brand-bg-layer):not(.home-login-btn) {
  position: relative;
  z-index: 2;
}

.hero-brand-surface.has-hero-bg > .home-login-btn {
  position: absolute;
  z-index: 3;
}

.beranda-hero.hero-brand-surface.has-hero-bg {
  border: none;
}

.beranda-hero.hero-brand-surface.has-hero-bg h2,
.beranda-hero.hero-brand-surface.has-hero-bg .panel-desc,
.beranda-hero.hero-brand-surface.has-hero-bg .panel-desc-muted,
.beranda-hero.hero-brand-surface.has-hero-bg .beranda-hero-tagline-line {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.beranda-hero.hero-brand-surface.has-hero-bg .beranda-hero-tagline-accent {
  color: #f8ecc0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.hero-bg-preview {
  text-align: center;
  padding: 24px 18px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(165deg, #2d8a4e 0%, #1a5c2e 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 92, 46, 0.16);
}

.hero-bg-preview-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.hero-bg-preview-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.hero-bg-preview-note {
  margin: 6px 0 0;
  font-size: 0.75rem;
  opacity: 0.92;
}

.hero-bg-settings input[type='range'] {
  width: 100%;
  accent-color: #2d8a4e;
}
