/* =====================================================================
   MASUK PTN — Redesign v3 · Article listing page (artikel.css)
   Page-specific polish only — flat colors, zero gradients, glass on
   the date chips. Reuses base.css v3 tokens.
   Skins: .page-header, .editors-news, .popular-news, .image-hover,
          .thumb-title, .font-weight-600, .pagination
   Accent scheme: rose = category base, alternating rose/violet/blue
   per card; read-more cue blue; pagination active blue-600.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/*  Page header rhythm (base.css handles the flat navy overlay)        */
/* ------------------------------------------------------------------ */
.page-header p {
  max-width: 40rem;
  margin: .85rem auto 0;
  font-size: var(--fs-base);
}

.container[style*="min-height"] { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ */
/*  Section titles ("Terbaru nih!", "Baca juga ...")                   */
/* ------------------------------------------------------------------ */
.editors-news .title,
.popular-news .title {
  position: relative;
  display: inline-block;
  margin: 0 0 .35rem;
  padding-left: 1rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: var(--fs-lg);
  letter-spacing: -.02em;
  color: var(--navy);
}
.editors-news .title::before,
.popular-news .title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 1.5em;
  border-radius: var(--r-pill);
  background: var(--rose);
}
/* Second block gets its own editorial accent */
.popular-news .title::before { background: var(--violet); }

.editors-news,
.popular-news { margin-bottom: 1rem; }

/* ------------------------------------------------------------------ */
/*  Article cards — image frame + headline below                       */
/* ------------------------------------------------------------------ */
.editors-news .col-lg-6,
.editors-news .col-sm-6,
.popular-news .col-sm-4 {
  display: flex;
  flex-direction: column;
}

/* Clickable image frame */
.image-hover {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease),
              border-color .45s var(--ease);
}
.image-hover img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
  transition: transform .65s var(--ease);
}

/* Flat single-tone hover veil (no gradient) */
.image-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(13, 40, 54, .14);
  opacity: 0;
  transition: opacity .45s var(--ease);
  z-index: 1;
  pointer-events: none;
}

/* Lead story image runs taller */
.editors-news .col-lg-6:first-child .image-hover img { height: 360px; }

/* Hover choreography */
.image-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}
.image-hover:hover img { transform: scale(1.06); }
.image-hover:hover::after { opacity: 1; }

/* ------------------------------------------------------------------ */
/*  Category pill (1st .thumb-title) — flat solid, rose base,          */
/*  alternating rose / violet / blue per card                          */
/* ------------------------------------------------------------------ */
.thumb-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  margin: 0;
}
.image-hover .thumb-title:first-of-type {
  position: absolute;
  left: 14px; top: 14px;
  z-index: 2;
  padding: .32rem .8rem;
  border-radius: var(--r-pill);
  background: var(--rose-600);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-xs);
}

/* Rotate the category accent across cards — subtle diversity */
.editors-news .col-sm-6:nth-of-type(3n+1) .thumb-title:first-of-type { background: var(--violet-600); }
.editors-news .col-sm-6:nth-of-type(3n+2) .thumb-title:first-of-type { background: var(--blue-600); }
.editors-news .col-sm-6:nth-of-type(3n+3) .thumb-title:first-of-type { background: var(--rose-600); }
.popular-news .col-sm-4:nth-of-type(3n+1) .thumb-title:first-of-type { background: var(--rose-600); }
.popular-news .col-sm-4:nth-of-type(3n+2) .thumb-title:first-of-type { background: var(--violet-600); }
.popular-news .col-sm-4:nth-of-type(3n+3) .thumb-title:first-of-type { background: var(--blue-600); }

/* ------------------------------------------------------------------ */
/*  Date chip (2nd .thumb-title) — glass over the image                */
/* ------------------------------------------------------------------ */
.image-hover .thumb-title:nth-of-type(2) {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .26rem .72rem;
  border-radius: var(--r-pill);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border: 1px solid var(--glass-border);
  color: var(--navy);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .01em;
}
.image-hover .thumb-title:nth-of-type(2)::before {
  content: "\f017"; /* fa clock */
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  font-size: var(--fs-xs);
  color: var(--blue-600);
}

/* ------------------------------------------------------------------ */
/*  Article titles & read-more affordance                              */
/* ------------------------------------------------------------------ */
.editors-news h1.font-weight-600,
.editors-news h5.font-weight-600,
.popular-news h5.font-weight-600 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -.018em;
  margin-top: .95rem !important;
}

/* Lead headline — proportional, not huge */
.editors-news h1.font-weight-600 {
  font-size: clamp(1.2rem, 2.2vw, var(--fs-xl));
  line-height: 1.3;
}
.editors-news h1.font-weight-600 a {
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .3s var(--ease);
}
.editors-news h1.font-weight-600 a:hover { color: var(--blue-600); }

/* Secondary / grid headlines */
.editors-news h5.font-weight-600,
.popular-news h5.font-weight-600 {
  font-size: var(--fs-base);
  line-height: 1.4;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em;
}

.editors-news a.text-black,
.popular-news a.text-black {
  display: block;
  position: relative;
}
.editors-news a.text-black h5,
.popular-news a.text-black h5 {
  transition: color .3s var(--ease);
}
.editors-news a.text-black:hover h5,
.popular-news a.text-black:hover h5 {
  color: var(--blue-600);
}

/* "Baca selengkapnya" read-more cue — blue, generated (no new DOM) */
.popular-news a.text-black::after,
.editors-news .col-lg-6 a.text-black::after {
  content: "Baca selengkapnya \00a0\f061";
  font-family: "Plus Jakarta Sans", "Font Awesome 5 Free", sans-serif;
  display: inline-flex;
  align-items: center;
  margin-top: .35rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--blue-600);
  opacity: .85;
  transition: color .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease);
}
.popular-news a.text-black:hover::after,
.editors-news .col-lg-6 a.text-black:hover::after {
  color: var(--blue-700);
  opacity: 1;
  transform: translateX(3px);
}

/* ------------------------------------------------------------------ */
/*  Pagination — flat pills, active = solid blue-600                   */
/* ------------------------------------------------------------------ */
.pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  padding: .55rem .7rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.pagination .page-item { margin: 0; }
.pagination .page-link {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .65rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill) !important;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  background: transparent;
  transition: transform .3s var(--ease), background-color .3s var(--ease),
              color .3s var(--ease), box-shadow .3s var(--ease);
}
.pagination .page-link:hover {
  background: var(--blue-50);
  color: var(--blue-600);
  border-color: var(--blue-100);
  transform: translateY(-2px);
}
.pagination .page-item.active .page-link {
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
  box-shadow: var(--shadow-brand);
}
.pagination .page-item.disabled .page-link {
  color: var(--muted-200);
  background: transparent;
  box-shadow: none;
  cursor: default;
  transform: none;
}
.pagination .page-link:focus {
  box-shadow: 0 0 0 .25rem var(--blue-100);
  outline: none;
}

/* ------------------------------------------------------------------ */
/*  Responsive niceties                                                */
/* ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .editors-news .col-lg-6:first-child .image-hover img { height: 280px; }
}
@media (max-width: 575.98px) {
  .image-hover img,
  .editors-news .col-lg-6:first-child .image-hover img { height: 210px; }
  .editors-news .title,
  .popular-news .title { font-size: var(--fs-md); }
  .popular-news h5.font-weight-600,
  .editors-news h5.font-weight-600 { min-height: 0; }
  .pagination .page-link { min-width: 36px; height: 36px; font-size: var(--fs-xs); }
}
