/* Hírek listája: az első hír nagy kártyán, a többi kisebb kártyákon. Telefonon egy oszlop, 768 px felett kettő.
   A képek mindig teljes 16:9 arányban látszanak (nincs magasságkorlát, ami levágná őket). */
.hv-newslist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hv-newslist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hv-ncard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(45, 45, 45, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hv-ncard:hover {
  border-color: rgba(225, 6, 0, 0.6);
}

.hv-ncard--lead,
.hv-newslist__ad {
  grid-column: 1 / -1;
}

.hv-ncard__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}

.hv-ncard__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hv-ncard:hover .hv-ncard__media img {
  transform: scale(1.03);
}

.hv-ncard__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.hv-ncard--lead .hv-ncard__body {
  padding: 22px 24px 24px;
}

/* Egy sorban: kategória, dátum, megtekintés, hozzászólás (sortöréssel, ha nem fér ki) */
.hv-ncard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

.hv-ncard__cat {
  padding: 3px 9px;
  color: #fff;
  background: #e10600;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hv-ncard__stat i {
  margin-right: 5px;
}

.hv-ncard__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.hv-ncard--lead .hv-ncard__title {
  font-size: 1.6rem;
}

.hv-ncard__title a {
  color: #fff;
  text-decoration: none;
}

/* Az egész kártya kattintható a cím linkjén keresztül */
.hv-ncard__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hv-ncard__title a:focus-visible {
  outline: none;
}

.hv-ncard:has(.hv-ncard__title a:focus-visible) {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hv-ncard__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
}

.hv-ncard--lead .hv-ncard__excerpt {
  margin-bottom: 18px;
}

.hv-ncard__more {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .hv-ncard,
  .hv-ncard__media img {
    transition: none;
  }

  .hv-ncard:hover .hv-ncard__media img {
    transform: none;
  }
}

/* Hírkártya méretű reklám a hírek között: a rács egy cellája, mint egy hír.
   Amíg a Google hirdetést ad, az látszik; ha nem ad („unfilled”), a saját ajánló tölti ki a helyet. */
.hv-ncard--ad {
  align-items: stretch;
  justify-content: center;
  min-height: 300px;
  padding: 30px 14px 14px;
  text-align: center;
}

.hv-ncard__adlabel {
  position: absolute;
  top: 9px;
  left: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hv-ncard__adslot,
.hv-ncard__adslot > div,
.hv-ncard__adslot .advertisement-item,
.hv-ncard__adslot .advertisement-item > div {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.hv-ncard__adslot ins.adsbygoogle {
  width: 100%;
}

/* Saját ajánló: alapból rejtve, csak üres reklámhely esetén jelenik meg */
.hv-ncard__promo {
  display: none;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 6px;
  color: #fff;
  text-decoration: none;
}

.hv-ncard__promo > i {
  color: #e10600;
  font-size: 2.4rem;
}

.hv-ncard__promo strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hv-ncard__promo span {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.hv-ncard__promo em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font-style: normal;
  font-weight: 700;
  background: #e10600;
  border-radius: 6px;
}

.hv-ncard--ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) .hv-ncard__adslot,
.hv-ncard--ad:not(:has(ins.adsbygoogle)) .hv-ncard__adslot {
  display: none;
}

.hv-ncard--ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) .hv-ncard__promo,
.hv-ncard--ad:not(:has(ins.adsbygoogle)) .hv-ncard__promo {
  display: flex;
}

.hv-ncard--ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) .hv-ncard__adlabel,
.hv-ncard--ad:not(:has(ins.adsbygoogle)) .hv-ncard__adlabel {
  display: none;
}

.hv-ncard__promo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
