.news-wrap{max-width:1100px;margin:0 auto;padding:0 20px}
.news-hero{padding:48px 0 18px}
.news-title{margin:0 0 10px;font-size:40px;line-height:1.1}
.news-intro{margin:0 0 18px;max-width:760px;opacity:.85}

.news-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.news-tab{display:inline-block;padding:10px 14px;border:1px solid rgba(0,0,0,.12);border-radius:999px;text-decoration:none}
.news-tab.is-active{border-color:rgba(0,0,0,.35);font-weight:700}

.news-list{padding:20px 0 60px}
.news-card{display:grid;grid-template-columns:220px 1fr;gap:18px;padding:18px 0;border-bottom:1px solid rgba(0,0,0,.10)}
.news-thumb img{width:100%;height:140px;object-fit:cover;border-radius:14px;display:block}
.news-thumb--empty{display:block;width:100%;height:140px;border-radius:14px;background:rgba(0,0,0,.06)}

.news-card-title{margin:0 0 8px;font-size:22px}
.news-card-title a{text-decoration:none}
.news-excerpt{margin:0 0 10px;opacity:.85}
.news-readmore{text-decoration:none;font-weight:700}

.news-pagination{padding-top:20px}
.news-pagination .page-numbers{margin-right:10px}

@media (max-width: 720px){
  .news-card{grid-template-columns:1fr}
  .news-thumb img,.news-thumb--empty{height:190px}
}

/* ===== GRID MODE OVERRIDES (must be AFTER the old rules) ===== */

#newsResults .news-grid { 
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Force card to be vertical (kills the old 220px+1fr layout) */
#newsResults .news-grid .news-card{
  display: flex !important;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(0,0,0,.10);
  border-bottom: 1px solid rgba(0,0,0,.10); /* overrides old border-bottom-only style */
  border-radius: 16px;
  overflow: hidden;
}

/* Remove the old thumbnail rounding and make it full width */
#newsResults .news-grid .news-thumb img,
#newsResults .news-grid .news-thumb--empty{
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
}

#newsResults .news-grid .news-body{
  padding: 14px 14px 16px;
}

/* Responsive */
@media (max-width: 980px){
  #newsResults .news-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  #newsResults .news-grid{ grid-template-columns: 1fr; }
}