/* ============ NEWS PAGE ============ */

/* active nav link in header, since we're on the News page */
.nav-link-active {
  color: #000;
}
.nav-link-active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
}

/* ---------- HERO HEADING ---------- */
.news-hero-heading {
  font-family: 'Switzer', ui-sans-serif, system-ui, sans-serif;
}
.news-hero-line {
  padding-bottom: 0.06em;
}
.news-hero-word {
  will-change: transform, opacity;
  text-align: center;
}

/* second line sits in its own overflow-hidden mask so the animated word
   can slide up/out and a new one can slide in from below without ever
   spilling outside the heading's box */
.news-anim-mask {
  position: relative;
}
#news-anim-word {
  will-change: transform, opacity;
}

/* ---------- SIDEBAR FILTERS ---------- */
#news-filters {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#news-filters::-webkit-scrollbar {
  display: none;
}
.news-filter-btn {
  position: relative;
  text-align: left;
  font-size: 15px;
  padding: 6px 0;
  color: rgba(0, 0, 0, 0.35);
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.3s ease;
}
.news-filter-btn::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.3s ease;
  vertical-align: middle;
}
.news-filter-btn:hover {
  color: rgba(0, 0, 0, 0.7);
}
.news-filter-btn.active {
  color: #000;
  font-weight: 600;
}
.news-filter-btn.active::before {
  opacity: 1;
}

@media (max-width: 767px) {
  #news-filters {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  .news-filter-btn {
    padding: 4px 0 12px;
  }
}

/* ---------- NEWS GRID / CARDS ---------- */
.news-item {
  display: block;
}
.news-item.is-hidden {
  display: none;
}
.news-item-media {
  background-color: rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  width: 100%;
}
.news-item-media--rect {
  aspect-ratio: 313 / 346;
  border-radius: 4px;
}
.news-item-media--circle {
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
}
.news-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-item-link:hover .news-item-media img {
  transform: scale(1.06);
}
.news-item-link:hover .news-item-media {
  clip-path: inset(0 round 4px);
}
.news-item-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-item-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: -0.12px;
  text-transform: capitalize;
  color: #000;
}
.news-item-meta .news-item-date {
  opacity: 0.5;
}
.news-item-title {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #000;
}
