/* CARD */
.card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* IMAGE */
.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* BODY */
.card-body {
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

/* TITLE */
.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc;
  text-transform: capitalize;
}

/* DESCRIPTION */
.card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* META */
.card-meta {
  font-size: 0.7rem;
  color: #555;
  margin-top: auto;
}

/* TAGS */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: auto;
  padding-top: 0.3rem;
}

.card-tag {
  background: #222;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  font-size: 0.65rem;
  color: #666;
}
