/* ========== GLOBAL ========== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4faf7;
  color: #000;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== NAVBAR ========== */
.navbar {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 12px 30px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.logo-biru {
  color: #1e88e5;
  font-weight: 800;
}

.logo-hijau {
  color: #43a047;
  font-weight: 800;
}

.navbar-icons a {
  margin-left: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #555;
  transition: color 0.3s;
  text-decoration: none;
}

.navbar-icons a:hover,
.navbar-icons a.active {
  color: #00a86b;
}

/* ========== JUDUL HALAMAN ========== */
.judul-halaman {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #1e88e5;
  margin: 30px 0 15px;
}

/* ========== DESKRIPSI HALAMAN ========== */
.deskripsi-halaman {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 16px;
  color: #000;
  padding: 0 20px;
  line-height: 1.6;
}

/* ========== BERITA GRID ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  padding: 0 30px 40px;
  flex: 1;
}

/* ========== ANIMASI MASUK ========== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ========== CARD BERITA ========== */
.video-edukasi-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  padding: 20px;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.news-grid .video-edukasi-card:nth-child(1) { animation-delay: 0.1s; }
.news-grid .video-edukasi-card:nth-child(2) { animation-delay: 0.2s; }
.news-grid .video-edukasi-card:nth-child(3) { animation-delay: 0.3s; }

.video-edukasi-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #388e3c;
  margin-bottom: 10px;
}

.video-edukasi-card p {
  font-size: 14px;
  color: #555;
  flex-grow: 1;
  line-height: 1.5;
  margin-bottom: 15px;
  font-weight: 400;
}

.video-edukasi-card a {
  text-decoration: none;
  color: #2e7d32;
  font-weight: 600;
  transition: color 0.3s;
}

.video-edukasi-card a:hover {
  color: #1b5e20;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #888;
  background-color: #e0f2f1;
  margin-top: auto;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 768px) {
  .judul-halaman {
    font-size: 22px;
    margin: 20px 0 10px;
  }

  .deskripsi-halaman {
    font-size: 14.5px;
    margin-bottom: 25px;
  }

  .news-grid {
    padding: 0 15px 30px;
    gap: 20px;
  }

  .video-edukasi-card {
    padding: 16px;
  }

  .video-edukasi-card h3 {
    font-size: 16px;
  }

  .video-edukasi-card p {
    font-size: 13.5px;
  }
}

@media (max-width: 480px) {
  .deskripsi-halaman {
    font-size: 14px;
    padding: 0 10px;
  }

  .navbar-icons {
    width: 85%;
    max-width: 200px;
  }
}

/* ========== HAMBURGER MENU ========== */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #1e88e5;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .navbar-icons {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 0;
    height: calc(100vh - 60px);
    width: 280px;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    padding: 20px 10px;
    z-index: 998;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    border-left: 1px solid #ddd;
  }

  .navbar-icons.show {
    transform: translateX(0);
  }

  .navbar-icons a {
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    color: #555;
    text-align: left;
  }

  .navbar-icons a:hover {
    background-color: #e0f2f1;
    color: #1e88e5;
  }

  .navbar-icons a.active {
    color: #1e88e5;
    font-weight: 700;
    background-color: #b3e5fc;
  }
}

/* ========== OVERLAY ========== */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 997;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#overlay.active {
  display: block;
  opacity: 1;
}
