/* ========== GLOBAL ========== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4faf7;
  color: #1a1a1a;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s, color 0.3s;
}

h1.judul-halaman {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #1e88e5;
  margin: 30px 0 20px;
}

/* ========== 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;
  transition: background-color 0.3s;
}

.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;
}

.logo-hijau {
  color: #43a047;
}

.navbar-icons a {
  margin-left: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
  border: none !important;
  background: transparent;
}

.navbar-icons a:hover,
.navbar-icons a.active {
  color: #00a86b;
}

/* ========== RESPONSIVE NAVBAR ========== */
.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: #f4faf7;
    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;
    text-align: left;
  }

  .navbar-icons a.active {
    font-weight: 700;
    color: #1e88e5;
    background-color: #b3e5fc;
  }
}

#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;
}

/* ========== SECTION TITLE ========== */
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: #2e7d32;
  margin: 40px 0 20px;
  padding: 0 30px;
}

/* ========== MODUL LIST ========== */
.modul-list ul {
  padding: 0 30px 30px;
  list-style: none;
}

.modul-list li {
  margin-bottom: 10px;
}

.modul-list a {
  color: #1e88e5;
  text-decoration: none;
  font-weight: 500;
}

.modul-list a:hover {
  text-decoration: underline;
}

/* ========== TABEL ========== */
.table-container {
  padding: 0 30px 40px;
  overflow-x: auto;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.table-container th,
.table-container td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.table-container thead {
  background-color: #e0f2f1;
}

.table-container th {
  color: #2e7d32;
  font-weight: 600;
}

.table-container tr:hover {
  background-color: #f9f9f9;
}

/* ========== FORM PENDAFTARAN ========== */
.form-pendaftaran {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 30px 40px;
}

.form-pendaftaran input,
.form-pendaftaran button {
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

.form-pendaftaran button {
  background-color: #43a047;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-pendaftaran button:hover {
  background-color: #388e3c;
}

/* ========== VIDEO EDUKASI CARD ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  padding: 0 30px 40px;
}

.video-edukasi-card {
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(60px);
}

.video-edukasi-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #388e3c;
  margin-bottom: 10px;
}

.video-edukasi-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  font-weight: 400;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #888;
  background-color: #e0f2f1;
  margin-top: auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  h1.judul-halaman {
    font-size: 22px;
    margin: 20px 0;
  }

  .form-pendaftaran input,
  .form-pendaftaran button {
    font-size: 14px;
  }

  .table-container th,
  .table-container td {
    padding: 10px 14px;
    font-size: 14px;
  }

  .navbar-icons {
    width: 85%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1.judul-halaman {
    font-size: 20px;
    margin: 18px 0 10px;
  }

  .section-title {
    font-size: 18px;
    margin: 30px 0 15px;
    padding: 0 16px;
  }

  .modul-list ul {
    padding: 0 16px 20px;
  }

  .modul-list a {
    font-size: 14px;
  }

  .table-container {
    padding: 0 16px 30px;
  }

  .table-container th,
  .table-container td {
    padding: 8px 10px;
    font-size: 13px;
  }

  .form-pendaftaran {
    padding: 0 16px 30px;
    gap: 12px;
  }

  .form-pendaftaran input,
  .form-pendaftaran button {
    font-size: 14px;
    padding: 10px 14px;
  }

  .news-grid {
    padding: 0 16px 30px;
    gap: 14px;
  }

  .video-edukasi-card {
    padding: 14px;
  }

  .video-edukasi-card h3 {
    font-size: 15px;
  }

  .video-edukasi-card p {
    font-size: 13px;
  }

  .navbar-icons a {
    font-size: 14px;
    padding: 12px 10px;
  }

  .hamburger {
    font-size: 22px;
  }

  footer {
    font-size: 12.5px;
    padding: 14px;
  }
}

/* ========== FADE IN UP ANIMASI URUT ========== */
.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; }
.news-grid .video-edukasi-card:nth-child(4) { animation-delay: 0.4s; }
.news-grid .video-edukasi-card:nth-child(5) { animation-delay: 0.5s; }
.news-grid .video-edukasi-card:nth-child(6) { animation-delay: 0.6s; }
.news-grid .video-edukasi-card:nth-child(7) { animation-delay: 0.7s; }
.news-grid .video-edukasi-card:nth-child(8) { animation-delay: 0.8s; }
.news-grid .video-edukasi-card:nth-child(9) { animation-delay: 0.9s; }
.news-grid .video-edukasi-card:nth-child(10) { animation-delay: 1s; }

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
