/* =========================================================
   Homepage Newsroom Row: featured story + scrolling cards (editable widget)
   Matches the scroll mockup: 3 cards visible on desktop,
   up to 10 total, arrows bottom-left, "More News >" bottom-right.
   Heading uses the site's existing .grid_1col h2 styles.
   ========================================================= */
.home .row.news { padding: 56px 0 56px; }

/* ---------- Featured story (optional): text card overlaps image ---------- */
.home .row.news .news-feature-row { margin-bottom: 32px; }
.home .row.news .news-feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  color: #1d1d1d;
  text-decoration: none;
}
.home .row.news .news-feature-img-link { grid-column: 2; grid-row: 1; display: block; }
.home .row.news .news-feature-img-link .news-feature-img { grid-column: auto; grid-row: auto; }
.home .row.news .news-feature-img {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 0%;      /* square source: keep faces in frame */
  margin: 0;
}
.home .row.news .news-feature-text {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  margin-right: -80px;
  padding: 24px 28px;
  background: #f1f5f9;
}
.home .row.news .news-feature-title {
  margin: 0 0 12px;
  color: #00205c;
  font-size: 2.0rem;
  font-weight: 700;
  line-height: 1.3;
}
.home .row.news .news-summary {
  margin: 0 0 16px;
  color: #000;
  font-size: 1.6rem;
  line-height: 1.45;
}
.home .row.news .news-feature { position: relative; }

/* ---------- Scrolling card track ---------- */
.home .row.news .news-cards {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0 0 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;            /* arrows do the work; trackpad/swipe still scroll */
  -webkit-overflow-scrolling: touch;
}
.home .row.news .news-cards::-webkit-scrollbar { display: none; }
.home .row.news .news-cards:focus-visible { outline: 2px solid #0057b8; outline-offset: 4px; }

/* ---------- Card ---------- */
.home .row.news .news-card {
  flex: 0 0 calc((100% - 48px) / 3);   /* 3 visible */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
  color: #1d1d1d;
  text-decoration: none;
}
.home .row.news .news-card-img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0;
}
.home .row.news .news-card-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;                  /* fills the card so the date sits at the bottom */
  padding: 18px 20px 22px;
}
.home .row.news .news-category {
  display: block;
  margin: 0 0 10px;
  color: #114D97;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}
.home .row.news .news-card-title {
  margin: 0 0 20px;
  color: #00205c;
  font-size: 2.0rem;
  font-weight: 700;
  line-height: 1.35;
}
.home .row.news .news-date {
  display: block;
  margin: auto 0 0;                /* pushes the date to the bottom of the card */
  color: #606E7A;
  font-size: 1.4rem;
  text-transform: none;
  letter-spacing: 0;
}
.home .row.news .news-card { position: relative; }

/* ---------- Links: title covers the whole card; category link sits on top ---------- */
.home .row.news .news-title-link { color: inherit; text-decoration: none; }
.home .row.news .news-title-link::after {        /* makes the whole card/feature clickable */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.home .row.news .news-card:hover .news-title-link,
.home .row.news .news-feature:hover .news-title-link,
.home .row.news .news-title-link:focus-visible { text-decoration: underline; }
.home .row.news .news-title-link:focus-visible { outline: none; }
.home .row.news .news-title-link:focus-visible::after { outline: 2px solid #0057b8; outline-offset: 3px; }
.home .row.news a.news-category {
  position: relative;
  z-index: 2;                                     /* above the title overlay, so it gets its own click */
  align-self: flex-start;
  text-decoration: none;
}
.home .row.news a.news-category:hover,
.home .row.news a.news-category:focus-visible { text-decoration: underline; }

/* ---------- Footer: arrows left, More News right ---------- */
.home .row.news .news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
.home .row.news .news-scroll-nav { display: flex; gap: 8px; }
.home .row.news .news-scroll-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #00205c;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home .row.news .news-scroll-btn span { margin-top: -2px; }
.home .row.news .news-scroll-btn:hover { background: #114D97; }
.home .row.news .news-scroll-btn:focus-visible { outline: 2px solid #0057b8; outline-offset: 2px; }
.home .row.news .news-scroll-btn:disabled { opacity: .35; cursor: default; }
.home .row.news .news-scroll-nav.is-hidden { visibility: hidden; }  /* 3 or fewer stories */

.home .row.news .news-more-link {
  color: #00205c;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home .row.news .news-more-link:hover { color: #114D97; }

/* ---------- Tablet: 2 visible ---------- */
@media (max-width: 900px) {
  .home .row.news .news-feature { grid-template-columns: 1fr; }
  .home .row.news .news-feature-img,
  .home .row.news .news-feature-img-link { grid-column: 1; grid-row: 1; }
  .home .row.news .news-feature-text { grid-column: 1; grid-row: 2; margin: -48px 24px 0; }
  .home .row.news .news-cards { gap: 16px; }
  .home .row.news .news-card { flex-basis: calc((100% - 16px) / 2); }
  .home .row.news .news-card-text { padding: 14px 16px 18px; }
}

/* ---------- Phone: 1 card + a peek of the next ---------- */
@media (max-width: 600px) {
  .home .row.news { padding: 40px 0; }
  .home .row.news .news-feature-row { margin-bottom: 20px; }
  .home .row.news .news-feature-img { aspect-ratio: 1 / 1; }
  .home .row.news .news-feature-text { margin: 0; padding: 16px; }
  .home .row.news .news-feature-title { margin-bottom: 8px; }
  .home .row.news .news-summary {
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;         /* long descriptions end in "..." after 3 lines */
    overflow: hidden;
  }
  .home .row.news .news-card { flex-basis: 85%; }
  .home .row.news .news-card-text { padding: 16px; }
  .home .row.news .news-category { margin-bottom: 4px; }
  .home .row.news .news-card-title { line-height: 1.3; margin-bottom: 6px; }
}
