.news-block {
  width: min(100% - 16px, 1120px);
  margin: 0 auto;
  padding: 7px 0 10px;
  border-bottom: 2px solid var(--line);
}

.news-block-heading {
  position: relative;
  min-height: 47px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 22px;
  padding: 0 0 6px 18px;
}

.news-block-index {
  position: absolute;
  top: 3px;
  left: 0;
  font-size: 10px;
  line-height: 1;
}

.news-block-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--hero-display-font);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.065em;
  white-space: nowrap;
}

.news-block-heading p {
  margin: 0;
  font-size: 15px;
  line-height: 1.1;
  white-space: nowrap;
}

.news-block-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.news-block-link span { font-size: 22px; line-height: .8; }

.news-block-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.news-feature {
  grid-column: span 2;
  position: relative;
  isolation: isolate;
  min-height: 294px;
  overflow: hidden;
  background: #25323a;
  color: #fff;
}

.news-image {
  position: relative;
  min-height: 76px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #aeb7bb, #53616a);
  color: rgba(255,255,255,.8);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  filter: grayscale(1) contrast(.9);
  transition: filter .4s ease;
}

.news-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,16,25,.06), rgba(7,16,25,.28));
}

.news-image span { position: relative; z-index: 1; }

.news-image--feature {
  position: absolute;
  z-index: 0;
  inset: 0;
  min-height: 0;
  background: linear-gradient(135deg, #8d989c, #27343c 80%);
}

.news-image--feature::after { background: transparent; }

.news-image--pecs,
.news-image--debrecen,
.news-image--szeged,
.news-image--miskolc,
.news-image--szolnok,
.news-image--kecskemet,
.news-image--veszprem,
.news-image--nyiregyhaza {
  background-size: cover;
}

.news-image--pecs { background-image: url("assets/hero/pecs.jpg"); background-position: center 58%; }
.news-image--debrecen { background-image: url("assets/hero/debrecen.jpg"); background-position: center 48%; }
.news-image--szeged { background-image: url("assets/hero/szeged.jpg"); background-position: center 42%; }
.news-image--miskolc { background-image: url("assets/hero/miskolc.jpg"); background-position: center 48%; }
.news-image--szolnok { background-image: url("assets/hero/szolnok.jpg"); background-position: center 48%; }
.news-image--kecskemet { background-image: url("assets/hero/kecskemet.jpg"); background-position: center 52%; }
.news-image--veszprem { background-image: url("assets/hero/veszprem.jpg"); background-position: center 52%; }
.news-image--nyiregyhaza { background-image: url("assets/hero/nyiregyhaza.jpg"); background-position: center 48%; }

.news-feature::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0;
  background: transparent;
  pointer-events: none;
}

.news-feature-content {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 18px;
  left: 0;
}

.news-feature-content h3 span,
.news-feature-content p span {
  background: linear-gradient(90deg, rgba(7,16,25,.60) 0%, rgba(7,16,25,0) 100%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: .04em .15em .07em 18px;
}

.news-feature-content > .news-kicker-line {
  display: inline;
  padding: .04em .15em .07em 18px;
  background: linear-gradient(90deg, rgba(7,16,25,.60) 0%, rgba(7,16,25,0) 100%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.news-kicker {
  display: inline-block;
  padding: 3px 6px 2px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.news-feature h3 {
  max-width: 470px;
  margin: 8px 0 7px;
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: .98;
  letter-spacing: -.035em;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: normal;
  word-break: normal;
}

.news-feature p {
  max-width: 465px;
  margin: 0;
  font-size: 13px;
  line-height: 1.12;
}

.news-list {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.news-bottom-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.news-bottom-row .news-card { border-bottom: 0; }

.news-more-button {
  display: none;
}

.news-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 128px 63px;
  border-bottom: 1px solid #8f989f;
}

.news-card-content {
  position: relative;
  z-index: 1;
  min-height: 63px;
  padding: 0 28px 0 8px;
}

.news-card .news-kicker {
  position: relative;
  z-index: 2;
  transform: translateY(-110%);
  background: #fff;
  color: var(--blue);
}

.news-card h3 {
  margin: -12px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: normal;
  word-break: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 34%, rgba(0,0,0,.68) 72%, rgba(0,0,0,.34) 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 34%, rgba(0,0,0,.68) 72%, rgba(0,0,0,.34) 100%);
}

.news-arrow {
  position: absolute;
  right: 5px;
  bottom: 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: .8;
  text-decoration: none;
}

@media (hover: hover) {
  .news-feature:hover .news-image,
  .news-card:hover .news-image {
    filter: grayscale(0) contrast(1);
  }
}

@media (max-width: 800px) {
  .news-block { width: 100%; padding: 7px 16px 10px; }
  .news-block-heading { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding-left: 16px; }
  .news-block-heading h2 { grid-column: 1; grid-row: 1; font-size: clamp(24px, 7vw, 34px); white-space: nowrap; }
  .news-block-heading p { display: block; grid-column: 1; grid-row: 2; margin: 0; font-size: 13px; white-space: normal; }
  .news-block-link { grid-column: 1; grid-row: 3; justify-self: start; align-self: auto; margin-top: 1px; font-size: 11px; }
  .news-block-grid { grid-template-columns: 1fr; gap: 12px; }
  .news-feature, .news-list { grid-column: 1; }
  .news-list { grid-template-columns: 1fr; gap: 0; }
  .news-list .news-card:nth-child(n+4) { display: none; }
  .news-list.is-open .news-card:nth-child(n+4) { display: grid; }
  .news-card { grid-template-columns: 124px minmax(0, 1fr); grid-template-rows: 72px; }
  .news-card .news-image { min-height: 0; margin: 3px 0; }
  .news-card-content { overflow: hidden; margin: 0 0 3px; padding: 0 26px 0 14px; }
  .news-card .news-kicker { transform: none; padding: 0; }
  .news-card h3 { margin: 0; font-size: 14px; line-height: 1.02; -webkit-line-clamp: 3; }
  .news-card .news-arrow { top: 50%; right: 5px; bottom: auto; transform: translateY(-50%); }
  .news-bottom-row { display: none; grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .news-bottom-row.is-open { display: grid; }
  .news-more-button { width: 100%; min-height: 48px; margin-top: 12px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: var(--blue); color: #fff; font: 700 15px/1.05 "Space Grotesk", Arial, sans-serif; cursor: pointer; }
  .news-more-button strong { font-size: 22px; line-height: 1; }
  .news-feature { min-height: 300px; }
  .news-feature-content { right: 16px; bottom: 15px; left: 0; }
  .news-feature-content h3 span,
  .news-feature-content p span { padding-left: 14px; }
  .news-feature-content > .news-kicker-line { padding-left: 14px; }
  .news-feature h3 { font-size: 25px; }
  .news-feature p { font-size: 12px; }
  .news-card h3 { font-size: 14px; }
}

@media (max-width: 520px) {
  .news-block-heading { display: grid; grid-template-columns: 1fr; min-height: 0; padding: 2px 0 8px 16px; }
  .news-block-heading h2 { margin-bottom: 8px; }
  .news-block-heading p { margin: 0; }
  .news-block-link { position: static; justify-content: flex-start; margin-top: 1px; }
  .news-list { grid-template-columns: 1fr; gap: 0; }
  .news-bottom-row { grid-template-columns: 1fr; gap: 0; }
  .news-card { grid-template-rows: 72px; }
}
