.ztw-news,
.ztw-news * {
  box-sizing: border-box;
}

.ztw-news {
  width: 100%;
  background-color: transparent;
}

.ztw-news a,
.ztw-news a:visited,
.ztw-news a:hover,
.ztw-news a:focus,
.ztw-news a:active {
  text-decoration: none !important;
}

.ztw-news-grid {
  --ztw-news-columns: 4;
  display: grid;
  grid-template-columns: repeat(var(--ztw-news-columns), minmax(0, 1fr));
  align-items: stretch;
  column-gap: 28px;
  row-gap: 34px;
}

.ztw-news-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 0 solid transparent;
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease;
}

.ztw-news-card:hover {
  transform: translateY(-2px);
}

.ztw-news-card__image {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e3e3e3;
}

.ztw-news-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.ztw-news-card__placeholder-image {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 18%;
  background: #fff;
}

.ztw-news-card__placeholder-image img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain !important;
}

.ztw-news-card:hover .ztw-news-card__image img {
  transform: scale(1.025);
}

.ztw-news-card__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.92);
  background: linear-gradient(135deg, #18377e, #071d52);
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 800;
  letter-spacing: -.05em;
}

.ztw-news-card__body {
  display: flex;
  min-height: 103px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
}

.ztw-news-card__title {
  width: 100%;
  margin: 0;
  color: #18377e;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.28;
  text-align: center;
}

.ztw-news-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.ztw-news-card__footer {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 20px;
  color: #fff;
  background: #1b3880;
  font-size: 16px;
  line-height: 1;
}

.ztw-news-card__footer time {
  white-space: nowrap;
}

.ztw-news-card__read {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.ztw-news-card__arrow {
  display: block;
  width: 13px;
  height: 13px;
  border-top: 3px solid #ed1c24;
  border-right: 3px solid #ed1c24;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.ztw-news-card__read:hover .ztw-news-card__arrow {
  transform: translateX(3px) rotate(45deg);
}

.ztw-news-all {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
}

.ztw-news-all-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #18377e;
  font-size: 22px;
  line-height: 1.2;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.ztw-news-all-link__icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: #ed1c24;
  font-size: 28px;
  line-height: 1;
  transition: color .2s ease, transform .2s ease;
}

.ztw-news-all-link__icon svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.ztw-news-all-link:hover .ztw-news-all-link__icon {
  transform: translateX(2px);
}

.ztw-news-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  margin: 0 0 30px;
}

.ztw-news-filter label {
  margin: 0;
}

.ztw-news-filter select {
  min-width: 220px;
  height: 46px;
  margin: 0;
  padding: 0 42px 0 15px;
  color: #18377e;
  border: 1px solid #18377e;
  border-radius: 0;
  background-color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.ztw-news-filter noscript button {
  min-height: 46px;
}

.ztw-news-pagination {
  margin-top: 42px;
}

.ztw-news-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ztw-news-pagination li {
  margin: 0;
  padding: 0;
}

.ztw-news-pagination a,
.ztw-news-pagination .current,
.ztw-news-pagination .dots {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  color: #18377e;
  border: 1px solid #18377e;
  text-decoration: none;
}

.ztw-news-pagination .current {
  color: #fff;
  background: #18377e;
}

.ztw-news-pagination .dots {
  border-color: transparent;
}

.ztw-news-empty {
  margin: 0;
  padding: 30px;
  text-align: center;
}

/* Uniwersalny banner strony */
.ztw-page-banner,
.ztw-page-banner * {
  box-sizing: border-box;
}

.ztw-page-banner {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 190px;
  align-items: center;
  overflow: hidden;
  background-color: #18377e;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.ztw-page-banner--full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.ztw-page-banner__overlay {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: #071d52;
  opacity: .55;
}

.ztw-page-banner__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 24px;
}

.ztw-page-banner__title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.ztw-page-banner__dot {
  display: block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #ed1c24;
}

/* Pojedynczy wpis */
.ztw-news-single-page,
.ztw-news-single-page * {
  box-sizing: border-box;
}

.ztw-news-single-page a,
.ztw-news-single-page a:visited,
.ztw-news-single-page a:hover,
.ztw-news-single-page a:focus,
.ztw-news-single-page a:active {
  text-decoration: none !important;
}

.ztw-news-single-banner {
  position: relative;
  display: flex;
  width: 100%;
  min-height: var(--ztw-banner-height, 190px);
  align-items: center;
  overflow: hidden;
  color: var(--ztw-banner-text, #fff);
  background-color: var(--ztw-banner-bg, #18377e);
  background-repeat: no-repeat;
  background-size: cover;
}

.ztw-news-single-banner__overlay {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--ztw-banner-overlay, #071d52);
  opacity: var(--ztw-banner-opacity, .55);
}

.ztw-news-single-banner__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--ztw-single-max, 980px);
  margin: 0 auto;
  padding: 28px 24px;
}

.ztw-news-single-banner__title {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--ztw-banner-text, #fff);
  font-size: clamp(25px, 4vw, var(--ztw-banner-text-size, 38px));
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.ztw-news-single-banner__title > span {
  display: block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--ztw-single-accent, #ed1c24);
}

.ztw-news-archive-banner {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.ztw-news-single,
.ztw-news-single * {
  box-sizing: border-box;
}

.ztw-news-single {
  width: 100%;
  min-height: 50vh;
  padding: clamp(55px, 7vw, 110px) 24px;
  color: var(--ztw-single-text, #18377e);
  background: var(--ztw-single-bg, #fff);
}

.ztw-news-single__article {
  width: 100%;
  max-width: var(--ztw-single-max, 980px);
  margin: 0 auto;
}

.ztw-news-single__header,
.ztw-news-single__content,
.ztw-news-single__footer {
  width: 100%;
  max-width: var(--ztw-single-content, 820px);
  margin-right: auto;
  margin-left: auto;
}

.ztw-news-single__header {
  position: relative;
  margin-bottom: 42px;
  padding-left: 0;
}

.ztw-news-single__marker {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: .575em;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--ztw-single-accent, #ed1c24);
}

.ztw-news-single__header h1 {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  color: var(--ztw-single-title, #18377e);
  font-size: clamp(30px, 4vw, var(--ztw-single-title-size, 44px));
  font-weight: 700;
  line-height: 1.15;
}

.ztw-news-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 18px;
  color: var(--ztw-single-meta, #6a7489);
  font-size: 14px;
}

.ztw-news-single__meta a {
  color: inherit;
  text-decoration: none;
}

.ztw-news-single__featured {
  width: 100%;
  max-width: var(--ztw-single-max, 980px);
  margin: 0 auto 46px;
}

.ztw-news-single__featured img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
}

.ztw-news-single__content {
  color: var(--ztw-single-text, #18377e);
  font-size: var(--ztw-single-body-size, 18px);
  line-height: 1.75;
}

.ztw-news-single__content > :first-child {
  margin-top: 0;
}

.ztw-news-single__content > :last-child {
  margin-bottom: 0;
}

.ztw-news-single__content h2,
.ztw-news-single__content h3,
.ztw-news-single__content h4 {
  margin-top: 1.7em;
  color: var(--ztw-single-title, #18377e);
  line-height: 1.25;
}

.ztw-news-single__content a {
  color: var(--ztw-single-accent, #ed1c24);
}

.ztw-news-single__content img {
  max-width: 100%;
  height: auto;
}

.ztw-news-single__content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  aspect-ratio: 16 / 9;
  height: auto;
}

.ztw-news-single__footer {
  margin-top: 55px;
  padding-top: 24px;
  border-top: 1px solid rgba(24, 55, 126, .18);
}

.ztw-news-single__footer .ztw-news-all {
  justify-content: flex-start;
  margin-top: 0;
}

.ztw-news-single__back {
  color: var(--ztw-single-title, #18377e);
  font-size: 22px;
  font-weight: 500;
}

.ztw-news-single__back .ztw-news-all-link__icon {
  color: var(--ztw-single-accent, #ed1c24);
}

@media (max-width: 767px) {
  .ztw-news-filter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ztw-news-filter select {
    width: 100%;
    min-width: 0;
  }

  .ztw-news-all {
    justify-content: flex-start;
  }

  .ztw-news-all-link {
    font-size: 18px;
  }

  .ztw-news-single {
    padding: 48px 20px 60px;
  }

  .ztw-news-single__header {
    margin-bottom: 32px;
  }
}
