/*
 * news-card — converted from src/components/news/NewsCard.module.css
 * Declarations are unchanged; only class selectors were renamed.
 */
.np-news-card__card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
  transition: box-shadow 0.2s, transform 0.2s;

  /* The containing block for the stretched title link; see utilities.css. */
  position: relative;
}

.np-news-card__card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.np-news-card__image {
  height: 200px;
  position: relative;
  background: linear-gradient(135deg, #c8dac8 0%, #9ab89a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.np-news-card__cover {
  object-fit: cover;
}

.np-news-card__placeholder-icon svg {
  width: 40px;
  height: 40px;
  stroke: rgba(255, 255, 255, 0.7);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.np-news-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--green2);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 1;
}

.np-news-card__tag-media {
  background: var(--navy);
}

.np-news-card__date {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 1;
}

.np-news-card__content {
  padding: 24px;
}

.np-news-card__content h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

/* See the note on the excerpt widget in case-studies-preview.css. */
.np-news-card__content p,
.np-news-card__content .elementor-widget-theme-post-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

/*
 * The summary is clamped so the cards in a row are the same shape.
 *
 * A Loop Grid stretches every cell to the tallest card in the row, so an
 * unusually long excerpt used to set the height for all four and leave the
 * rest with dead space under the link. Four lines is what the longest of the
 * published summaries runs to; anything past it ends in an ellipsis.
 */
.np-news-card__content p,
.np-news-card__content .elementor-widget-theme-post-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}


.np-news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green2);
  font-size: 13px;
  font-weight: 500;
  transition: gap 0.2s;
}

.np-news-card__link:hover {
  gap: 10px;
}

.np-news-card__link::after {
  content: "→";
}
