/* Grid layout */
.clanky-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0px;
  transform: translateY(-50px);
}

/* Box článku */
.clanky-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: relative;
  padding-bottom: 60px;
  height: 500px; /* zvýšeno pro dostatek prostoru */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s ease;
}

.clanky-box:hover {
  transform: translateY(-4px);
}

/* Obrázek s poměrem 3:2 */
.clanky-img-wrapper {
  width: 100%;
  height: 270px;
  overflow: hidden;
}

.clanky-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;

}

/* Obsah */
.clanky-obsah {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 260px; /* upraveno pro lepší fit textu */
  overflow: visible;
}

/* Datum */
.clanky-datum {
  display: block;
  font-size: 0.85em;
  color: #888;
  margin-bottom: 6px;
}

/* Nadpis */
.clanky-obsah h3 {
  font-size: 1.1em;
  margin: 0 0 8px;
  color: #cc0000;
  height: 2.6em; /* fixní výška pro 2 řádky */
  overflow: hidden;
}

.clanky-obsah h3 a {
  text-decoration: none;
  color: inherit;
}

.clanky-obsah h3 a:hover {
  text-decoration: underline;
}

/* Perex */
.clanky-obsah p {
  font-size: 0.95em;
  line-height: 1.5;
  color: #333;
  margin: 0 0 12px;
  height: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* CTA tlačítko */
.clanky-cta-wrapper {
  position: absolute;
  bottom: 20px;
  left: 16px;
}

.clanky-cta {
  display: inline-block;
  padding: 8px 16px;
  background-color: #cc0000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.clanky-cta:hover {
  background-color: #a80000;
}