/* ============================================================
   Halaman SDGs (/sdgs + /sdgs/{nomor}/)
   Grid 17 goal + detail kontribusi.
   ============================================================ */

/* --- Landing: grid 17 goal --- */
.sdg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.sdg-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 5px solid var(--sdg-color, #e5243b);
  border-radius: 10px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sdg-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}
.sdg-nomor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sdg-color, #e5243b);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.sdg-ikon img {
  display: block;
  width: 100%;
  height: auto;
}
.sdg-nama {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
}

/* --- Detail --- */
.sdg-title-nomor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin-right: 10px;
  padding: 0 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  vertical-align: middle;
}
.sdg-title-ikon {
  display: inline-block;
  width: 56px;
  height: 56px;
  margin-right: 10px;
  object-fit: contain;
  vertical-align: middle;
}
.sdg-section-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.sdg-news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sdg-news-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.sdg-news-thumb img {
  width: 180px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}
.sdg-news-body {
  min-width: 0;
}
.sdg-news-date {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #6b7280;
}
.sdg-news-title {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.4;
}
.sdg-news-title a {
  color: #111827;
  text-decoration: none;
}
.sdg-news-title a:hover {
  color: #1e40af;
}
.sdg-news-cat {
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
  text-decoration: none;
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .sdg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .sdg-card {
    padding: 14px 12px;
  }
  .sdg-news-item {
    flex-direction: column;
  }
  .sdg-news-thumb img {
    width: 100%;
    height: auto;
  }
}
