.nsrl-news {
  width: 100%;
  /* fluid: shrinks smoothly from desktop to phone, no sudden jumps */
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 48px);
  box-sizing: border-box;
  font-family: var(--nsrl-font, "DM Sans", sans-serif);
}

.nsrl-news__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Top row: heading + See more ---------- */
.nsrl-news__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.nsrl-news__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2f8f5b;
  margin-bottom: 16px;
}

.nsrl-news__heading {
  font-family: var(--nsrl-font-heading, "DM Sans", sans-serif);
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: #0b2e1e;
  margin: 0;
}

.nsrl-news__see-more {
  flex-shrink: 0;
  padding: 12px 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #2f8f5b; /* Switched to green text */
  background: #ffffff; /* Switched to white background */
  border: none; /* Removed outline border */
  border-radius: 8px; /* Increased border-radius for rounded corners like the image */
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nsrl-news__see-more:hover {
  background-color: #f0f0f0; /* Slight gray hover effect for white background */
  color: #2f8f5b;
}

.nsrl-news__see-more:focus-visible {
  outline: 2px solid #2f8f5b;
  outline-offset: 2px;
}

/* ---------- 3-column grid ---------- */
.nsrl-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(44px, 5vw, 60px) clamp(24px, 3vw, 36px);
}

.nsrl-news__card {
  position: relative;
  min-width: 0;
}

.nsrl-news__card[hidden] {
  display: none;
}

.nsrl-news__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #d8ddd9;
}

.nsrl-news__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

@media (hover: hover) {
  .nsrl-news__card:hover .nsrl-news__image { transform: scale(1.04); }
}

.nsrl-news__media-icon {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
  background-color: #0b2e1e;
}

.nsrl-news__meta {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
}

.nsrl-news__category {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-right: 10px;
}

.nsrl-news__category--news  { color: #2f8f5b; }
.nsrl-news__category--event { color: #7f1d33; }

.nsrl-news__date {
  padding-left: 10px;
  border-left: 1px solid #cfd6d1;
  color: #6b7a70;
}

.nsrl-news__title {
  font-family: var(--nsrl-font-heading, "DM Sans", sans-serif);
  font-size: clamp(19px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  color: #0b2e1e;
  margin: 0 0 12px 0;
  overflow-wrap: break-word;
}

/* The title is a real button; its ::after stretches over the whole card so the entire card is clickable */
.nsrl-news__open,
.nsrl-news__open:link,
.nsrl-news__open:visited {
  display: inline;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nsrl-news__open::after {
  content: "";
  position: absolute;
  inset: 0;
}

.nsrl-news__open:focus-visible {
  outline: none;
}

.nsrl-news__open:focus-visible::after {
  outline: 2px solid #2f8f5b;
  outline-offset: 6px;
  border-radius: 4px;
}

@media (hover: hover) {
  .nsrl-news__card:hover .nsrl-news__open { color: #2f8f5b; }
}

/* touch feedback instead of hover */
.nsrl-news__card:active .nsrl-news__open { color: #2f8f5b; }

.nsrl-news__summary {
  font-size: 15px;
  line-height: 1.7;
  color: #5b6b62;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Details window ---------- */
.nsrl-news-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  font-family: var(--nsrl-font, "DM Sans", sans-serif);
}

.nsrl-news-modal.is-open {
  display: flex;
}

.nsrl-news-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(11, 46, 30, 0.65);
}

.nsrl-news-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 100%;
  overflow-y: auto;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.nsrl-news-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #ffffff;
  background-color: rgba(11, 46, 30, 0.85);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.nsrl-news-modal__close:hover {
  background-color: #2f8f5b;
}

.nsrl-news-modal__close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.nsrl-news-modal__image {
  width: 100%;
  aspect-ratio: 16 / 8;
  background-color: #d8ddd9;
  background-size: cover;
  background-position: center;
}

.nsrl-news-modal__body {
  padding: 28px 32px 36px;
}

.nsrl-news-modal__meta {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
}

.nsrl-news-modal__category {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-right: 10px;
}

.nsrl-news-modal__category.is-news  { color: #2f8f5b; }
.nsrl-news-modal__category.is-event { color: #7f1d33; }

.nsrl-news-modal__date {
  padding-left: 10px;
  border-left: 1px solid #cfd6d1;
  color: #6b7a70;
}

.nsrl-news-modal__title {
  font-family: var(--nsrl-font-heading, "DM Sans", sans-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: #0b2e1e;
  margin: 0 0 12px 0;
}

.nsrl-news-modal__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7a70;
  margin-bottom: 18px;
}

.nsrl-news-modal__details {
  font-size: 15px;
  line-height: 1.7;
  color: #5b6b62;
}

.nsrl-news-modal__details p {
  margin: 0 0 14px 0;
}

/* ---------- Responsive ----------
   Desktop  : 3 columns (above 1024px)
   Tablet   : 2 columns (641px - 1024px)
   Mobile   : 1 column  (640px and below)
   ------------------------------------------------ */
@media (max-width: 1024px) {
  .nsrl-news__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nsrl-news__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .nsrl-news__eyebrow { margin-bottom: 12px; }
  .nsrl-news__grid { grid-template-columns: 1fr; gap: 48px; }
  .nsrl-news__media { aspect-ratio: 16 / 9; margin-bottom: 18px; }
  .nsrl-news__meta { font-size: 12.5px; margin-bottom: 10px; }
  .nsrl-news__title { margin-bottom: 10px; }
  .nsrl-news__media-icon { width: 40px; height: 40px; font-size: 18px; }

  .nsrl-news-modal { padding: 12px; }
  .nsrl-news-modal__body { padding: 20px 20px 28px; }
  .nsrl-news-modal__title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .nsrl-news__image { transition: none; }
  .nsrl-news__card:hover .nsrl-news__image { transform: none; }
}