.cards {
  display: grid;
  gap: 1.5rem;
}

.card {
  border-radius: 10px;
  overflow: hidden;
  background: white;
  text-align: left;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card__media {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__content {
  padding: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.4;
}


@media (min-width: 768px) {

.cards {
  grid-template-columns: repeat(3, 1fr);
 }

.card__media {
  height: 180px;
 }
}