/* Block 13: latest news. */
.gd37-news {
  position: relative;
  min-height: 880px;
  overflow: hidden;
  color: var(--gd37-ink);
  background: var(--gd37-paper);
}

.gd37-news__top-wave {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 120px;
}

.gd37-news__inner {
  position: relative;
  z-index: 2;
  padding-top: 126px;
  padding-bottom: 70px;
}

.gd37-news__header {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .72fr) minmax(250px, .5fr);
  align-items: start;
  gap: 58px;
}

.gd37-news__header > * { min-width: 0; }

.gd37-news__kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.gd37-news__kicker span {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gd37-green);
}

.gd37-news__title {
  margin: 0;
  font-family: "Adigiana 2", cursive;
  font-size: clamp(50px, 4.25vw, 61px);
  font-weight: 400;
  line-height: 1;
}

.gd37-news__underline {
  display: block;
  width: 405px;
  max-width: 88%;
  height: 13px;
  margin-top: 3px;
  border-bottom: 6px solid var(--gd37-yellow);
  border-radius: 0 0 68% 48%;
  transform: rotate(-.7deg);
}

.gd37-news__intro { margin-top: 0; }

.gd37-news__intro strong {
  display: block;
  font-size: 19px;
  line-height: 1.35;
}

.gd37-news__intro p {
  margin: 9px 0 0;
  color: #567b73;
  font-size: 15px;
  line-height: 1.5;
}

.gd37-page .gd37-news__all {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  margin-top: -6px;
  padding: 0 28px 0 38px;
  border-radius: 46% 54% 48% 52% / 43% 47% 53% 57%;
  color: #fff;
  background: var(--gd37-orange-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform .2s ease, background-color .2s ease;
}

.gd37-page .gd37-news__all:hover,
.gd37-page .gd37-news__all:focus-visible {
  color: #fff;
  background: #e96b11;
  transform: translateY(-2px);
}

.gd37-news__all span { font-size: 28px; font-weight: 400; }

.gd37-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 31px;
  margin-top: 22px;
}

.gd37-news-card {
  --news-accent: var(--gd37-blue);
  position: relative;
  min-height: 532px;
}

.gd37-news-card::before {
  position: absolute;
  inset: 8px -8px -12px -10px;
  border-radius: 33px 37px 31px 39px;
  background: var(--news-accent);
  content: "";
}

.gd37-news-card > a {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #dbe9d6;
  border-radius: 33px 37px 31px 39px;
  color: var(--gd37-ink);
  background: #fff;
}

.gd37-news-card--yellow { --news-accent: var(--gd37-yellow); }
.gd37-news-card--green { --news-accent: var(--gd37-green); }

.gd37-news-card__image {
  flex: 0 0 220px;
  overflow: hidden;
  background: #dde7df;
  -webkit-mask: url("masks/news-image.svg") center / 100% 100% no-repeat;
  mask: url("masks/news-image.svg") center / 100% 100% no-repeat;
}

.gd37-news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd37-news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 29px 27px;
}

.gd37-news-card time {
  display: flex;
  align-items: center;
  gap: 12px;
  color: color-mix(in srgb, var(--news-accent) 76%, #155347);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.gd37-news-card time span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--news-accent);
}

.gd37-news-card h3 {
  margin: 24px 0 0;
  font-family: "Adigiana 2", cursive;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.gd37-news-card p {
  margin: 23px 0 0;
  color: #567b73;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.gd37-news-card__body > strong {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding-top: 20px;
  color: color-mix(in srgb, var(--news-accent) 76%, #155347);
  font-size: 11px;
  text-transform: uppercase;
}

.gd37-news-card__body > strong span {
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.gd37-news__ripples {
  position: absolute;
  top: 190px;
  left: calc(50% - 190px);
  z-index: 3;
  width: 115px;
}

.gd37-news__dots {
  position: absolute;
  top: 213px;
  right: 83px;
  z-index: 2;
  width: 55px;
  height: 32px;
  background-image: radial-gradient(circle, #b8e7ed 2px, transparent 3px);
  background-size: 26px 23px;
}

.gd37-news__bottom-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 68px;
}

@media (max-width: 1100px) {
  .gd37-news__header {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  }

  .gd37-page .gd37-news__all {
    grid-column: 2;
    width: 250px;
    margin-top: -18px;
  }

  .gd37-news__ripples,
  .gd37-news__dots { display: none; }
}

@media (max-width: 900px) {
  .gd37-news { min-height: 0; }

  .gd37-news__header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gd37-page .gd37-news__all {
    grid-column: auto;
    width: 100%;
    max-width: 310px;
    margin: 0;
  }

  .gd37-news__grid {
    display: flex;
    gap: 16px;
    margin-right: -16px;
    margin-left: -16px;
    padding: 8px 16px 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gd37-news__grid::-webkit-scrollbar { display: none; }

  .gd37-news-card {
    flex: 0 0 min(82vw, 360px);
    min-height: 520px;
    scroll-snap-align: start;
  }
}

@media (max-width: 700px) {
  .gd37-news__top-wave { height: 78px; }

  .gd37-news__inner {
    padding-top: 88px;
    padding-bottom: 53px;
  }

  .gd37-news__kicker {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .gd37-news__kicker span {
    width: 10px;
    height: 10px;
    flex-basis: 10px;
  }

  .gd37-news__title { font-size: 41px; }

  .gd37-news__underline {
    width: 65%;
    height: 9px;
    border-bottom-width: 3px;
  }

  .gd37-news__intro strong {
    font-size: 15px;
    line-height: 1.4;
  }

  .gd37-news__intro p {
    margin-top: 6px;
    font-size: 13px;
  }

  .gd37-page .gd37-news__all {
    min-height: 58px;
    padding-inline: 24px;
    font-size: 10px;
  }

  .gd37-news__grid { margin-top: 7px; }

  .gd37-news-card {
    min-height: 485px;
    flex-basis: min(84vw, 335px);
  }

  .gd37-news-card__image { flex-basis: 194px; }

  .gd37-news-card__body { padding: 21px 22px 23px; }

  .gd37-news-card h3 {
    margin-top: 18px;
    font-size: 25px;
  }

  .gd37-news-card p {
    margin-top: 17px;
    font-size: 12px;
  }

  .gd37-news__bottom-wave { height: 45px; }
}
