﻿/* ==========================================================================
   Kalber – TERKINI (LATEST NEWS) DESIGN SYSTEM
   Modern, Sleek, High-Impact Mobile & Desktop Editorial Layout
   ========================================================================== */

:root {
  --pn-tk-ink: #092036;
  --pn-tk-muted: #63798a;
  --pn-tk-pink: #ec0067;
  --pn-tk-cyan: #00a0b7;
  --pn-tk-line: #e8edf0;
  --pn-tk-soft: #f8fafc;
  --pn-tk-card-bg: #ffffff;
}

body.page-template-page-terkini,
body.page-terkini {
  background: #ffffff;
  color: var(--pn-tk-ink);
  font-family: 'Manrope', -apple-system, sans-serif;
}

.pn-terkini-page {
  padding: 20px 0 60px;
  background: #ffffff;
  min-height: 80vh;
}

.pn-terkini-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ─── Breadcrumb ─────────────────────────────────────────── */
.pn-terkini-page .pn-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #738798;
  font-size: 12px;
}
.pn-terkini-page .pn-breadcrumb a {
  color: #2f5168;
  text-decoration: none;
  transition: color .15s ease;
}
.pn-terkini-page .pn-breadcrumb a:hover {
  color: var(--pn-tk-pink);
}
.pn-terkini-page .pn-breadcrumb .pn-bc-sep {
  color: #cbd5e1;
}
.pn-terkini-page .pn-breadcrumb .pn-bc-current {
  color: var(--pn-tk-pink);
  font-weight: 700;
}

/* ─── Hero Header ────────────────────────────────────────── */
.pn-terkini-hero {
  margin-bottom: 22px;
}
.pn-terkini-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(236, 0, 103, 0.08);
  border: 1px solid rgba(236, 0, 103, 0.2);
  color: var(--pn-tk-pink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pn-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pn-tk-pink);
  display: inline-block;
  animation: pnPulse 1.5s infinite;
}
@keyframes pnPulse {
  0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(236, 0, 103, 0.7); }
  70% { transform: scale(1.1); opacity: 0.9; box-shadow: 0 0 0 6px rgba(236, 0, 103, 0); }
  100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(236, 0, 103, 0); }
}

.pn-terkini-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  color: var(--pn-tk-ink);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 8px;
}
.pn-terkini-title .pn-dot {
  color: var(--pn-tk-pink);
}
.pn-terkini-subtitle {
  font-size: 14px;
  color: var(--pn-tk-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 680px;
}

/* ─── Horizontal Filter Pills ────────────────────────────── */
.pn-terkini-filters {
  margin: 0 0 24px;
  border-bottom: 1px solid var(--pn-tk-line);
  padding-bottom: 14px;
}
.pn-terkini-filter-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0;
}
.pn-terkini-filter-scroll::-webkit-scrollbar {
  display: none;
}
.pn-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: var(--pn-tk-soft);
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: all .15s ease;
}
.pn-filter-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--pn-tk-ink);
}
.pn-filter-pill.is-active {
  background: var(--pn-tk-pink);
  border-color: var(--pn-tk-pink);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(236, 0, 103, 0.25);
}

/* ─── 2-Column Grid Layout ───────────────────────────────── */
.pn-terkini-grid {
  display: grid;
  grid-template-columns: minmax(0, 790px) 330px;
  gap: 30px;
  align-items: start;
}
.pn-terkini-main {
  min-width: 0;
}

/* ─── Top Breaking / Hero Card ───────────────────────────── */
.pn-terkini-hero-card {
  background: #ffffff;
  border: 1px solid var(--pn-tk-line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pn-terkini-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.pn-thc-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 380px;
  overflow: hidden;
  background: #edf3f8;
}
.pn-thc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.pn-terkini-hero-card:hover .pn-thc-img {
  transform: scale(1.02);
}
.pn-thc-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--pn-tk-pink);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pn-thc-body {
  padding: 18px 20px;
}
.pn-thc-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 8px;
  color: var(--pn-tk-muted);
}
.pn-thc-live-tag {
  color: var(--pn-tk-pink);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.pn-thc-dot {
  color: #cbd5e1;
}
.pn-thc-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pn-thc-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}
.pn-thc-title a {
  color: var(--pn-tk-ink);
  text-decoration: none;
  transition: color .15s ease;
}
.pn-thc-title a:hover {
  color: var(--pn-tk-pink);
}
.pn-thc-excerpt {
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}
.pn-thc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--pn-tk-line);
  padding-top: 12px;
  font-size: 11px;
  color: #82919b;
}
.pn-read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pn-card-bookmark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  font-size: 15px;
  transition: all .15s ease;
}
.pn-card-bookmark:hover {
  background: var(--pn-tk-pink);
  border-color: var(--pn-tk-pink);
  color: #ffffff;
}

/* ─── Live Badge (Hero Header) ───────────────────────────── */
.pn-terkini-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(236, 0, 103, 0.08);
  border: 1px solid rgba(236, 0, 103, 0.2);
  color: var(--pn-tk-pink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ─── List Section Header ────────────────────────────────── */
.pn-terkini-list-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  border-left: 4px solid var(--pn-tk-pink);
  padding-left: 10px;
}
.pn-terkini-list-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--pn-tk-ink);
  white-space: nowrap;
}
.pn-terkini-list-divider {
  flex: 1;
  height: 1px;
  background: var(--pn-tk-line);
}
.pn-terkini-list-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--pn-tk-muted);
  white-space: nowrap;
  background: var(--pn-tk-soft);
  border: 1px solid var(--pn-tk-line);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ─── Standard Feed News Cards ───────────────────────────── */
.pn-terkini-feed {
  display: flex;
  flex-direction: column;
}
.pn-terkini-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--pn-tk-line);
  align-items: start;
}
.pn-terkini-feed .pn-terkini-item:first-child {
  border-top: 0;
}

.pn-terkini-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pn-terkini-item__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.pn-item-cat {
  color: var(--pn-tk-pink);
  font-weight: 800;
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pn-item-cat:hover {
  text-decoration: underline;
}
.pn-item-sep {
  color: #cbd5e1;
  font-size: 10px;
}
.pn-item-time {
  color: #82919b;
  font-size: 10.5px;
}

.pn-terkini-item__title {
  margin: 2px 0 4px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pn-terkini-item__title a {
  color: var(--pn-tk-ink);
  text-decoration: none;
  transition: color .15s ease;
}
.pn-terkini-item__title a:hover {
  color: var(--pn-tk-pink);
}

.pn-terkini-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 10.5px;
  color: #82919b;
}

.pn-terkini-item__media {
  display: block;
  width: 140px;
  height: 95px;
  border-radius: 8px;
  overflow: hidden;
  background: #edf3f8;
  flex-shrink: 0;
}
.pn-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.pn-terkini-item:hover .pn-item-thumb {
  transform: scale(1.05);
}

/* ─── In-Feed Ad Slot ────────────────────────────────────── */
.pn-ad-slot--terkini {
  margin: 16px 0;
  clear: both;
  border-radius: 8px;
  overflow: hidden;
  border: 1px dashed #d1dbe4;
  background: #f8fafc;
  text-align: center;
  padding: 16px 12px;
}
.pn-ad-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pn-ad-slot--terkini .pn-ad-slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 90px;
  color: #94a3b8;
}
.pn-ad-slot--terkini .pn-ad-slot-placeholder i {
  font-size: 28px;
  color: #cbd5e1;
}
.pn-ad-slot--terkini .pn-ad-slot-placeholder strong {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}
.pn-ad-slot--terkini .pn-ad-slot-placeholder small {
  font-size: 11px;
  color: #94a3b8;
}

/* ─── Pagination ─────────────────────────────────────────── */
.pn-terkini-pagination {
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px solid var(--pn-tk-line);
}
.pn-terkini-pagination .diksi-pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.pn-terkini-pagination .diksi-pagination li a,
.pn-terkini-pagination .diksi-pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s ease;
}
.pn-terkini-pagination .diksi-pagination li span.current {
  background: var(--pn-tk-pink);
  border-color: var(--pn-tk-pink);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(236, 0, 103, 0.25);
}
.pn-terkini-pagination .diksi-pagination li a:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--pn-tk-pink);
}

/* ─── Empty State ────────────────────────────────────────── */
.pn-terkini-empty {
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  margin: 20px 0;
}
.pn-terkini-empty i {
  font-size: 42px;
  color: #94a3b8;
  display: block;
  margin-bottom: 8px;
}
.pn-terkini-empty h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--pn-tk-ink);
  margin: 0 0 6px;
}
.pn-terkini-empty p {
  font-size: 13px;
  margin: 0 0 16px;
}
.pn-empty-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--pn-tk-pink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: background .15s ease;
}
.pn-empty-btn:hover {
  background: #d4005b;
}

/* ─── Aside / Sidebar (Desktop) ──────────────────────────── */
.pn-terkini-aside {
  min-width: 0;
  border-left: 1px solid #edf1f3;
  padding-left: 18px;
}

/* ==========================================================================
   MOBILE RESPONSIVE RULES (Max Width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .pn-terkini-page {
    padding: 12px 0 80px !important;
  }
  .pn-terkini-shell {
    width: calc(100% - 24px) !important;
    margin: 0 auto !important;
  }
  .pn-terkini-grid {
    display: block !important;
  }
  .pn-terkini-aside {
    display: none !important;
  }

  /* Breadcrumb */
  .pn-terkini-page .pn-breadcrumb {
    margin: 0 0 10px !important;
    font-size: 11px !important;
    gap: 6px !important;
  }

  /* Hero */
  .pn-terkini-hero {
    margin-bottom: 16px !important;
  }
  .pn-terkini-live-badge {
    padding: 3px 8px !important;
    font-size: 9px !important;
    margin-bottom: 6px !important;
  }
  .pn-terkini-title {
    font-size: 26px !important;
    letter-spacing: -.02em !important;
    margin-bottom: 4px !important;
  }
  .pn-terkini-subtitle {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
  }

  /* Filters */
  .pn-terkini-filters {
    margin: 0 0 16px !important;
    padding-bottom: 10px !important;
  }
  .pn-filter-pill {
    height: 30px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    border-radius: 15px !important;
  }

  /* Top Hero Card on Mobile */
  .pn-terkini-hero-card {
    border-radius: 10px !important;
    margin-bottom: 18px !important;
  }
  .pn-thc-media {
    max-height: 200px !important;
  }
  .pn-thc-badge {
    top: 10px !important;
    left: 10px !important;
    font-size: 9.5px !important;
    padding: 3px 8px !important;
  }
  .pn-thc-body {
    padding: 12px 14px !important;
  }
  .pn-thc-title {
    font-size: 17px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }
  .pn-thc-excerpt {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Standard Feed Items on Mobile */
  .pn-terkini-item {
    grid-template-columns: minmax(0, 1fr) 115px !important;
    gap: 12px !important;
    padding: 14px 0 !important;
  }
  .pn-terkini-item__title {
    font-size: 14.5px !important;
    line-height: 1.26 !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
  }
  .pn-item-cat {
    font-size: 10px !important;
  }
  .pn-item-time {
    font-size: 9.5px !important;
  }
  .pn-terkini-item__media {
    width: 115px !important;
    height: 78px !important;
    border-radius: 8px !important;
  }
  .pn-card-bookmark {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }

  /* Pagination */
  .pn-terkini-pagination {
    margin-top: 20px !important;
  }
  .pn-terkini-pagination .diksi-pagination li a,
  .pn-terkini-pagination .diksi-pagination li span {
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 8px !important;
    font-size: 11.5px !important;
    border-radius: 6px !important;
  }
}

@media (max-width: 360px) {
  .pn-terkini-item {
    grid-template-columns: minmax(0, 1fr) 95px !important;
    gap: 10px !important;
  }
  .pn-terkini-item__media {
    width: 95px !important;
    height: 68px !important;
  }
  .pn-terkini-item__title {
    font-size: 13.5px !important;
  }
}
