/* === Reset dasar === */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100%;
  background-color: #f8f9fa;
}

/* === Navbar === */
.navbar {
  background-color: #198754; /* hijau bootstrap */
}

/* === Hero Section dengan background pasar === */
.container.text-center.py-5 {
  background: url('images/pasar-tradisional.jpg') no-repeat center center/cover;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  position: relative;
}

/* overlay gelap biar teks jelas */
.container.text-center.py-5::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.container.text-center.py-5 h1,
.container.text-center.py-5 p,
.container.text-center.py-5 a {
  position: relative;
  z-index: 2;
}

/* === Grid Gambar bawah (padi, petani, sayuran) === */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
  background: #fff;
}

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.image-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-card:hover img {
  transform: scale(1.05);
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-weight: bold;
}

/* === Footer === */
footer {
  background-color: #198754;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
}
