@keyframes news-fast-shake {
  0% { transform: translateX(-50%) translate(0, 0) rotate(0); }
  20% { transform: translateX(-50%) translate(0.5px, -0.5px) rotate(0.2deg); }
  40% { transform: translateX(-50%) translate(-0.5px, 0.5px) rotate(-0.2deg); }
  60% { transform: translateX(-50%) translate(0.5px, 0.5px) rotate(0.2deg); }
  80% { transform: translateX(-50%) translate(-0.5px, -0.5px) rotate(-0.2deg); }
  100% { transform: translateX(-50%) translate(0, 0) rotate(0); }
}

body.page--news {
  position: relative;
  max-width: none;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

body.page--news::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: min(42vw, 62vh);
  background: url("../../imgs/news-background.png") center top / 100% auto no-repeat;
  pointer-events: none;
  z-index: 0;
}

.news {
  position: relative;
  z-index: 1;
  width: auto;
  margin: 0;
  padding: 30px 30px 140px 220px;
  box-sizing: border-box;
}

.news-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-newsletter {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 57.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 80px;
}

.news-newsletter__border {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 57.5px;
  pointer-events: none;
}

.news-newsletter__border svg {
  width: 200px;
  height: 57.5px;
  display: block;
}

.news-newsletter__border svg .st0,
.news-newsletter__border svg [stroke] {
  fill: #F7F7EB;
  stroke: #000;
  stroke-width: 2px;
}

.news-newsletter__text {
  position: relative;
  display: block;
  max-width: calc(100% - 24px);
  z-index: 1;
  font-size: 0.95rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.news-newsletter:hover:not(:focus):not(:focus-visible):not(:active) {
  animation: news-fast-shake 140ms ease-in-out infinite;
}

.news-newsletter:focus,
.news-newsletter:focus-visible,
.news-newsletter:active {
  animation: none;
}

.news-title-wrap {
  position: relative;
  width: 100%;
  min-height: calc(var(--section-title-svg-height) + 96px);
  padding-top: 160px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.news-title-image {
  width: auto;
  height: var(--section-title-svg-height);
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.news-title-image--mobile {
  display: none;
}

.news-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.news-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-meta {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px 20px;
}

.news-year,
.news-category,
.news-link {
  font-size: var(--font-size-base);
}

.news-category {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-link {
  justify-self: end;
  text-transform: uppercase;
}

.news-link::after {
  content: " \2197";
}

.news-content {
  display: grid;
  gap: 24px;
}

.news-row--with-image .news-content {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  align-items: start;
}

.news-row--simple .news-content {
  grid-template-columns: minmax(0, 1fr);
}

.news-text {
  font-size: var(--font-size-base);
}

.news-image {
  margin: 0;
}

.news-image img {
  width: 100%;
  height: auto;
  display: block;
}

.news-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

.news-divider svg .st0,
.news-divider svg [stroke] {
  stroke: #000;
  fill: none;
  stroke-width: 2px;
}

.news-empty {
  font-size: var(--font-size-base);
}

@media screen and (max-width: 64rem), screen and (max-height: 699px) {
  .news {
    width: auto;
    padding: 120px 6vw 120px 6vw;
  }

  body.page--news::before {
    height: 20vh;
    background-size: auto 20vh;
  }
}

@media screen and (max-width: 64rem) {
  .news-title-image {
    width: auto;
    height: var(--section-title-svg-height-mobile);
    max-width: 100%;
  }

  .news-title-image--desktop {
    display: none;
  }

  .news-title-image--mobile {
    display: block;
  }

  .news-newsletter {
    display: none;
  }

  .news-meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .news-link {
    justify-self: start;
  }

  .news-row--with-image .news-content {
    grid-template-columns: 1fr;
  }
}
