/* =========================
   NEWS ARCHIVE
========================= */

.cv-news-archive {
  padding-bottom: 80px;
}

.cv-news-hero {
  padding: 90px 0 70px;
  background: linear-gradient(135deg, #111 0%, #1b1230 50%, #0d0d0d 100%);
  color: #fff;
}

.cv-news-hero h1 {
  margin: 0 0 14px;
  font-size: 48px;
  line-height: 1.1;
}

.cv-news-hero p {
  max-width: 620px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.85;
}

.cv-news-listing {
  padding: 70px 0 0;
}

/* Featured */

.cv-news-featured {
  margin-bottom: 60px;
}

.news-featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 42px;
  align-items: center;
  padding: 28px;
  border-radius: 22px;
  background: #111;
  color: #fff;
}

.news-featured-image {
  display: block;
  border-radius: 18px;
  overflow: hidden;
}

.news-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-featured-content h2 {
  margin: 16px 0 14px;
  font-size: 34px;
  line-height: 1.15;
}

.news-featured-content h2 a {
  color: inherit;
  text-decoration: none;
}

.news-featured-content p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.85;
}

/* Grid */

.cv-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.news-card__image {
  display: block;
  overflow: hidden;
}

.news-card__image img {
  display: block;
  width: 100%;
  height: auto;
  width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card__image img {
  transform: scale(1.05);
}

.news-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.news-card__date,
.news-date {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.7;
}

.news-category {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.news-card h3 {
  margin: 14px 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.82;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.news-read-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.news-read-more:hover svg {
  transform: translateX(4px);
}

.cv-news-empty {
  grid-column: 1 / -1;
  text-align: center;
  opacity: 0.75;
}

#cv-news-load-trigger {
  height: 1px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1199px) {
  .cv-news-hero h1 {
    font-size: 42px;
  }

  .news-featured-card {
    gap: 30px;
  }

  .news-featured-content h2 {
    font-size: 30px;
  }

  .cv-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .cv-news-hero {
    padding: 70px 0 55px;
  }

  .news-featured-card {
    grid-template-columns: 1fr;
  }

  .news-featured-content h2 {
    font-size: 28px;
  }

  .news-featured-image img {
    height: auto;
    object-fit: contain;
    width: 100%;
    aspect-ratio: unset;
  }
}

@media (max-width: 767px) {
  .cv-news-archive {
    padding-bottom: 50px;
  }

  .cv-news-hero {
    padding: 55px 0 45px;
  }

  .cv-news-hero h1 {
    font-size: 34px;
  }

  .cv-news-hero p {
    font-size: 16px;
  }

  .cv-news-listing {
    padding-top: 45px;
  }

  .news-featured-card {
    padding: 0;
    border-radius: 18px;
  }

  .news-featured-content h2 {
    font-size: 25px;
  }

  .cv-news-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .news-card__content {
    padding: 18px;
  }
}
