/* --- Reset --- */
body {
  margin: 0 !important;
  padding-top: 0 !important;
  font-family: 'Poppins', sans-serif;
}

/* --- Navbar --- */
.transparent-navbar {
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

.navbar.scrolled,
.navbar.show-background {
  background-color: #0b4122 !important; /* hijau gelap */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.navbar .nav-link {
  color: #fff !important;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover {
  color: #a5ffcb !important; /* hijau muda */
}

.navbar-brand img {
  height: 40px;
  transition: filter 0.3s ease;
}

.navbar {
  margin-bottom: 0 !important;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: url("../img/bg-hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-top: 0 !important;
  padding-top: 0 !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 50, 0, 0.55); /* hijau tua transparan */
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* --- Section Scroll Offset --- */
section {
  scroll-margin-top: 70px;
}



/* --- Manfaat Section --- */
.object-fit-cover {
  object-fit: cover;
}

.card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
}

.card img {
  border-bottom: 4px solid #198754;
}

/* --- Responsif --- */
@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 0 !important;
  }
}

/* --- Footer --- */
.footer {
  background-color: #0b4122; /* hijau gelap sama dengan navbar */
  color: #fff;
}

.footer p, .footer small {
  margin: 0;
}

/* --- Hero Khusus Halaman Pengguna --- */
/* --- Hero Users (lebih pendek, pakai background sama) --- */
.hero-users {
  position: relative;
  min-height: 45vh; /* lebih pendek dari hero utama */
  background: url("../img/bg-hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  padding-top: 70px; /* agar tidak tertimpa navbar */
}
.hero-users::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 50, 0, 0.55); /* hijau tua transparan */
  z-index: 0;
}

.hero-users .container {
  position: relative;
  z-index: 1;
}


/* --- Kartu Pengguna (lebih kecil & rapat) --- */
#pengguna .card {
  border-radius: 10px;
  transition: transform 0.3s ease;
}

#pengguna .card:hover {
  transform: translateY(-5px);
}

#pengguna .card-body {
  font-size: 0.85rem;
}

#pengguna h6 {
  font-size: 0.9rem;
  font-weight: 600;
}
