/* News list + article layout — modeled on hse.co.id / pjk3.co.id blog. Prefix: nb- */
.nb-page {
  --nb-navy: #0f172a;
  --nb-ink: #1e293b;
  --nb-muted: #64748b;
  --nb-line: #e2e8f0;
  --nb-soft: #f8fafc;
  --nb-accent: #1d4ed8;
  --nb-accent-hover: #1e40af;
  color: var(--nb-ink);
}

/* ---------- Hero ---------- */
.nb-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #0f766e 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.nb-hero h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .9rem;
  color: #fff;
}
.nb-hero p {
  color: rgba(255, 255, 255, .85);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}
.nb-search {
  display: flex;
  gap: .5rem;
  max-width: 640px;
  margin: 0 auto;
  padding: .6rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .95rem;
}
.nb-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: .6rem;
  padding: .7rem 1rem;
  font-size: 1rem;
}
.nb-search button {
  border: 0;
  border-radius: .6rem;
  padding: .7rem 1.4rem;
  font-weight: 600;
  background: #fbbf24;
  color: #111827;
  cursor: pointer;
}
.nb-search button:hover { background: #f59e0b; }

/* ---------- List ---------- */
.nb-list { background: var(--nb-soft); padding: 2.5rem 0 3rem; }
.nb-list-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.nb-list-head h2 { font-size: 1.15rem; font-weight: 700; margin: 0; color: var(--nb-navy); }
.nb-list-head small { color: var(--nb-muted); }
.nb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .nb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .nb-grid { grid-template-columns: repeat(3, 1fr); } }

.nb-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--nb-line);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nb-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 30px rgba(2, 6, 23, .08);
}
.nb-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: #f1f5f9;
}
.nb-card__body { padding: 1.25rem 1.4rem; flex: 1; }
.nb-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--nb-muted);
  margin-bottom: .6rem;
}
.nb-card__cat {
  color: var(--nb-accent);
  font-weight: 600;
  text-decoration: none;
}
.nb-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nb-card__title a { color: var(--nb-navy); text-decoration: none; }
.nb-card__title a:hover { color: var(--nb-accent); }
.nb-card__excerpt {
  color: var(--nb-muted);
  font-size: .93rem;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nb-card__foot { padding: 0 1.4rem 1.25rem; }
.nb-card__foot a { font-size: .875rem; font-weight: 600; color: var(--nb-accent); text-decoration: none; }
.nb-card__foot a:hover { text-decoration: underline; }
.nb-pagination { display: flex; justify-content: center; margin-top: 2.5rem; }
.nb-empty {
  background: #fff;
  border: 1px solid var(--nb-line);
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

/* ---------- Article ---------- */
.nb-article { max-width: none; padding-top: 1.5rem; }

/* Widgets (former right sidebar) now sit below the article, full width */
.nb-widgets { margin: 2.5rem 0 3rem; padding-top: 2rem; border-top: 2px solid var(--nb-line); }
.nb-widgets .sidebar-right {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .nb-widgets .sidebar-right { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .nb-widgets .sidebar-right { grid-template-columns: repeat(3, 1fr); } }
.nb-widgets .sidebar-widget { min-width: 0; }
.nb-widgets .sidebar-title h4 { font-size: 1.15rem; font-weight: 700; color: var(--nb-navy); margin: 0 0 .9rem; }
.nb-widgets img { max-width: 100%; height: auto; }
.nb-widgets .thumb-list { list-style: none; padding: 0; margin: 0; }
.nb-widgets .thumb-list li { display: flex; gap: .8rem; margin-bottom: 1rem; }
.nb-widgets .thumb-list .thumb { flex: 0 0 96px; }
.nb-widgets .thumb-list .thumb img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.nb-widgets .thumb-list-item-title { font-size: .95rem; line-height: 1.35; margin: 0; }
.nb-widgets .widget_category ul { list-style: none; padding: 0; margin: 0; }
.nb-widgets .widget_category li { padding: .3rem 0; }
.nb-widgets .tagcloud ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.nb-widgets .tagcloud a { font-size: .8rem; background: #f1f5f9; border-radius: 100px; padding: .3rem .9rem; color: var(--nb-ink); text-decoration: none; }
.nb-article__cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--nb-accent);
  border-radius: 100px;
  padding: .25rem .8rem;
  text-decoration: none;
  margin-bottom: .9rem;
}
.nb-article__cat:hover { background: var(--nb-accent-hover); color: #fff; }
.nb-article__title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: var(--nb-navy);
  margin: 0 0 1rem;
}
.nb-article__desc { font-size: 1.1rem; line-height: 1.6; color: var(--nb-muted); margin: 0 0 1.25rem; }
.nb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  color: var(--nb-muted);
  font-size: .875rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--nb-line);
}
.nb-meta__author { display: inline-flex; align-items: center; gap: .5rem; color: var(--nb-navy); font-weight: 700; }
.nb-meta__author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--nb-line); }
.nb-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 1.75rem;
  background: var(--nb-soft);
  box-shadow: 0 4px 16px rgba(15, 23, 42, .08);
}
.nb-body { font-size: 1.125rem; line-height: 1.85; color: #334155; word-break: break-word; }
.nb-body p { margin: 0 0 1.25em; }
.nb-page .nb-body h2, .nb-page .nb-body h3, .nb-page .nb-body h4 { color: var(--nb-navy); font-weight: 700; line-height: 1.3; margin: 1.4em 0 .4em; padding: 0; letter-spacing: -.02em; }
.nb-page .nb-body h2 { font-size: 1.6rem; }
.nb-page .nb-body h3 { font-size: 1.3rem; }
.nb-page .nb-body > :first-child { margin-top: 0; }
.nb-page .nb-body p:empty { display: none; }
.nb-page .nb-body h2 + p, .nb-page .nb-body h3 + p, .nb-page .nb-body h4 + p { margin-top: 0; }
.nb-page .nb-body ul + p, .nb-page .nb-body ol + p { margin-top: 1em; }
.nb-page .nb-body ol, .nb-page .nb-body ul { margin-top: 0; }
.nb-page .nb-body blockquote { margin: 1.25em 0; }
.nb-body ul, .nb-body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.nb-body li { margin-bottom: .45em; }
.nb-body img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.nb-body table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: .95rem; }
.nb-body th, .nb-body td { border: 1px solid var(--nb-line); padding: .65em .85em; text-align: left; }
.nb-body th { background: var(--nb-soft); color: var(--nb-navy); font-weight: 700; }
.nb-body a { color: var(--nb-accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.nb-body blockquote { margin: 1.5em 0; padding: .9rem 1.2rem; border-left: 4px solid var(--nb-accent); background: var(--nb-soft); border-radius: 0 8px 8px 0; font-size: 1rem; }
.nb-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 1rem; }
.nb-tags a {
  font-size: .8rem;
  font-weight: 500;
  color: var(--nb-ink);
  background: #f1f5f9;
  border-radius: 100px;
  padding: .35rem .95rem;
  text-decoration: none;
}
.nb-tags a:hover { background: #e2e8f0; }
.nb-share {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  margin: 1.5rem 0 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--nb-line);
  border-bottom: 1px solid var(--nb-line);
  font-size: .875rem;
}
.nb-share span { font-weight: 700; color: var(--nb-navy); }
.nb-share a {
  border: 1px solid var(--nb-line);
  background: #fff;
  border-radius: 8px;
  padding: .45rem 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--nb-navy);
}
.nb-share a:hover { border-color: var(--nb-accent); color: var(--nb-accent); background: #eff6ff; }
.nb-author {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--nb-line);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin: 2rem 0;
  background: var(--nb-soft);
}
.nb-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; flex-shrink: 0; }
.nb-author h3 { font-size: 1rem; font-weight: 700; color: var(--nb-navy); margin: 0 0 .35rem; }
.nb-author p { font-size: .9rem; line-height: 1.6; color: #475569; margin: 0; }
@media (max-width: 575.98px) {
  .nb-author { flex-direction: column; align-items: center; text-align: center; }
  .nb-body { font-size: 1.05rem; }
}

/* Related (4-col) */
.nb-related { margin: 2.5rem 0 1rem; border-top: 2px solid var(--nb-line); padding-top: 2rem; }
.nb-related h2 { font-size: 1.25rem; font-weight: 700; color: var(--nb-navy); margin: 0 0 1.25rem; }
.nb-related .nb-grid { grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 576px) { .nb-related .nb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .nb-related .nb-grid { grid-template-columns: repeat(4, 1fr); } }
.nb-related .nb-card__body { padding: 1rem 1.1rem; }
.nb-related .nb-card__title { font-size: .95rem; margin: 0; }
