/* Verze 2 – změna názvu slouží také k bezpečnému obnovení cache prohlížeče. */
/* === Aktuality – moderní redesign === */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card img.card-img-top {
  height: 180px;
  object-fit: cover;
  width: 100%;
  border-bottom: 1px solid #eee;
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 0.5rem;
}

.card-body .btn {
  margin-top: auto;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}

/* Alternativní layout pro obrázek v náhledu */
.img-thumb-wrapper {
  height: 160px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #dee2e6;
}

.img-thumb-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Responsivita */
@media (max-width: 768px) {
  .card-title {
    font-size: 1.15rem;
  }
  .card-subtitle {
    font-size: 0.85rem;
  }
  .card-text {
    font-size: 0.9rem;
  }
  .card img.card-img-top {
    height: 150px;
  }
}

/* Odkaz na více aktualit */
.aktuality-link {
  color: var(--primary);
  font-weight: 500;
}

.aktuality-link:hover {
  text-decoration: underline;
}
