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

.hero-section .hero-title {
  margin-bottom: 0.625rem;
}

.hero-section .hero-subtitle {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--color-slate);
  text-align: center;
}

.news-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--grid-gap);
}

.stat-card {
  background: var(--color-white);
  border: var(--border-width) solid var(--color-silver);
  border-radius: var(--border-radius-md);
  padding: var(--card-padding);
  text-align: center;
  display: grid;
  gap: var(--space-xs);
  border-top-width: 2px;
  border-top-color: var(--color-sage);
}

.stat-number {
  font-family: var(--font-family-heading);
  font-size: clamp(1.8rem, 1.6rem + 0.8vw, 2.4rem);
  font-weight: var(--weight-regular);
  color: var(--color-sage);
  margin-bottom: 0;
}

.stat-label {
  font-family: var(--font-family-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0;
  color: var(--color-slate);
  margin-bottom: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--grid-gap);
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: var(--border-width) solid var(--color-silver);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.news-image-container {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: var(--border-width) solid rgba(176, 196, 177, 0.14);
  background: var(--tint-sage-08);
  color: var(--color-sage);
  font-family: var(--font-family-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0;
}

.news-content {
  padding: var(--card-padding);
  display: grid;
  gap: var(--space-sm);
}

.news-title {
  font-family: var(--font-family-heading);
  font-weight: var(--weight-regular);
  margin-bottom: 0;
}

.news-description {
  margin: 0;
  color: var(--color-slate);
  line-height: var(--line-height-body);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-family-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0;
  color: var(--color-sage);
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.news-carousel {
  position: relative;
  height: 240px;
}

.news-carousel .carousel-item img {
  height: 100%;
  object-fit: cover;
}

.news-carousel .carousel-control-prev,
.news-carousel .carousel-control-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  border: var(--border-width) solid var(--color-sage);
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.news-carousel .carousel-control-prev:hover,
.news-carousel .carousel-control-next:hover,
.news-carousel .carousel-control-prev:focus-visible,
.news-carousel .carousel-control-next:focus-visible {
  background: var(--tint-sage-08);
  border-color: var(--color-sage);
  opacity: 1;
}

.news-carousel .carousel-control-prev-icon,
.news-carousel .carousel-control-next-icon {
  width: 1.25rem;
  height: 1.25rem;
  filter: brightness(0) saturate(100%) invert(67%) sepia(11%) saturate(707%) hue-rotate(76deg) brightness(91%) contrast(86%);
}

@media (max-width: 768px) {
  .news-carousel .carousel-control-prev,
  .news-carousel .carousel-control-next {
    width: 38px;
    height: 38px;
  }

  .news-carousel .carousel-control-prev-icon,
  .news-carousel .carousel-control-next-icon {
    width: 1.125rem;
    height: 1.125rem;
  }
}

.timeline-section {
  display: grid;
  gap: var(--space-md);
  background: var(--color-white);
  border: var(--border-width) solid var(--color-silver);
  border-radius: var(--border-radius-md);
  padding: var(--card-padding);
}

.timeline-title {
  font-family: var(--font-family-heading);
  font-weight: var(--weight-regular);
  margin-bottom: 0;
  text-align: center;
}

.timeline-description {
  margin-bottom: 0;
  text-align: center;
  color: var(--color-slate);
}

.news-timeline {
  position: relative;
  display: grid;
  gap: var(--space-lg);
  padding-left: 1.75rem;
}

.news-timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-silver);
}

.news-timeline-item {
  position: relative;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.news-timeline-item::before {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 0.3rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-sage);
}

.news-timeline-date {
  font-family: var(--font-family-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0;
  color: var(--color-slate);
  margin-bottom: 0;
}

.news-timeline-title {
  font-weight: var(--weight-regular);
  margin-bottom: 0;
}

.news-timeline-summary {
  margin: 0;
  color: var(--color-slate);
}

.news-pagination {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

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

  .news-timeline {
    padding-left: 1.25rem;
  }

  .news-timeline::before {
    left: 0.45rem;
  }
}
