/* ==========================================================================
   CPRINT WP Blog Content — plain CSS (bukan Tailwind), dipasang di halaman
   antara header & footer (index.php / single.php / page.php).
   ========================================================================== */

footer {
  line-height: 1.5;
}

.cp-content * {
  box-sizing: border-box;
}

.cp-content {
  font-family: "Montserrat", sans-serif;
  color: #2c2c2a;
  max-width: 1280px;
  margin: 0px;
  padding: 40px 100px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ---- Kolom kiri: breadcrumb + posts ---- */
.cp-content__main {
  flex: 2 1 640px;
  min-width: 0;
}

.cp-breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 16px;
  font-size: 13px;
  color: #8a8a85;
}
.cp-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #c9c9c4;
}
.cp-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.cp-breadcrumb a:hover {
  color: #1e3a8a;
}
.cp-breadcrumb .is-active {
  color: #2c2c2a;
  font-weight: 500;
}

.cp-page-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e1e1c;
  margin: 0 0 24px;
}

/* ---- Kartu artikel ---- */
.cp-post {
  border-bottom: 1px solid #eee;
  padding: 24px 0;
}
.cp-post:first-child {
  padding-top: 0;
}

.cp-post__title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
}
.cp-post__title a {
  color: #1e1e1c;
  text-decoration: none;
}
.cp-post__title a:hover {
  color: #1e3a8a;
}

.cp-post__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  margin: 0 0 14px;
  font-size: 12px;
  color: #8a8a85;
}
.cp-post__meta li {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cp-post__meta a {
  color: inherit;
  text-decoration: none;
}
.cp-post__meta a:hover {
  color: #1e3a8a;
}

.cp-post__image {
  display: block;
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
}
.cp-post__image img {
  display: block;
  width: 100%;
  height: auto;
}

.cp-post__excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: #4a4a47;
  margin: 0 0 14px;
}

.cp-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a8a;
  border: 1px solid #1e3a8a;
  border-radius: 999px;
  padding: 8px 20px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.cp-btn:hover {
  background: #1e3a8a;
  color: #fff;
}
.cp-btn--hidden {
  display: none;
}

/* ---- Pagination ---- */
.cp-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.cp-pagination a,
.cp-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e5e5e2;
  font-size: 13px;
  color: #4a4a47;
  text-decoration: none;
}
.cp-pagination a:hover {
  border-color: #1e3a8a;
  color: #1e3a8a;
}
.cp-pagination .current {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
}

/* ---- Artikel terkait (single post) ---- */
.cp-related {
  margin-top: 24px;
}
.cp-related__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
}
.cp-related ul {
  list-style: disc;
  margin: 0;
  padding-left: 18px;
}
.cp-related li {
  font-size: 13px;
  margin-bottom: 8px;
}
.cp-related a {
  color: #1e3a8a;
  text-decoration: none;
}
.cp-related a:hover {
  text-decoration: underline;
}

/* ---- Sidebar ---- */
.cp-sidebar {
  flex: 1 1 280px;
  max-width: 320px;
}

.cp-widget {
  background: #f9faff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.cp-widget__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #1e1e1c;
}

.cp-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cp-tagcloud a {
  font-size: 12px;
  color: #1e3a8a;
  background: #fff;
  border: 1px solid #dbe3f5;
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
}
.cp-tagcloud a:hover {
  background: #1e3a8a;
  color: #fff;
  border-color: #1e3a8a;
}

.cp-sidebar__banner {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.cp-sidebar__banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .cp-content {
    flex-direction: column;
  }
  .cp-sidebar {
    max-width: 100%;
  }
}
