/* ================================
   Filter & Pagination
   ================================ */
.blog-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.blog-filter input,
.blog-filter select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}
.blog-filter button {
  padding: 10px 20px;
  background-color: #007e33;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.pagination a {
  padding: 8px 16px;
  background: #eee;
  text-decoration: none;
  border-radius: 6px;
  color: #333;
}
.pagination a.active {
  background-color: #007e33;
  color: #fff;
}

/* ================================
   Artikel List (Grid & Card)
   ================================ */
.content-section {
  padding: 60px 20px;
  background: linear-gradient(180deg, #f7f7f7 0%, #e8f5e9 100%);
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-post {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 300px;
  min-height: 480px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}
.blog-post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.blog-post h2 {
  font-size: 18px;
  color: #333;
  margin: 20px 20px 10px 20px;
  font-weight: 700;
  line-height: 1.4;
  min-height: 56px;
}
.blog-post h2 a {
  text-decoration: none;
  color: #333;
  position: relative;
  z-index: 2;
}
.blog-post h2 a:hover {
  color: #007bff;
}
.blog-post p {
  font-size: 14px;
  color: #555;
  margin: 0 20px 20px 20px;
  line-height: 1.6;
  flex-grow: 1;
  min-height: 72px;
}
.blog-post .card-footer {
  margin: auto 20px 20px 20px;
}
.blog-post .card-footer a {
  font-size: 14px;
  color: #007bff;
  font-weight: bold;
  text-decoration: none;
}
.blog-post .card-footer a:hover {
  text-decoration: underline;
}
.blog-post a.full-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
}

/* ================================
   Artikel Detail
   ================================ */
.detail-artikel {
  padding: 40px 20px;
  background-color: #f9f9f9;
  font-family: "Segoe UI", sans-serif;
}
.detail-artikel .container {
  max-width: 1200px;
  margin: auto;
}

.artikel-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.artikel-main {
  flex: 1 1 65%;
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.artikel-main h1 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #333;
}
.artikel-main .featured-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}
.isi-artikel p {
  font-size: 16px;
  color: #444;
  margin-bottom: 1.5em;
  line-height: 1.8;
}

.btn-kembali {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  background-color: #007b45;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s;
}
.btn-kembali:hover {
  background-color: #005e35;
}

/* Sidebar */
.artikel-sidebar {
  flex: 1 1 30%;
}
.sidebar-section {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.sidebar-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #007b45;
  border-bottom: 2px solid #007b45;
  padding-bottom: 5px;
}
.sidebar-section ul {
  list-style: none;
  padding-left: 0;
}
.sidebar-section ul li {
  margin-bottom: 10px;
}
.sidebar-section ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}
.sidebar-section ul li a:hover {
  color: #007b45;
}

/* Related Posts */
.related-posts {
  margin-top: 60px;
}
.related-posts h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #007b45;
  border-bottom: 2px solid #007b45;
  padding-bottom: 6px;
}
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.related-item {
  flex: 1 1 calc(33.333% - 20px);
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}
.related-item:hover {
  transform: translateY(-5px);
}
.related-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}
.related-item strong {
  display: block;
  font-size: 15px;
  color: #333;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 992px) {
  .artikel-main,
  .artikel-sidebar {
    flex: 1 1 100%;
  }
  .related-item {
    flex: 1 1 45%;
  }
  .artikel-main h1 {
    font-size: 24px;
  }
}
@media (max-width: 600px) {
  .detail-artikel {
    padding: 30px 15px;
  }
  .artikel-main {
    padding: 20px;
  }
  .artikel-main h1 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .isi-artikel p {
    font-size: 15px;
  }
  .btn-kembali {
    font-size: 13px;
    padding: 8px 14px;
  }
  .sidebar-section h3 {
    font-size: 16px;
  }
  .related-item {
    flex: 1 1 100%;
    padding: 12px;
  }
  .related-posts h2 {
    font-size: 20px;
  }
}
