.news-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 250px;
  gap: 22px;
  align-items: start;
}

.article-list,
.news-sidebar,
.popular-list,
.related-list {
  display: grid;
  gap: 16px;
}

.news-category-card {
  position: sticky;
  top: 92px;
  z-index: 2;
}

.news-sidebar .side-card,
.news-promo-card {
  padding: 18px;
  border: 1px solid #dfc5b3;
  border-radius: 8px;
  background: rgba(255, 248, 238, .88);
  box-shadow: 0 10px 26px rgba(96, 43, 22, .05);
}

.news-sidebar .side-card h3 {
  margin: 0 0 16px;
  color: #2b211d;
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 34px;
  color: #4b3b32;
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
  transition: color .2s ease, transform .2s ease;
}

.side-nav a i {
  color: var(--red);
}

.side-nav a:hover,
.side-nav a:focus-visible,
.side-nav a.current {
  color: var(--red);
  transform: translateX(3px);
}

.side-nav a small {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .72rem;
  background: rgba(145, 28, 29, .06);
  border: 1px solid rgba(145, 28, 29, .14);
  border-radius: 999px;
}

.news-sidebar .meta-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.side-card > p {
  margin: 0 0 10px;
  color: #4b3b32;
  font-size: var(--text-meta);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-meta);
}

.side-card .select-like,
.side-card .input-like {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.side-card .primary-btn,
.side-card .newsletter-form .primary-btn {
  width: 100%;
}

.article-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dfc5b3;
  border-radius: 8px;
  background: rgba(255, 248, 238, .9);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.article-item:hover {
  border-color: rgba(145, 28, 29, .3);
  box-shadow: 0 12px 28px rgba(96, 43, 22, .08);
  transform: translateY(-2px);
}

.article-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

.article-item h2 {
  margin: 8px 0;
  color: #2b211d;
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
}

.article-item p {
  margin: 0;
}

.article-item .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

.article-item .plain-btn {
  grid-column: 2;
  justify-self: end;
  margin-top: -34px;
}

.popular-list {
  counter-reset: popular;
}

.popular-item,
.related-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  color: #2b211d;
}

.popular-item {
  counter-increment: popular;
  padding-left: 14px;
}

.popular-item::before {
  position: absolute;
  top: -6px;
  left: 0;
  z-index: 1;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: .85rem;
  background: var(--red);
  border-radius: 50%;
  content: counter(popular);
}

.popular-item img,
.related-item img {
  width: 76px;
  aspect-ratio: 1.15 / 1;
  object-fit: cover;
  border-radius: 5px;
}

.popular-item span,
.related-item span {
  font-size: var(--text-meta);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-meta);
}

.news-promo-card {
  position: relative;
  display: grid;
  min-height: 180px;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(rgba(255, 248, 238, .82), rgba(255, 248, 238, .82)),
    url("../pages/news-hero-right.webp") center bottom / cover no-repeat,
    #fff8ee;
}

.news-promo-card::before,
.news-promo-card::after {
  position: absolute;
  width: 58px;
  height: 58px;
  border-color: var(--red);
  opacity: .55;
  content: "";
}

.news-promo-card::before {
  top: 8px;
  left: 8px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.news-promo-card::after {
  right: 8px;
  bottom: 8px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.news-promo-card p,
.news-promo-card strong {
  position: relative;
  z-index: 1;
  margin: 0;
}

.news-promo-card p {
  color: #4b3b32;
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

.news-promo-card strong {
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.news-promo-card-quote strong {
  color: #2b211d;
  font-family: var(--font-cjk);
  font-size: 2rem;
  font-weight: 400;
  text-transform: none;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--text-meta);
  border: 1px solid #dfc5b3;
  border-radius: 4px;
}

.pagination .active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
