.news-page,
.article-page {
  background: #f4f7fb;
}

.news-hero,
.article-page-header {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  color: white;
  background:
    linear-gradient(90deg, rgba(16, 36, 59, .98), rgba(16, 36, 59, .86)),
    url("assets/images/background.webp") center / cover;
}

.news-hero::before,
.article-page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 100%;
  background: var(--yellow);
}

.news-breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #aebfd1;
  font-size: 13px;
}

.news-breadcrumb a:hover {
  color: var(--yellow);
}

.news-hero-kicker {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
}

.news-hero h1,
.article-page-header h1 {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.15;
}

.news-hero p {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-bottom: 0;
  color: #c0cedd;
  font-size: 17px;
}

.news-content {
  padding: 58px 0 84px;
}

.news-page .news-layout,
.article-page .article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 38px;
  align-items: start;
}

.news-results-bar {
  min-height: 61px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 0 17px;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 6px;
}

.news-results-bar strong {
  font-size: 21px;
}

.news-results-bar span {
  font-size: 12px;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-row {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr) 50px;
  gap: 22px;
  align-items: center;
  padding: 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.news-row:hover {
  transform: translateY(-2px);
  border-color: #8db4ec;
  box-shadow: 0 18px 40px rgba(18, 48, 83, .1);
}

.news-row-image {
  display: block;
  overflow: hidden;
  background: var(--blue-soft);
  border-radius: 5px;
}

.news-row-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .35s ease;
}

.news-row:hover .news-row-image img {
  transform: scale(1.035);
}

.news-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.news-row-meta span {
  color: var(--blue);
  font-weight: 800;
}

.news-row-title {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.42;
}

.news-row-title a:hover {
  color: var(--blue);
}

.news-row-copy p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-row-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 5px;
  font-size: 19px;
  font-weight: 900;
  transition: transform .2s ease;
}

.news-row:hover .news-row-arrow {
  transform: translateX(3px);
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 30px;
}

.news-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
  color: var(--navy);
  background: var(--yellow);
  border-color: var(--yellow);
}

.news-sidebar,
.article-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-panel {
  margin-bottom: 18px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.sidebar-panel h3 {
  margin-bottom: 19px;
  padding-bottom: 13px;
  border-bottom: 3px solid var(--yellow);
  font-size: 17px;
}

.sidebar-post-list {
  display: grid;
  gap: 15px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-post-list li {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 10px;
}

.sidebar-post-list span {
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
}

.sidebar-post-list a {
  color: #41546a;
  font-size: 14px;
  line-height: 1.6;
}

.sidebar-post-list a:hover {
  color: var(--blue);
}

.sidebar-category-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-category-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-category-list li:last-child {
  border-bottom: 0;
}

.sidebar-category-list a {
  color: var(--muted);
  font-size: 14px;
}

.sidebar-note {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.sidebar-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
}

.sidebar-note p {
  margin-bottom: 0;
  color: #b7c7d8;
  font-size: 13px;
}

.news-empty {
  padding: 50px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
}

.article-page-meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 15px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.article-page-lead {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-bottom: 0;
  color: #c1cedb;
  font-size: 17px;
}

.article-layout {
  padding-top: 48px;
  padding-bottom: 84px;
}

.article-main {
  min-width: 0;
}

.article-featured {
  margin: 0 0 34px;
  overflow: hidden;
  background: var(--blue-soft);
  border-radius: 8px;
}

.article-featured img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.article-content {
  padding: 42px 48px;
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 17px;
  line-height: 1.9;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content > *:last-child {
  margin-bottom: 0;
}

.article-content h2 {
  margin: 42px 0 15px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--yellow);
  font-size: 28px;
}

.article-content h3 {
  margin: 32px 0 11px;
  color: var(--blue);
  font-size: 21px;
}

.article-content p,
.article-content li {
  color: #526276;
}

.article-content ul,
.article-content ol {
  padding-left: 23px;
}

.article-content img {
  margin: 26px auto;
  border-radius: 6px;
}

.article-content blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  color: var(--navy);
  background: var(--blue-soft);
  border-left: 5px solid var(--blue);
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  margin-top: 28px;
}

.post-nav-item,
.post-nav-index {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.post-nav-item span {
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
}

.post-nav-item a {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 750;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-nav-next {
  text-align: right;
}

.post-nav-index {
  align-items: center;
  color: var(--navy);
  background: var(--yellow);
  border-color: var(--yellow);
  font-size: 13px;
  font-weight: 850;
}

.related-articles {
  margin-top: 42px;
}

.related-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.related-heading h2 {
  margin: 0;
  font-size: 28px;
}

.related-heading a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 5px;
}

.related-card time {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
}

.related-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.related-card h3 a:hover {
  color: var(--blue);
}

.article-toc-note p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .news-page .news-layout,
  .article-page .article-layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar,
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  .news-hero,
  .article-page-header {
    padding: 45px 0 40px;
  }

  .news-content {
    padding: 38px 0 58px;
  }

  .news-results-bar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 12px 15px;
  }

  .news-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .news-row-title {
    font-size: 17px;
  }

  .news-row-copy p,
  .news-row-arrow {
    display: none;
  }

  .article-layout {
    padding-top: 30px;
  }

  .article-content {
    padding: 28px 22px;
    font-size: 16px;
  }

  .article-content h2 {
    font-size: 24px;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-nav-next {
    text-align: left;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
