.page-news {
  --container-width: 1216px;
  min-width: 0;
}

.page-news .primary-nav__link.is-active {
  padding-inline: 2px;
  color: #49515e;
  background: transparent;
}

.page-news .primary-nav__link:nth-child(5) {
  padding-inline: 14px;
  color: var(--color-primary);
  background: #f0f6ff;
}

.news-hero {
  height: 480px;
  background: #dcecff url("../images/news/news-hero@2x.png") center / cover no-repeat;
}

.news-hero__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 3px;
  text-align: center;
}

.news-hero h1 {
  margin: 0 0 17px;
  color: #303338;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.news-hero p {
  margin: 0;
  color: #606b79;
  font-size: 14px;
  line-height: 1.7;
}

.news-listing {
  height: 2807px;
  background: #fff;
}

.news-category {
  height: auto;
  padding: 65px 0 33px;
}

.news-category:nth-child(2) {
  height: auto;
}

.news-category:last-child {
  height: auto;
}

.news-category__title {
  margin: 0 0 34px;
  color: #303338;
  font-size: 30px;
  font-weight: 700;
  line-height: 42px;
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 24px;
}

.news-card {
  min-width: 0;
  overflow: hidden;
  background: #f8faff;
  border: 1px solid #e8edf4;
  border-radius: 10px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.news-card:hover {
  box-shadow: 0 10px 30px rgba(46, 88, 139, 0.1);
  transform: translateY(-3px);
}

.news-card__media {
  display: flex;
  height: 165px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f1f6fd;
}

.news-card__media svg {
  width: 32px;
  height: 34px;
  fill: none;
  stroke: #a6ccf8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.news-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  height: 150px;
  padding: 20px 24px 19px;
  background: #f8faff;
}

.news-card__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
  color: #a1a8b2;
  font-size: 12px;
  line-height: 20px;
}

.news-card__meta span {
  flex: 0 0 auto;
  padding: 0 8px;
  color: #4e93e7;
  background: #edf5ff;
  border-radius: 2px;
}

.news-card__meta time {
  white-space: nowrap;
}

.news-card h3 {
  display: -webkit-box;
  min-width: 0;
  margin: 0 0 6px;
  overflow: hidden;
  color: #24282f;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.news-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #7b838e;
  font-size: 13px;
  font-weight: 400;
  line-height: 21px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-category__action,
.news-pagination {
  display: flex;
  height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 38px;
}

.news-category__action[hidden] {
  display: none;
}

.news-category:nth-child(n + 2) .news-category__action,
.news-category:nth-child(n + 2) .news-pagination {
  margin-top: 46px;
}

.news-more {
  display: inline-flex;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  color: #0565cf;
  background: #fff;
  border: 1px solid #0565cf;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.news-more:hover {
  color: #fff;
  background: #0565cf;
  transform: translateY(-1px);
}

.news-pagination {
  flex-wrap: wrap;
  gap: 8px;
  color: #8792a2;
  font-size: 14px;
}

.news-pagination[hidden] {
  display: none;
}

.news-pagination a,
.news-pagination span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #657184;
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1;
}

.news-pagination a:hover,
.news-pagination .is-current,
.news-pagination [aria-current="page"] {
  color: #fff;
  background: #0565cf;
  border-color: #0565cf;
}

.news-pagination .is-disabled,
.news-pagination [aria-disabled="true"] {
  color: #b6bec9;
  background: #f7f9fc;
  border-color: #e7ebf0;
  pointer-events: none;
}

.news-pagination .news-pagination__ellipsis {
  width: 24px;
  color: #8792a2;
  background: transparent;
  border-color: transparent;
}

.news-listing--archive {
  height: auto;
  min-height: 963px;
}

.news-category--archive {
  height: auto;
  min-height: 963px;
  padding-bottom: 83px;
}

.news-category--archive .news-pagination {
  margin-top: 46px;
}

html.is-template-preview .page-news-list stl\:pageContents,
html.is-template-preview .page-news-list stl\:pageItems {
  display: none !important;
}

@media (max-width: 980px) {
  .page-news .primary-nav__link:nth-child(5) {
    padding-inline: 16px;
    background: #f0f6ff;
  }

  .news-listing {
    height: auto;
  }

  .news-category,
  .news-category:nth-child(2),
  .news-category:last-child {
    height: auto;
    padding: 56px 0;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .news-hero {
    height: 360px;
  }

  .news-hero h1 {
    font-size: 34px;
  }

  .news-category {
    padding: 46px 0;
  }

  .news-category__title {
    margin-bottom: 28px;
    font-size: 26px;
    line-height: 36px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .news-card__media {
    height: 180px;
  }

  .news-card__body {
    height: 150px;
    padding-inline: 20px;
  }

  .news-pagination {
    height: auto;
    min-height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .news-more {
    transition: none;
  }
}

