body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #cfe1e9 !important;
  color: #333; /* warna teks */
}

header {
  background-color: #1f2653;
  color: white;
  padding: 20px 50px;
}

.header-text h1 {
  margin: 0;
  font-size: 1.8rem;
}

.header-text p {
  margin: 4px 0 0;
  font-size: 1rem;
}

.hero {
  display: flex;
  justify-content: center;
  background-color: #cfe1e9;
  padding: 40px 0;
  padding-bottom: 90px;
}

.hero-banner {
  max-width: 1210px;
  width: 95%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

footer {
  background-color: #2c2f74;
  color: white;
  display: flex;
  justify-content: space-around;
  padding: 20px;
  padding-bottom: 80px;
  font-size: 20px;
}

.footer-bottom {
  background-color: #5e74c7;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 17px;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    font-size: 16px;
  }

  .footer-bottom {
    font-size: 15px;
    padding: 12px;
  }
}


.search input[type="text"] {
  margin-top: 10px;
  padding: 10px;
  width: 295px;
}

.search button {
  padding: 5px 10px;
}

.content {
  padding: 2rem;
  background-color: #e6f0f6;
  line-height: 1.8;
}

.content h2 {
  font-size: 1.8rem;
  color: #002147;
  margin-bottom: 1.5rem;
}

.timeline {
  position: relative;
  padding-left: 30px;
  margin-top: 1rem;
  border-left: 4px solid #0b5394;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.timeline-icon {
  position: absolute;
  left: -25px;
  top: 0;
  background: #0b5394;
  color: #fff;
  border-radius: 50%;
  padding: 0.4rem;
  font-size: 1.1rem;
}

.timeline-content h3 {
  font-size: 1.2rem;
  color: #0b5394;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 1.05rem;
  color: #333;
  text-align: justify;
  margin: 0;
}

@media (max-width: 768px) {
  .content {
    padding: 1rem;
  }
}
/* NEWS SECTION */
.news-section {
  padding: 40px 20px;
  background: #f7fafe;
  text-align: center;
}

.news-section h2 {
  font-size: 1.8rem;
  color: #1f2653;
  margin-bottom: 30px;
}

.news-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: calc(25% - 20px); /* Ukuran kotak berita 4 kolom */
  transition: transform 0.2s;
  margin-bottom: 20px;
}

.news-card:hover {
  transform: translateY(-6px);
}

.news-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.news-content {
  padding: 12px;
  text-align: left;
}

.news-date {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 6px;
}

.news-content h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.news-content h3 a {
  color: #0b5394;
  text-decoration: none;
}

.news-content h3 a:hover {
  text-decoration: underline;
  color: #1f2653;
}

.news-meta {
  font-size: 0.9rem;
  color: #777;
  margin-top: 8px;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 992px) {
  .news-card {
    width: calc(50% - 20px); /* 2 kolom pada layar lebih kecil */
  }
}

@media (max-width: 576px) {
  .news-card {
    width: 100%; /* 1 kolom pada layar kecil */
  }
}

/* MENGUBAH JARAK BERITA AGAR LEBIH RAPAT */
.news-card {
  margin: 0 10px 10px;
}

.news-container {
  gap: 15px; /* lebih rapat */
}

/* Mengurangi jarak bawah pada berita */
.news-card {
  margin-bottom: 15px;
}
