html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", sans-serif;
}

main {
  flex: 1;
}

footer {
  background-color: #2e7d32;
  color: white;
  text-align: center;
  padding: 1px;
}

/* Header/Navbar */
.navbar {
  background-color: #2e7d32;
  padding: 15px 0;
  color: white;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  margin: 0;
}

.nav-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.nav-links li a.active,
.nav-links li a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 40px 20px 20px;
  background-color: #e8f5e9;
}

.hero-section h2 {
  margin: 0;
  font-size: 28px;
  color: #2e7d32;
}

/* Logo & Header */
.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  background-color: white;
  padding: 5px;
}

.header-kiri {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
}

.header-teks {
  color: white;
  margin: 0;
  padding: 0;
  justify-content: left;
  line-height: 1.2; /* NORMAL supaya tidak tumpuk */
}
.header-teks h1,
.header-teks h3,
.header-teks h4,
.header-teks p {
  margin: 0; /* hilangkan margin */
  padding: 2px 0; /* kasih sedikit padding biar ga terlalu nempel */
  line-height: 1.1; /* agak rapat */
}

/* Responsiveness */
@media (max-width: 768px) {
  .header-kiri {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    margin-top: 10px;
    gap: 10px;
  }

  .highlight img {
    height: auto;
    width: auto;
  }

  .berita-container {
    padding: 10px 20px;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
}

/* Highlight Section */
.highlight {
  background: linear-gradient(to right, #118d49, #6cce8b);
  color: white;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-radius: 10px;
  margin-bottom: 30px;
}
.highlight-text {
  flex: 1 1 400px;
  padding-right: 20px;
}
.highlight-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.highlight img {
  flex: 1 1 300px;
  max-width: 50%;
  border-radius: 10px;
  margin-top: 10px;
}

/* Berita */
.berita-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 5px 70px;
}
.berita-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.berita-card:hover {
  transform: translateY(-5px);
}
.berita-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.berita-card .konten {
  padding: 15px;
  flex: 1;
}
.berita-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}
.berita-card p {
  font-size: 14px;
  color: #555;
}
.baca-btn {
  margin-top: 10px;
  display: inline-block;
  color: black;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
}

.baca-btn:hover {
  color: #0a5e2b;
}

.judul-link {
  color: black; /* Warna hitam */
  text-decoration: none; /* Hilangkan garis bawah */
  font-weight: bold;
  transition: color 0.2s ease;
}

.judul-link:hover {
  color: #43d15f; /* Warna saat hover */
}

@media (max-width: 768px) {
  .header-teks h1 {
    font-size: 20px;
  }

  .header-teks h3 {
    font-size: 16px;
  }

  .header-teks h4 {
    font-size: 14px;
  }

  .header-teks p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .header-teks h1 {
    font-size: 18px;
  }

  .header-teks h3 {
    font-size: 15px;
  }

  .header-teks h4 {
    font-size: 13px;
  }

  .header-teks p {
    font-size: 11px;
  }
}
