/* ==========================================================================
   NEWS PAGES (news.html, local.html, international.html) — loads after css/global.css
   (Previously css/cnn.css — same rules, renamed to match the page.)
   Base card styles (.news-grid, .news-card ...) live in global.css.
   ========================================================================== */

/* 4-column layout for Local News */
.news-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* .cat-politics moved to global.css (now used on Home + News) */

/* Responsive adjustment for 4-column grid */
@media (max-width: 1024px) {
  .news-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   MOBILE & TABLET CARD UNIFORMITY (≤ 991px) — desktop unchanged
   Column count comes from .news-grid in global.css (2 on tablet, 1 on phone).
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {

  /* Every row the same height (International + Local) */
  #international .news-grid,
  .news-region-grid,
  .news-grid-4 { grid-auto-rows: 1fr; }

  .news-card { min-width: 0; }

  /* Consistent thumbnails: same 16:9 frame, cropped not stretched */
  .news-img-box {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .news-img-box img { object-fit: cover; }

  /* Titles max 2 lines so different lengths can't misalign the grid */
  .news-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   LOCAL / INTERNATIONAL PAGES (local.html, international.html)
   -------------------------------------------------------------------------- */

/* Breadcrumb in the hero: Home / News / Local News */
.page-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 0.85rem;
  color: #cbd5e1;
}
.page-breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: #94a3b8;
}
.page-breadcrumb a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}
.page-breadcrumb a:hover { text-decoration-color: var(--accent-gold); }
.page-breadcrumb a:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }

/* Back to the Newsroom · the other region */
.news-region-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
@media (max-width: 480px) {
  .news-region-links .view-more-btn { width: 100%; justify-content: center; }
}
