/* Aktualnosci: nowoczesniejsze karty, paginacja i czytelniejszy pojedynczy wpis. */
.news-modern-grid {
  align-items: stretch;
  row-gap: 7rem;
}

.news-card-modern {
  height: auto;
}

.news-card-modern__media-link,
.news-card-modern__title-link {
  color: inherit;
  display: block;
  height: auto;
  text-decoration: none !important;
}

.news-card-modern__media {
  aspect-ratio: 366 / 199;
  background: rgba(0, 0, 0, .06);
  border-radius: 12px;
  display: block;
  overflow: hidden;
}

.news-card-modern__image {
  display: block;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform .24s ease, filter .24s ease;
  width: 100%;
}

.news-card-modern__content {
  display: block;
  padding: 0 1.2rem;
}

.news-card-modern__date {
  color: rgba(59, 54, 100, .62);
  display: block;
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 2.4rem 0 1.8rem;
}

.news-card-modern__title {
  color: var(--textColor);
  display: block;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 1.8rem;
  min-height: 5.9rem;
}

.news-card-modern__excerpt {
  color: var(--textColor);
  font-size: 1.7rem;
  line-height: 1.45;
  min-height: 7.4rem;
  opacity: .86;
}

.news-card-modern__title.line-clamp-2,
.news-card-modern__excerpt.line-clamp-3 {
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.news-card-modern__title.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.news-card-modern__excerpt.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.news-card-modern__cta {
  align-items: center;
  align-self: flex-start;
  background: var(--color2);
  border-radius: 18px;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.8rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  margin-top: 3rem;
  min-height: 5.6rem;
  min-width: 12.4rem;
  padding: 0 2.4rem;
  text-decoration: none !important;
  transition: background .18s ease, transform .18s ease;
}

.news-archive-modern .news-card-modern.mb-50 {
  margin-bottom: 0;
}

.news-card-modern__media-link:hover .news-card-modern__image,
.news-card-modern__media-link:focus-visible .news-card-modern__image {
  filter: contrast(1.05) saturate(1.05);
  transform: scale(1.035);
}

.news-card-modern__title-link:hover .news-card-modern__title,
.news-card-modern__title-link:focus-visible .news-card-modern__title {
  color: var(--color2);
}

.news-card-modern__cta:hover,
.news-card-modern__cta:focus-visible {
  background: #63cc2b;
  transform: translateY(-1px);
}

.news-card-modern__media-link:focus-visible,
.news-card-modern__title-link:focus-visible,
.news-card-modern__cta:focus-visible {
  outline: 3px solid rgba(80, 180, 30, .45);
  outline-offset: 5px;
}

.news-pagination {
  display: flex;
  justify-content: center;
  margin: 7.5rem 0 10rem;
}

.news-pagination .page-numbers {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
}

.news-pagination .page-numbers li {
  display: block;
}

.news-pagination .page-numbers a,
.news-pagination .page-numbers span {
  align-items: center;
  background: rgba(59, 54, 100, .08);
  border-radius: 12px;
  color: var(--textColor);
  display: inline-flex;
  font-size: 1.6rem;
  font-weight: 700;
  justify-content: center;
  min-height: 4.4rem;
  min-width: 4.4rem;
  padding: 0 1.6rem;
  text-decoration: none;
}

.news-pagination .page-numbers .current {
  background: var(--color2);
  color: #ffffff;
}

.news-pagination .page-numbers a:hover {
  background: rgba(80, 180, 30, .16);
}

.news-single-modern h1.fs-54 {
  font-size: 5.4rem;
  font-weight: 700;
  margin: 0 0 2.5rem;
}

.news-single-modern__media {
  max-width: 59rem;
}

.news-single-modern .news-single-modern__image {
  aspect-ratio: 590 / 467;
  height: auto;
  object-fit: cover;
  width: 59rem;
}

.news-single-modern__date time {
  color: inherit;
}

.news-single-modern__content {
  max-width: 88rem;
}

html.dark-mode a.news-card-modern__media-link,
html.dark-mode a.news-card-modern__title-link,
html.dark-mode .news-card-modern__title {
  color: #f2f5f8 !important;
}

html.dark-mode .news-card-modern__title-link:hover .news-card-modern__title,
html.dark-mode .news-card-modern__title-link:focus-visible .news-card-modern__title {
  color: #7ed957 !important;
}

html.dark-mode .news-card-modern__date {
  color: rgba(242, 245, 248, .72) !important;
}

html.dark-mode .news-card-modern__excerpt {
  color: rgba(242, 245, 248, .92) !important;
}

html.dark-mode .news-card-modern__media {
  background: rgba(255, 255, 255, .06);
}

html.dark-mode .news-card-modern__cta,
html.dark-mode a.news-card-modern__cta {
  background: #50b41e !important;
  color: #ffffff !important;
}

html.dark-mode .news-card-modern__cta:hover,
html.dark-mode .news-card-modern__cta:focus-visible {
  background: #63cc2b !important;
}

html.dark-mode .news-pagination .page-numbers a,
html.dark-mode .news-pagination .page-numbers span {
  background: rgba(255, 255, 255, .08);
  color: #f2f5f8;
}

html.dark-mode .news-pagination .page-numbers .current {
  background: #50b41e;
  color: #ffffff;
}

html.dark-mode .news-pagination .page-numbers a:hover {
  background: rgba(80, 180, 30, .22);
}

@media only screen and (max-width: 767px) {
  .news-card-modern {
    margin-bottom: 0;
  }

  .news-modern-grid {
    row-gap: 4rem;
  }

  .news-card-modern__content {
    padding: 0;
  }

  .news-card-modern__date {
    font-size: 14px;
    margin: 18px 0 14px;
  }

  .news-card-modern__title {
    font-size: 22px;
    min-height: auto;
  }

  .news-card-modern__excerpt {
    font-size: 15px;
    min-height: auto;
  }

  .news-card-modern__cta {
    border-radius: 16px;
    font-size: 16px;
    margin-top: 24px;
    min-height: 48px;
    min-width: 112px;
  }

  .news-pagination {
    margin: 5rem 0 6rem;
  }

  .news-pagination .page-numbers a,
  .news-pagination .page-numbers span {
    font-size: 15px;
    min-height: 40px;
    min-width: 40px;
    padding: 0 12px;
  }

  .news-single-modern h1.fs-54 {
    font-size: 30px;
  }

  .news-single-modern__media {
    float: none;
    max-width: 100%;
    padding-left: 0 !important;
  }

  .news-single-modern .news-single-modern__image {
    width: 100%;
  }

  .news-single-modern__content {
    max-width: 100%;
    padding-right: 0 !important;
  }
}
