:root {
  --bg: #0b1020;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 82px;
}

.section-alt {
  background: #f7f8fb;
}

/* HERO */
#heroCarousel {
  position: relative;
  height: clamp(520px, 72vh, 760px);
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item,
#heroCarousel .hero-slide {
  height: 100%;
}

.hero-slide {
  /* default image (kalau lupa set --hero-bg di HTML) */
  --hero-bg: url("https://picsum.photos/id/1018/1920/1080");

  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(11, 16, 32, 0.72), rgba(10, 26, 58, 0.25)),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-content {
  padding: 56px 0;
}

.hero-box {
  max-width: 720px;
}

#heroCarousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

/* Lebarin area klik panah carousel + rapihin posisi icon */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 1;
  opacity: 1;
}

#heroCarousel .carousel-control-prev {
  left: 0;
}

#heroCarousel .carousel-control-next {
  right: 0;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background-size: 100% 100%;
}

#heroCarousel .carousel-control-prev-icon {
  left: 10px;
}

#heroCarousel .carousel-control-next-icon {
  right: 10px;
}

/* Cards jurusan */
.card-soft {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-soft:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.1);
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-weight: 600;
  font-size: 12px;
}

/* Gallery */
.gallery-item {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.gallery-item img {
  height: 230px;
  object-fit: cover;
  transition: transform 0.22s ease;
}

@media (min-width: 768px) {
  .col-md-6 .gallery-item img {
    height: 480px;
  }

  .col-md-3 .gallery-item img {
    height: 230px;
  }
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
}