.ugel-noticia-card {
  background: var(--ugel-white);
  border: 1px solid var(--ugel-border);
  border-radius: var(--ugel-r12);
  overflow: hidden;
  box-shadow: var(--ugel-shadow-s);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.ugel-noticia-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ugel-shadow-m);
}

.ugel-noticia-card__media {
  display: block;
  position: relative;
  overflow: hidden;
}

.ugel-noticia-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ugel-noticia-card:hover .ugel-noticia-card__media img {
  transform: scale(1.04);
}

/* Consistent card shape when a noticia has no featured image: a branded
   gradient block at the same 16/10 ratio as the image, so every card keeps
   the same silhouette + date badge across the grid (feature 012 review) —
   instead of some cards leading with an image and others with a bare title. */
.ugel-noticia-card__media--placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--ugel-ink) 0%, var(--ugel-ink-soft) 55%, var(--ugel-blue) 100%);
}

.ugel-noticia-card__date {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(14, 26, 43, 0.85);
  color: var(--ugel-white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.ugel-noticia-card__body {
  padding: 1rem 1.25rem 1.25rem;
}

.ugel-noticia-card__title {
  font-family: var(--ugel-font-display);
  font-weight: var(--ugel-fw-heading);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.ugel-noticia-card__title a {
  color: var(--ugel-ink);
}

.ugel-noticia-card__excerpt {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ugel-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ugel-noticia-card--small .ugel-noticia-card__title {
  font-size: 0.95rem;
}

.ugel-noticia-card--large .ugel-noticia-card__title {
  font-size: 1.25rem;
}
