/* ===================================================================
   THE JEMBRONG — artikel.css (khusus artikel.html)
   =================================================================== */

/* ---------- PAGE HEADER (tanpa bg indigo, rata kiri) ---------- */
.artikel-header { padding-top: 70px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.artikel-header h1 { font-size: 42px; font-weight: 600; }
.artikel-header p { color: var(--color-text-muted); max-width: 560px; font-size: 16px; }

/* ---------- SEARCH + FILTER TABS ---------- */
.search-filter-row { padding-bottom: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 280px; max-width: 420px; display: flex; align-items: center; gap: 10px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 100px; padding: 6px 6px 6px 20px; }
.search-box span.placeholder { color: var(--color-text-faint); font-size: 14px; flex: 1; }
.search-box .go { width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.filter-tabs-inline { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FEATURED ARTICLE ---------- */
.featured-wrap { padding-bottom: 60px; }
.featured-card { display: flex; border-radius: 20px; overflow: hidden; border: 1px solid var(--color-border); background: var(--color-white); transition: box-shadow 0.25s ease; }
.featured-card:hover { box-shadow: 0 18px 38px -20px rgba(11,61,62,0.35); }
.featured-card .thumb { flex: 1.1; aspect-ratio: 16/11; overflow: hidden; }
.featured-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.featured-card:hover .thumb img { transform: scale(1.05); }
.featured-card .body { flex: 1; padding: 48px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.featured-card .label { font-size: 12px; color: #3A3D8A; font-weight: 700; }
.featured-card h2 { font-size: 28px; font-weight: 700; line-height: 1.3; }
.featured-card p { color: var(--color-text-muted); font-size: 15px; line-height: 1.7; }
.featured-card .meta { font-size: 13px; color: var(--color-text-muted); }

/* ---------- GRID ARTIKEL & VIDEO ---------- */
.posts-grid { padding-bottom: 90px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.posts-empty { padding-bottom: 90px; text-align: center; color: var(--color-text-faint); font-size: 14px; }
.post-card { display: flex; flex-direction: column; gap: 16px; border-radius: 16px; overflow: hidden; border: 1px solid var(--color-border); background: var(--color-white); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.post-card:hover { box-shadow: 0 16px 34px -18px rgba(11,61,62,0.35); transform: translateY(-3px); }
.post-card .thumb { width: 100%; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .thumb .play { width: 52px; height: 52px; border-radius: 50%; background: rgba(247,247,252,0.27); display: flex; align-items: center; justify-content: center; }
.post-card-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.post-card-body .label { font-size: 12px; color: #3A3D8A; font-weight: 700; }
.post-card-body h3 { font-size: 17px; font-weight: 700; line-height: 1.4; }
.post-card-body .meta { font-size: 13px; color: var(--color-text-muted); }

/* ---------- PAGINATION ---------- */
.pagination { padding-bottom: 90px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.pagination .page { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.pagination .page.active { background: var(--color-primary); color: var(--color-white); }
.pagination .page:not(.active) { border: 1px solid var(--color-border); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .featured-card { flex-direction: column; }
  .featured-card .thumb { aspect-ratio: 16/10; }
  .featured-card .body { padding: 32px; }
}

@media (max-width: 680px) {
  .artikel-header { padding-top: 40px; padding-bottom: 24px; }
  .artikel-header h1 { font-size: 26px; }
  .artikel-header p { font-size: 14px; }

  .search-filter-row { padding-bottom: 24px; gap: 14px; }
  .search-box { max-width: none; min-width: 0; width: 100%; }
  .filter-tabs-inline { width: 100%; }
  .tab { padding: 8px 16px; font-size: 12px; }

  .featured-wrap { padding-bottom: 32px; }
  .featured-card .body { padding: 22px; gap: 10px; }
  .featured-card h2 { font-size: 19px; }
  .featured-card p { font-size: 13.5px; }

  .posts-grid { grid-template-columns: 1fr; gap: 16px; padding-bottom: 50px; }
  .post-card-body h3 { font-size: 15px; }

  .pagination { padding-bottom: 50px; }
}

@media (max-width: 400px) {
  .artikel-header h1 { font-size: 22px; }
  .featured-card h2 { font-size: 17px; }
}

/* ---------- Backend: form pencarian, link tab & paginasi ---------- */
.search-box .search-input { flex: 1; min-width: 0; border: 0; background: transparent; padding-top: 6px; padding-bottom: 6px; padding-left: 0; padding-right: 0; font-family: inherit; font-size: 14px; color: var(--color-text); outline: none; }
.search-box:focus-within { border-color: var(--color-primary); }
.search-box button.go { border: 0; cursor: pointer; padding: 0; }
a.tab { text-decoration: none; display: inline-block; }
.pagination a.page { text-decoration: none; color: inherit; }
.pagination a.page:not(.active):hover { border-color: var(--color-primary); color: var(--color-primary); }
.search-result-note { font-size: 14px; color: var(--color-text-muted); padding-bottom: 20px; }
.search-result-note a { color: var(--color-primary); font-weight: 600; }
.posts-empty { text-align: center; color: var(--color-text-muted); padding-top: 40px; padding-bottom: 90px; }

/* Judul/ringkasan dengan kata atau link panjang tetap di dalam kartu */
.featured-card, .post-card, .post-card-body { min-width: 0; }
.featured-card h2, .featured-card h3, .featured-card p, .post-card h3, .post-card p { overflow-wrap: anywhere; word-break: break-word; }
