/* ======== 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) {

  /* Wrapper utama */
  .artikel-wrapper {
    flex-direction: column;
    align-items: center;
  }

  /* Artikel utama & sidebar */
  .artikel-main,
  .artikel-sidebar {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Related posts wrapper */
  .related-list {
    justify-content: center;
  }

  .related-item {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
/* ===== FIX LINK PANJANG AGAR TURUN KE BAWAH ===== */
.isi-artikel,
.isi-artikel p,
.isi-artikel a,
.sidebar-section a,
.related-item a,
.related-item strong {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}


  .isi-artikel p {
    font-size: 15px;
    line-height: 1.7;
  }

}
