/* Latest News - Featured + Masonry Grid (Block CSS) */
#latest-news { position: relative; }
#latest-news .latest-feature { margin-bottom: 18px; }
.news-feature-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; background: #F1F1F1; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.07); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.news-feature-card:focus { outline: 2px solid #999; outline-offset: 2px; }
.news-feature-card .image { position: relative; display:block; background:#ddd center/cover no-repeat; min-height: 300px; overflow: hidden; }
.news-feature-card .image::before { content: ""; position: absolute; inset: 0; background: inherit; transition: transform .35s ease; will-change: transform; pointer-events: none; }
.news-feature-card:hover .image::before { transform: scale(1.08); }

.news-card .thumb { position: relative; display:block; background:#ddd center/cover no-repeat; width:100%; aspect-ratio: 16 / 9; overflow: hidden; }
.news-card .thumb::before { content: ""; position: absolute; inset: 0; background: inherit; transition: transform .35s ease; will-change: transform; pointer-events: none; }
.news-card:hover .thumb::before { transform: scale(1.08); }
.news-feature-card .content {padding: 16px;margin-left: 0;}
.news-feature-card h4 { margin: 0 0 8px; font-size: 1.35em; line-height: 1.25; }
.news-feature-card p { margin: 8px 0 0; color: #333; font-size: .9em !important; }
.news-feature-card .chips { margin-top: 10px; }

/* Main features and randomized grid */
.main-features-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin-bottom: 18px; }
.latest-flow { display:flex; flex-direction:column; gap:16px; }
.flow-row { display:grid; gap:16px; }
.flow-row.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flow-row.grid-3 { grid-template-columns: repeat(3, 1fr); }
.flow-row .span-1 { grid-column: span 1; }
.flow-row .span-2 { grid-column: span 2; }
@media (max-width: 1024px) {
  .main-features-grid { grid-template-columns: repeat(2, 1fr); }
  .news-feature-card { grid-template-columns: 1fr; }
  .flow-row.grid-4, .flow-row.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .flow-row .span-2 { grid-column: span 1; }
}
@media (max-width: 640px)  {
  .main-features-grid { grid-template-columns: 1fr; }
  .flow-row.grid-4, .flow-row.grid-3 { grid-template-columns: 1fr; }
}

.news-card { break-inside: avoid; -webkit-column-break-inside: avoid; background: #F1F1F1; border-radius: 10px; margin: 0 0 16px; overflow: hidden; box-shadow: 0 2px 2px rgba(0,0,0,.06); display:inline-block; width:100%; text-decoration:none; color:inherit; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:focus { outline: 2px solid #999; outline-offset: 2px; }
.news-card .thumb { display:block; background:#ddd center/cover no-repeat; width:100%; aspect-ratio: 16 / 9; }
.news-card-body { display:inline-block;padding: 12px 14px 14px !important; }
.news-card h5 { margin: 0 0 8px; font-size: 1.05em; line-height: 1.25; }
.news-card p { margin: 8px 0 0; color:#333; font-size: 0.9em !important; }
.chips { display:flex; flex-wrap:wrap; gap:6px; }
.chip { display:inline-block; background:#CCEEF9; color:#555; border-radius: 999px; padding:3px 9px; font-size:12px; }
