@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f8fff5;
  color: #222;
}

/* NAVBAR */
.navbar {
  background-color: #1f6000;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 55px;
  height: 55px;
}

.logo .text h2 {
  font-size: 20px;
  color: white;
}

.logo .text p {
  font-size: 13px;
  color: #d0ffd0;
}

nav ul {
  display: flex;
  gap: 25px;
}

nav ul a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

nav ul a.active {
  color: #f3ffaf;
}

/* CONTENT */
main {
  padding-top: 120px;
}

h2 {
  text-align: center;
  color: #1f6000;
  margin-bottom: 20px;
}

/* FORM */
form {
  max-width: 700px;
  margin: 0 auto;
  background: #e9f9e7;
  padding: 25px 30px;
  border-radius: 15px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

form input[type="text"],
form textarea,
form input[type="file"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1.5px solid #c5eac2;
  border-radius: 10px;
  font-size: 15px;
}

form button {
  background-color: #1f6000;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

form button:hover {
  background-color: #155000;
}

/* GRID BERITA */
.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 40px 60px;
}

.card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: 0.3s;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h3 {
  color: #1f6000;
  margin: 10px 15px 5px;
}

.card p {
  color: #444;
  font-size: 14px;
  margin: 0 15px 15px;
  text-align: justify;
}

.hapus {
  display: inline-block;
  background: #ff4d4d;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin: 0 15px 15px;
}

.hapus:hover {
  background: #d63b3b;
}

/* FOOTER */
.footer {
  background: #1f6000;
  color: white;
  padding: 40px 60px;
  margin-top: 50px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logo-footer {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo-footer img {
  width: 60px;
  height: 60px;
}
.contact p {
  font-size: 14px;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 30px;
    flex-wrap: wrap;
  }

  nav ul {
    gap: 15px;
    font-size: 13px;
  }
}

