/* ======== Artikel Container ======== */
.detail-artikel {
  padding: 40px 20px;
  background-color: #f9f9f9;
  font-family: "Segoe UI", sans-serif;
}

.detail-artikel .container {
  max-width: 1200px;
  margin: auto;
}

/* ======== Wrapper ======== */
.artikel-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* ======== Artikel Utama ======== */
.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;
}

/* ======== Tombol Kembali ======== */
.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;
  text-decoration: none;
}

/* ======== 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;
  }
}
