/* ==========================================================================
   Blog JasaDesain — daftar artikel & detail artikel (desain Pionir)
   Dipakai oleh page-blog.php, archive.php, single.php, page.php
   ========================================================================== */

/* ---------- Kotak pencarian di hero ---------- */
.jb-search {
  display: flex; gap: 10px; max-width: 460px; margin: 26px auto 0; width: 100%;
}
.jb-search input {
  flex: 1; min-width: 0; padding: 14px 18px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: #fff; font-size: 15px; font-family: inherit; outline: none; transition: all .25s;
}
.jb-search input::placeholder { color: #9aa3ad; }
.jb-search input:focus { border-color: #EF721F; background: rgba(255,255,255,.12); }
.jb-search button {
  flex: 0 0 52px; width: 52px; height: 52px; border: 0; cursor: pointer; border-radius: 50%;
  background: linear-gradient(84.25deg,#EF721F,#FFAE2F); color: #fff; font-size: 17px;
  transition: all .25s;
}
.jb-search button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(239,114,31,.35); }

/* ---------- Untuk hasil pencarian / arsip: hero tidak terlalu tinggi ---------- */
.jb-crumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  font-size: 13.5px; margin-bottom: 16px; color: #9aa3ad;
}
.jb-crumb a { color: #cfd5dc; }
.jb-crumb a:hover { color: #FFAE2F; }
.jb-crumb i { font-size: 10px; opacity: .6; }

/* ---------- Filter kategori ---------- */
.jb-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.jb-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid rgba(26,26,26,.12); background: #fff; color: #3a3f45;
  font-family: var(--title-font); font-weight: 600; font-size: 14px; transition: all .25s;
}
.jb-chip span { font-size: 12px; opacity: .6; font-weight: 500; }
.jb-chip:hover { border-color: #EF721F; color: #EF721F; transform: translateY(-2px); }
.jb-chip.active {
  background: linear-gradient(84.25deg,#EF721F,#FFAE2F); border-color: transparent; color: #fff;
  box-shadow: 0 10px 24px rgba(239,114,31,.28);
}
.jb-chip.active span { opacity: .85; }

.jb-resultnote { text-align: center; color: #6b7280; font-size: 15px; margin: -18px 0 30px; }

/* ---------- Grid kartu artikel ---------- */
.jb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.jb-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(26,26,26,.06); box-shadow: 0 10px 30px rgba(26,26,26,.07);
  transition: all .35s;
}
.jb-card:hover { transform: translateY(-6px); box-shadow: 0 24px 52px rgba(26,26,26,.15); }

.jb-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f4f5f7; }
.jb-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .55s; }
.jb-card:hover .jb-thumb img { transform: scale(1.05); }
.jb-cat {
  position: absolute; left: 14px; top: 14px; padding: 6px 13px; border-radius: 999px;
  background: linear-gradient(84.25deg,#EF721F,#FFAE2F); color: #fff; font-size: 12px;
  font-weight: 700; font-family: var(--title-font); letter-spacing: .2px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

.jb-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.jb-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: #8b939c; margin-bottom: 12px; }
.jb-meta i { color: #EF721F; margin-right: 4px; }
.jb-card h3 { font-size: 18.5px; line-height: 1.4; margin-bottom: 10px; }
.jb-card h3 a { color: #1a1a1a; }
.jb-card:hover h3 a { color: #EF721F; }
.jb-card .jb-body > p { font-size: 14.5px; line-height: 1.65; color: #6b7280; margin-bottom: 18px; }
.jb-more {
  margin-top: auto; font-family: var(--title-font); font-weight: 700; font-size: 14px;
  color: #EF721F; display: inline-flex; align-items: center; gap: 8px;
}
.jb-more i { transition: transform .3s; }
.jb-more:hover i { transform: translateX(4px); }

/* ---------- Paginasi ---------- */
.jb-paging { margin-top: 46px; text-align: center; }
.jb-paging .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 14px; margin: 0 4px 8px; border-radius: 12px;
  background: #fff; border: 1.5px solid rgba(26,26,26,.1); color: #3a3f45;
  font-family: var(--title-font); font-weight: 600; font-size: 14px; transition: all .25s;
}
.jb-paging .page-numbers:hover { border-color: #EF721F; color: #EF721F; }
.jb-paging .page-numbers.current {
  background: linear-gradient(84.25deg,#EF721F,#FFAE2F); border-color: transparent; color: #fff;
}
.jb-paging .prev, .jb-paging .next { padding: 0 18px; }

/* ---------- Kosong ---------- */
.jb-empty { text-align: center; padding: 60px 20px; }
.jb-empty > i { font-size: 46px; color: #e3e6ea; display: block; margin-bottom: 18px; }
.jb-empty h3 { font-size: 22px; margin-bottom: 8px; }
.jb-empty p { color: #6b7280; margin-bottom: 22px; }

/* ==========================================================================
   Detail artikel
   ========================================================================== */
.jb-hero .hero-content h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.jb-single-meta {
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
  margin-top: 22px; font-size: 14px; color: #b9c0c8;
}
.jb-single-meta i { color: #EF721F; margin-right: 6px; }

.jb-single-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 46px; align-items: start; }

.jb-featured { margin: 0 0 34px; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 40px rgba(26,26,26,.12); }
.jb-featured img { width: 100%; height: auto; display: block; }

/* ---------- Isi artikel ---------- */
.jb-content { font-size: 16.5px; line-height: 1.85; color: #33383e; }
.jb-content > *:first-child { margin-top: 0; }
.jb-content h2, .jb-content h3, .jb-content h4 { color: #1a1a1a; line-height: 1.35; margin: 38px 0 14px; }
.jb-content h2 { font-size: 26px; }
.jb-content h3 { font-size: 21px; }
.jb-content h4 { font-size: 18px; }
.jb-content p { margin-bottom: 20px; }
.jb-content ul, .jb-content ol { margin: 0 0 22px 22px; }
.jb-content li { margin-bottom: 9px; }
.jb-content a { color: #EF721F; text-decoration: underline; text-underline-offset: 3px; }
.jb-content a:hover { color: #c95c12; }
.jb-content img { max-width: 100%; height: auto; border-radius: 14px; margin: 10px 0; }
.jb-content blockquote {
  margin: 26px 0; padding: 20px 26px; border-left: 4px solid #EF721F;
  background: #fdf6f1; border-radius: 0 12px 12px 0; color: #4a5058; font-style: italic;
}
.jb-content table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.jb-content th, .jb-content td { border: 1px solid #e6e9ed; padding: 11px 14px; text-align: left; }
.jb-content th { background: #f7f8fa; font-family: var(--title-font); }
.jb-content strong { color: #1a1a1a; }
.jb-content--page { max-width: 900px; margin: 0 auto; }

/* ---------- Tag & CTA dalam artikel ---------- */
.jb-tags { margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: 14px; color: #8b939c; }
.jb-tags a { padding: 7px 14px; border-radius: 999px; background: #f4f5f7; color: #565d66; font-size: 13.5px; }
.jb-tags a:hover { background: #EF721F; color: #fff; }

.jb-cta-inline {
  margin-top: 38px; padding: 28px 30px; border-radius: 18px; background: #0f1115;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.jb-cta-inline h3 { color: #fff; font-size: 19px; margin-bottom: 6px; }
.jb-cta-inline p { color: #a7aeb7; font-size: 14.5px; margin: 0; }

.jb-back { margin-top: 26px; }
.jb-back a { font-family: var(--title-font); font-weight: 600; color: #565d66; font-size: 14.5px; display: inline-flex; gap: 8px; align-items: center; }
.jb-back a:hover { color: #EF721F; }

/* ---------- Sidebar artikel ---------- */
.jb-side { position: sticky; top: 96px; display: grid; gap: 22px; }
.jb-side-box {
  background: #fff; border: 1px solid rgba(26,26,26,.07); border-radius: 16px;
  padding: 24px 22px; box-shadow: 0 8px 24px rgba(26,26,26,.06);
}
.jb-side-box h4 {
  font-size: 16px; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(26,26,26,.08); display: flex; align-items: center; gap: 9px;
}
.jb-side-box h4 i { color: #EF721F; }
.jb-side-list, .jb-side-rel { list-style: none; margin: 0; padding: 0; }
.jb-side-list li { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed rgba(26,26,26,.09); }
.jb-side-list li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.jb-side-list a { font-family: var(--title-font); font-weight: 600; font-size: 14.5px; color: #1a1a1a; display: block; margin-bottom: 6px; line-height: 1.45; }
.jb-side-list a:hover { color: #EF721F; }
.jb-side-list span { font-size: 12.5px; color: #8b939c; }
.jb-side-list span i { color: #EF721F; margin-right: 4px; }

.jb-side-rel li { margin-bottom: 16px; }
.jb-side-rel li:last-child { margin-bottom: 0; }
.jb-side-rel a { display: flex; gap: 12px; align-items: center; }
.jb-side-rel img { width: 74px; height: 56px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.jb-side-rel span { font-family: var(--title-font); font-weight: 600; font-size: 14px; color: #1a1a1a; line-height: 1.45; }
.jb-side-rel a:hover span { color: #EF721F; }

.jb-side-cta { background: #0f1115; border-color: transparent; text-align: center; }
.jb-side-cta h4 { color: #fff; border-bottom-color: rgba(255,255,255,.1); justify-content: center; }
.jb-side-cta p { color: #a7aeb7; font-size: 14px; margin-bottom: 16px; }
.jb-side-cta .theme-btn { width: 100%; justify-content: center; }
.jb-side-note { margin: 14px 0 0 !important; font-size: 12.5px !important; color: #7d858e !important; }

/* ---------- Responsif ---------- */
@media (max-width: 1199px) {
  .jb-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .jb-single-wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; }
}
@media (max-width: 991px) {
  .jb-single-wrap { grid-template-columns: 1fr; gap: 40px; }
  .jb-side { position: static; }
  .jb-content { font-size: 16px; }
}
@media (max-width: 767px) {
  .jb-grid { grid-template-columns: 1fr; gap: 22px; }
  .jb-filter { gap: 8px; }
  .jb-chip { font-size: 13px; padding: 9px 14px; }
  .jb-card h3 { font-size: 17.5px; }
  .jb-cta-inline { padding: 22px 20px; }
  .jb-cta-inline .theme-btn { width: 100%; justify-content: center; }
  .jb-content h2 { font-size: 22px; }
  .jb-content h3 { font-size: 19px; }
  .jb-paging .page-numbers { min-width: 40px; height: 40px; font-size: 13.5px; }
  .jb-paging .prev, .jb-paging .next { padding: 0 13px; }
}
