/* ---------------- Hero Slider ---------------- */
#hero.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
}

#hero .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: 0.7s ease-in-out;
}

#hero .slide.active {
  opacity: 1;
  position: absolute;
}

#hero .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Caption */
#hero .caption {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

#hero .caption h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
}

#hero .caption p {
  font-size: clamp(16px, 2vw, 22px);
  margin-top: 10px;
}

/* Tombol Navigasi Slider */
#hero .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  z-index: 20;
  backdrop-filter: blur(3px);
}
#hero .nav-btn:hover {
  background: rgba(0,0,0,0.6);
}

#hero .prev { left: 20px; }
#hero .next { right: 20px; }

/* Hover Effects Global */
.hover-shadow {
  transition: all 0.3s ease;
}
.hover-shadow:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===== Berita Section ===== */
.berita-card {
  transition: all 0.3s ease-in-out;
  border: 1px solid #e0f2e9;
  background: #fff;
}
.berita-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  border-color: #4caf50;
}
.berita-card img {
  transition: transform 0.4s ease;
}
.berita-card:hover img {
  transform: scale(1.05);
}
.section-title h2 {
  font-size: clamp(20px, 2vw, 32px);
}

.berita-card .card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0.75rem 0.75rem 0 0;
}

@media (max-width: 768px) {
  .berita-card .card-img-top { height: 180px; }
}

@media (max-width: 576px) {
  .berita-card .card-img-top { height: 150px; }
}

/* Counter Box */
.count-box {
  flex: 1;
  width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
}
.count-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
/* ================== Section Pendaftaran ================== */
.daftar-section {
    background: linear-gradient(rgba(0, 40, 20, 0.6), rgba(0, 40, 20, 0.7)),
                url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?w=1600');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: #fff;
    position: relative;
}

.daftar-content {
    max-width: 800px;
    margin: auto;
    animation: fadeInUp 1.2s ease;
}

.daftar-title {
    font-size: clamp(28px, 3vw, 48px);
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.daftar-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 35px;
    line-height: 1.6;
    color: #e6ffe6;
}

.btn-daftar {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    background: #4CAF50;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-daftar:hover {
    background: #43a047;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
