/* News archive and detail pages. Geometry is based on the supplied 1920px PNG artboards. */

.news-page,
.news-page-hero {
  color: #333;
  font-family: "Zen Kaku Gothic Antique", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

html.js main > .news-page-hero,
html.js main > .news-archive {
  opacity: 1;
  transform: none;
}

.news-page-hero {
  position: relative;
  width: 100%;
  height: 394px;
  overflow: hidden;
  background: #fff;
}

.news-page-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 171px;
  text-align: center;
}

.news-page-hero h1 {
  margin: 0;
  color: #333;
  font-family: Poppins, Arial, sans-serif;
  font-size: 100px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.news-page-hero h1 span { color: #ca0033; }

.news-page-hero__inner p {
  margin: 20px 0 0;
  color: #333;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
}

.news-page-hero__decorations {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.news-page-hero__shape {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}

.news-page-hero__shape--blue {
  top: 222px;
  left: 32px;
  width: 283px;
}

.news-page-hero__shape--yellow {
  top: 264px;
  left: 335px;
  width: 112px;
}

.news-page-hero__shape--orange {
  top: 128px;
  right: 237px;
  width: 76px;
}

.news-page-hero__shape--red {
  top: 154px;
  right: 31px;
  width: 192px;
}

.news-archive {
  min-height: 0;
  padding: 119px 0 154px;
  background: #eaf2ed;
}

.news-archive__inner,
.news-detail-related {
  width: min(1400px, calc(100% - 60px));
  margin: 0 auto;
}

.news-archive__filters {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.news-archive__filters a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 173px;
  height: 40px;
  padding: 0 24px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  background: #fff;
  border: 2px solid #416fa6;
  border-radius: 20px;
}

.news-archive__filters a:nth-child(2) { min-width: 234px; }
.news-archive__filters a:nth-child(3) { min-width: 189px; }

.news-archive__filters a:hover,
.news-archive__filters a:focus-visible,
.news-archive__filters a.is-active {
  color: #fff;
  background: #ca0033;
  border-color: #ca0033;
}

.news-archive__filters a:focus-visible,
.news-pagination a:focus-visible,
.news-listing__item:focus-visible,
.news-detail-related .pill-cta:focus-visible {
  outline: 3px solid #ca0033;
  outline-offset: 4px;
}

.news-archive__listing {
  width: 100%;
  height: auto;
  margin: 60px 0 0;
  padding: 0;
}

.news-archive__list,
.news-detail-related__list {
  position: static;
  width: 100%;
  margin: 0;
  transform: none;
}

.news-archive .news-listing__item,
.news-detail-related .news-listing__item {
  width: 100%;
}

.news-archive .news-listing__item span,
.news-detail-related .news-listing__item span {
  width: calc(100% - 170px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-archive__empty {
  margin: 0;
  padding: 65px 30px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  background: #fff;
  border-radius: 10px;
}

.news-pagination {
  margin-top: 80px;
}

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

.news-pagination .page-numbers .page-numbers {
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  color: #333;
  font: 500 16px/1 Poppins, Arial, sans-serif;
  background: #fff;
  border-radius: 50%;
  place-items: center;
}

.news-pagination .page-numbers .current {
  background: #e79f18;
}

@media (min-width: 761px) {
  .page-template-page-news .site-footer__bottom,
  .single-post .site-footer__bottom {
    min-height: 72px;
    height: 72px;
  }
}

/* Detail page --------------------------------------------------------- */

.news-detail {
  padding: 98px 0 77px;
  background: #eaf2ed;
}

.news-detail__article {
  width: min(1100px, calc(100% - 60px));
  margin: 0 auto;
}

.news-detail__header h2 {
  margin: 0;
  color: #333;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .02em;
}

.news-detail__header time {
  display: block;
  margin-top: 26px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.news-detail__thumbnail {
  width: 100%;
  margin: 76px 0 0;
  overflow: hidden;
  background: #e9e9e9;
  border-radius: 31px;
}

.news-detail__thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  aspect-ratio: 1100 / 620;
  object-fit: cover;
}

.news-detail__content {
  margin-top: 82px;
  font-size: 16px;
  font-weight: 700;
  line-height: 2.25;
  letter-spacing: .03em;
}

.news-detail__thumbnail + .news-detail__content { margin-top: 82px; }

.news-detail__content > :first-child { margin-top: 0; }
.news-detail__content > :last-child { margin-bottom: 0; }

.news-detail__content h2 {
  margin: 0 0 20px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.45;
}

.news-detail__content h2:not(:first-child) { margin-top: 82px; }

.news-detail__content h3 {
  position: relative;
  margin: 64px 0 20px;
  padding-left: 15px;
  font-size: 24px;
  font-weight: 700;
  line-height: 31px;
}

.news-detail__content h3::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: #416fa6;
  content: "";
}

.news-detail__content p {
  margin: 0 0 36px;
}

.news-detail__content figure,
.news-detail__content .wp-block-image {
  width: min(700px, 100%);
  margin: 82px auto;
}

.news-detail__content figure img,
.news-detail__content .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 31px;
}

.news-detail-related {
  margin-top: 170px;
}

.news-detail-related > h2 {
  margin: 0 0 70px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.45;
}

.news-detail-related__more {
  display: flex;
  justify-content: center;
  margin-top: 80px;
}

.news-detail-related .pill-cta {
  --pill-cta-color: #416fa6;
  margin: 0;
  border: 0;
}

@media (min-width: 769px) and (max-width: 1919px) {
  .news-page-hero__shape--blue { left: -70px; }
  .news-page-hero__shape--yellow { left: 13vw; }
  .news-page-hero__shape--orange { right: 13vw; }
  .news-page-hero__shape--red { right: -55px; }

  .news-archive__inner,
  .news-detail-related { width: min(1400px, calc(100% - 80px)); }

  .news-detail__article { width: min(1100px, calc(100% - 80px)); }
}

@media (max-width: 768px) {
  .news-page-hero {
    height: 310px;
  }

  .news-page-hero__inner {
    padding-top: 132px;
  }

  .news-page-hero h1 {
    font-size: 60px;
  }

  .news-page-hero__inner p {
    margin-top: 12px;
    font-size: 13px;
  }

  .news-page-hero__shape--blue {
    top: 212px;
    left: -42px;
    width: 150px;
  }

  .news-page-hero__shape--yellow {
    top: 244px;
    left: 78px;
    width: 64px;
  }

  .news-page-hero__shape--orange {
    top: 88px;
    right: 73px;
    width: 54px;
  }

  .news-page-hero__shape--red {
    top: 114px;
    right: -26px;
    width: 118px;
  }

  .news-archive {
    min-height: 0;
    padding: 60px 15px 90px;
  }

  .news-archive__inner,
  .news-detail-related,
  .news-detail__article {
    width: 100%;
  }

  .news-archive__filters {
    gap: 8px;
  }

  .news-archive__filters a,
  .news-archive__filters a:nth-child(2),
  .news-archive__filters a:nth-child(3) {
    width: auto;
    min-width: 0;
    height: 34px;
    padding: 0 13px;
    font-size: 10px;
    border-width: 1px;
  }

  .news-archive__listing {
    position: static;
    width: 100%;
    margin-top: 42px;
  }

  .news-archive__list,
  .news-detail-related__list {
    position: static;
    width: 100%;
  }

  .news-archive .news-listing__item,
  .news-detail-related .news-listing__item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 14px 10px;
    width: 100%;
    height: auto;
    min-height: 190px;
    padding: 24px 22px;
    margin: 0 0 18px;
    border-radius: 10px;
  }

  .news-archive .news-listing__item time,
  .news-archive .news-listing__item em,
  .news-archive .news-listing__item span,
  .news-archive .news-listing__item b,
  .news-detail-related .news-listing__item time,
  .news-detail-related .news-listing__item em,
  .news-detail-related .news-listing__item span,
  .news-detail-related .news-listing__item b {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
  }

  .news-archive .news-listing__item time,
  .news-detail-related .news-listing__item time {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-size: 13px;
    line-height: 1;
  }

  .news-archive .news-listing__item em,
  .news-detail-related .news-listing__item em {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 13px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    background: #333;
    border-radius: 18px;
  }

  .news-archive .news-listing__item span,
  .news-detail-related .news-listing__item span {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: none;
    overflow: visible;
    font-size: 15px;
    line-height: 1.8;
    white-space: normal;
  }

  .news-archive .news-listing__item b,
  .news-detail-related .news-listing__item b {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 36px;
    height: 36px;
    color: #416fa6;
    border: 2px solid #416fa6;
    border-radius: 50%;
  }

  .news-pagination {
    margin-top: 52px;
  }

  .news-pagination .page-numbers {
    gap: 7px;
  }

  .news-pagination .page-numbers .page-numbers {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .news-detail {
    padding: 60px 15px 86px;
  }

  .news-detail__header h2 {
    font-size: 25px;
    line-height: 1.55;
  }

  .news-detail__header time {
    margin-top: 22px;
    font-size: 14px;
  }

  .news-detail__thumbnail {
    margin-top: 44px;
    border-radius: 18px;
  }

  .news-detail__content,
  .news-detail__thumbnail + .news-detail__content {
    margin-top: 52px;
    font-size: 15px;
    line-height: 2;
  }

  .news-detail__content h2 {
    margin-bottom: 18px;
    font-size: 26px;
  }

  .news-detail__content h2:not(:first-child) { margin-top: 56px; }

  .news-detail__content h3 {
    margin: 48px 0 18px;
    padding-left: 13px;
    font-size: 20px;
    line-height: 28px;
  }

  .news-detail__content h3::before { width: 6px; }

  .news-detail__content figure,
  .news-detail__content .wp-block-image {
    margin: 52px auto;
  }

  .news-detail__content figure img,
  .news-detail__content .wp-block-image img { border-radius: 18px; }

  .news-detail-related {
    margin-top: 100px;
  }

  .news-detail-related > h2 {
    margin-bottom: 42px;
    font-size: 26px;
  }

  .news-detail-related__more {
    margin-top: 52px;
  }

  .news-detail-related .pill-cta {
    position: relative;
    display: block;
    width: 226px;
    height: 64px;
    color: #fff;
    background: #416fa6;
    border-radius: 32px;
  }

  .news-detail-related .pill-cta__label {
    position: absolute;
    inset: 0 40px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  .news-detail-related .pill-cta__icon {
    position: absolute;
    top: 50%;
    right: 24px;
    display: flex;
    transform: translateY(-50%);
  }
}

@media (max-width: 390px) {
  .news-archive .news-listing__item,
  .news-detail-related .news-listing__item {
    padding-right: 18px;
    padding-left: 18px;
  }

  .news-archive .news-listing__item em,
  .news-detail-related .news-listing__item em {
    max-width: 190px;
    white-space: normal;
    text-align: center;
  }
}
