body {
  padding-top: 90px;
  margin: 0;
  font-family: Arial, sans-serif;
}

h2 {
  font-size: 32px;
  font-weight: bold;
  text-align: left;
  margin-left: 8%;
  color: #0a3d2c;
  text-transform: uppercase;
  margin-top: 30px;
  margin-bottom: 40px;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #0a3d2c;
  margin: 10px 0 0 0;
  border-radius: 2px;
}

a, a:visited {
  text-decoration: none;
  color: inherit;
}

/* SECTION 1: flex */
.berita-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 80px 8%;
}

.card {
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  object-fit: cover;
}

/* Ukuran gambar khusus untuk section 1 */
.utama-card img {
  height: 350px;
}

.lainnya-card img {
  height: 150px;
}

/* SECTION 2: grid */
.berita-section.grid-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 8%;
}

/* Ukuran gambar untuk grid */
.grid-layout .lainnya-card img {
  height: 180px;
}

/* Card content */
.card .info {
  padding: 12px;
}

.card .info small {
  color: #666;
  font-size: 12px;
}

.card .info p {
  margin: 5px 0 0;
  font-weight: bold;
  font-size: 16px;
  color: #000;
}

.card .info .excerpt {
  font-size: 14px;
  color: #333;
  margin-top: 15px;
  text-align: justify;
}

/* Responsive */
@media (max-width: 992px) {
  .berita-section.grid-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .berita-section {
    flex-direction: column;
    margin: 20px 5%;
  }

  .berita-section.grid-layout {
    grid-template-columns: repeat(2, 1fr);
    margin: 20px 5%;
  }

  .utama-card img {
    height: 200px;
  }

  .lainnya-card img {
    height: 120px;
  }

  .grid-layout .lainnya-card img {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .berita-section.grid-layout {
    grid-template-columns: 1fr;
  }

  .grid-layout .lainnya-card img {
    height: 120px;
  }
}
