/* ============================================================
   PMCK — listing pages
   Blog, news, events, CSR, ask our experts and specialties all
   render through this. Brand colours come from the theme
   variables, so a medical centre recolours these too.
   ============================================================ */

.pmck-list__body{padding:44px 0 72px;}

/* ---------- filter bar ---------- */

.pmck-list__bar{
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;flex-wrap:wrap;margin-bottom:30px;
}

.pmck-chips{display:flex;flex-wrap:wrap;gap:10px;}
.pmck-chip{
  border:1px solid var(--line);background:#fff;color:var(--brand-ink);
  border-radius:999px;padding:9px 18px;font:inherit;font-size:16px;font-weight:600;
  cursor:pointer;transition:background .16s,border-color .16s,color .16s;
}
.pmck-chip:hover{background:var(--brand-soft);}
.pmck-chip.is-on{background:var(--brand);border-color:var(--brand);color:#fff;}

.pmck-sort select{
  background:#fff;border:1px solid var(--line);border-radius:8px;
  padding:9px 40px 9px 14px;font:inherit;font-size:16px;color:var(--brand-ink);
  appearance:none;cursor:pointer;
  background-image:var(--pmck-caret);background-repeat:no-repeat;
  background-position:right 12px center;background-size:18px;
}

/* ---------- cards ---------- */

.pmck-cardgrid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:28px;align-items:start;
}

.pmck-card2{
  background:#fff;border:1px solid var(--line);border-top:4px solid var(--accent);
  border-radius:12px;overflow:hidden;
  display:flex;flex-direction:column;height:100%;
  box-shadow:0 2px 10px rgba(2,48,32,.04);
}
.pmck-card2[hidden]{display:none;}

.pmck-card2__media{display:block;}
.pmck-card2__media img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;}

.pmck-card2__body{
  padding:18px 22px 22px;display:flex;flex-direction:column;flex:1;
}

.pmck-card2__date{
  display:inline-block;align-self:flex-start;
  background:var(--brand-soft);color:var(--brand-ink);
  border-radius:6px;padding:4px 10px;font-size:14px;font-weight:600;margin-bottom:12px;
}

.pmck-card2__title{font-size:21px;font-weight:700;line-height:1.25;margin:0 0 8px;}
.pmck-card2__title a{text-decoration:none;}
.pmck-card2__title a:hover{color:var(--brand);}

.pmck-card2__views{
  display:inline-flex;align-items:center;gap:7px;
  font-size:15px;color:var(--muted);margin-bottom:10px;
}
.pmck-card2__views .pmck-i{width:17px;height:17px;}

/* Three lines, whatever the excerpt length — clamped rather than word-trimmed,
   so the cut lands on the line and not mid-sentence at a fixed word count. */
.pmck-card2__excerpt{
  margin:0 0 20px;font-size:16px;line-height:1.6;color:var(--body);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;
  overflow:hidden;
}

/* The button sits on the bottom edge of every card, so a short excerpt and a
   long one still line up across a row. */
.pmck-card2__go{margin-top:auto;width:100%;justify-content:flex-start;}

/* ---------- pager ---------- */

.pmck-pager{
  display:flex;align-items:center;justify-content:center;gap:8px;
  flex-wrap:wrap;margin-top:44px;
}
.pmck-pager .page-numbers{
  display:grid;place-items:center;min-width:38px;height:38px;padding:0 12px;
  border:1px solid var(--line);border-radius:8px;background:#fff;
  color:var(--brand-ink);text-decoration:none;font-size:16px;font-weight:600;
}
.pmck-pager .page-numbers:hover{background:var(--brand-soft);}
.pmck-pager .page-numbers.current{background:var(--brand);border-color:var(--brand);color:#fff;}
.pmck-pager .prev,.pmck-pager .next{font-weight:700;}

.pmck-empty{
  margin:24px 0 0;padding:18px 22px;border-radius:10px;
  background:var(--brand-soft);color:var(--muted);font-size:17px;
}

@media (max-width:880px){
  .pmck-cardgrid{grid-template-columns:1fr;gap:22px;}
  .pmck-list__bar{flex-direction:column;align-items:flex-start;}
}