body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f5f5f5;
  color: #333;
}

/* Header/Navbar */
.header {
  background-color: #064635;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

.navbar {
  display: flex;
  gap: 40px;
}

.navbar a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #a3d9a5;
}

/* Search */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box input {
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  outline: none;
}

.search-box button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background-color: #a3d9a5;
  cursor: pointer;
  font-weight: bold;
}

.search-box button:hover {
  background-color: #88c88a;
}

/* Judul Halaman */
.page-title {
  text-align: center;
  padding: 30px 20px 10px;
}

/* Filter Kategori */
.filter-bar {
  text-align: center;
  padding: 10px 20px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-bar button {
  margin: 5px;
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  background: #064635;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.filter-bar button:hover {
  background: #0a6d4d;
}

/* Konten Berita */
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 40px;
}

.news-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.news-card .content {
  padding: 15px;
}

.news-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #064635;
}

.news-card .meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 14px;
  line-height: 1.5;
}

.news-card a {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  color: #064635;
}

.news-card a:hover {
  color: #0a6d4d;
}

/* Footer */
footer {
  background: #064635;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
}

/* ===================== */
/* MEDIA QUERIES */
/* ===================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
  }

  .navbar.active {
    display: flex;
  }

  .search-box {
    width: 100%;
    margin-top: 10px;
  }

  .news-container {
    padding: 15px;
    grid-template-columns: 1fr;
  }
}
