/* =========================================================
   BLOG / NOVINKY – kartová mřížka (inspirace McLED /novinky)
   Scope: výpisové stránky článků (#newsWrapper, plněno JS)
   Brand: #1D1D1B / #D61118 / #fff
   ========================================================= */

#newsWrapper.br-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 26px 0 44px;
  padding: 0;
  list-style: none;
}

.br-news-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 12px;
  background-color: #1D1D1B;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.br-news-card.has-img {
  background-image:
    linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.1) 100%),
    var(--news-img);
}

.br-news-card.no-img {
  background-image: linear-gradient(135deg, #1D1D1B 0%, #401014 100%);
}

.br-news-card:hover,
.br-news-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

/* obsah karty */
.br-news-card .text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: inherit;
  padding: 22px 22px 20px;
  box-sizing: border-box;
}

/* datum badge vlevo nahoře */
.br-news-card time {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: #D61118;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 6px;
}

/* nadpis = zároveň „stretched link" přes celou kartu */
.br-news-card a.title {
  color: #fff !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none !important;
  margin: 0 0 8px;
}

.br-news-card a.title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.br-news-card:hover a.title,
.br-news-card:focus-within a.title {
  color: #ff3b41 !important;
}

/* perex */
.br-news-card .br-news-perex {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

/* „Číst více" */
.br-news-card .br-news-more {
  margin-top: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.br-news-card:hover .br-news-more,
.br-news-card:focus-within .br-news-more {
  color: #ff3b41;
}

/* schovaný původní plný obsah článku (zůstává v DOM kvůli SEO/detailu) */
.br-news-desc-hidden {
  display: none !important;
}

/* ---- responsivita ---- */
@media (max-width: 991.98px) {
  #newsWrapper.br-news-grid { gap: 16px; }
}

@media (max-width: 767px) {
  #newsWrapper.br-news-grid { grid-template-columns: 1fr; gap: 16px; }
  .br-news-card { min-height: 240px; }
  .br-news-card a.title { font-size: 18px; }
}
