/*
 * how-to-guide-card — converted from src/components/how-to/HowToGuideCard.module.css
 * Declarations are unchanged; only class selectors were renamed.
 */
.np-how-to-guide-card__card {
  display: block;

  /* The containing block for the stretched title link; see utilities.css. */
  position: relative;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.np-how-to-guide-card__image {
  height: 200px;
  position: relative;
  background: linear-gradient(135deg, #c8dac8 0%, #9ab89a 100%);
}

.np-how-to-guide-card__thumbnail {
  object-fit: cover;
}

.np-how-to-guide-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-how-to-guide-card__content {
  padding: 24px;
}

.np-how-to-guide-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-how-to-guide-card__content p,
.np-how-to-guide-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-how-to-guide-card__content p,
.np-how-to-guide-card__content .elementor-widget-theme-post-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}


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

.np-how-to-guide-card__card:hover .np-how-to-guide-card__link {
  gap: 10px;
}

.np-how-to-guide-card__link::after {
  content: "→";
}
