.layout {
  display: grid;
  grid-template-columns: 1fr 277px;
  gap: 24px;
  padding: 21px 18px 24px 24px;
  align-items: start;
}

/* ===== News list main ===== */
.feature {
  display: grid;
  grid-template-columns: 255px 1fr;
  gap: 29px;
  min-height: 169px;
  margin-bottom: 20px;
  position: relative;
}

.feature__thumb {
  width: 255px;
  height: 167px;
  overflow: hidden;
  flex-shrink: 0;
}

.feature__thumb img {
  width: 255px;
  height: 167px;
  object-fit: cover;
  pointer-events: none;
}

.feature__body {
  position: relative;
  min-height: 167px;
  padding-bottom: 36px;
}

.feature__title {
  font-size: 20px;
  font-weight: 400;
  margin-top: 25px;
}

.feature__desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.7;
  max-width: 606px;
}

.feature__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature__meta time {
  font-size: 12px;
  opacity: 0.4;
}

.feature__detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 24px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  border-radius: 5px;
}

.news-list {
  border-top: 1px solid #e5e5e5;
}

.news-list li {
  border-bottom: 1px solid #e5e5e5;
}

.news-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 0;
  font-size: 16px;
}

.news-list a:hover span {
  color: var(--blue);
}

.news-list .dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  object-fit: contain;
}

.news-list span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list time {
  flex: 0 0 auto;
  font-size: 12px;
  opacity: 0.4;
  margin-left: 12px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding-bottom: 8px;
}

.pager__btn {
  width: 31px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #000;
  opacity: 0.85;
}

.pager__btn img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0.7;
}

.pager__btn.is-next img {
  transform: scaleX(-1);
}

.pager__btn.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.pager__arrow {
  width: 34px;
  height: 34px;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pager__arrow img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.pager__arrow.is-next img {
  transform: scaleX(-1);
}

/* ===== Sidebar ===== */
.side-panel {
  border: 1px solid #d9d9d9;
  margin-bottom: 17px;
  background: #fff;
}

.side-panel__head {
  height: 48px;
  background: #f0f0f0;
  border-top: 3px solid var(--blue);
  display: flex;
  align-items: center;
  padding: 0 13px;
  margin-top: -1px;
}

.side-panel__title {
  font-size: 24px;
  font-weight: 700;
}

.side-panel__list {
  padding: 14px 16px 18px;
}

.side-panel__list li + li {
  margin-top: 14px;
}

.side-panel__list a {
  display: block;
}

.side-panel__list a:hover .side-panel__text {
  color: var(--blue);
}

.side-panel__text {
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-panel__list time {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.4;
}

/* ===== Article detail ===== */
.article {
  padding-right: 8px;
}

.article__title {
  font-size: 36px;
  font-weight: 500;
  line-height: 44px;
}

.article__meta {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.4;
  line-height: 44px;
}

.article__divider {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
  border: 0;
  margin: 8px 0 24px;
}

.article__body {
  font-size: 16px;
  line-height: 30px;
  color: #000;
}

.article__body p {
  margin: 0 0 0;
}

.article__body p + p {
  margin-top: 0;
}

.article__figure {
  margin: 28px 0;
  text-align: center;
}

.article__figure img {
  width: 100%;
  max-width: 605px;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
}

.article__nav {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #e5e5e5;
  font-size: 16px;
  line-height: 30px;
  opacity: 0.5;
}

.article__nav a:hover {
  color: var(--blue);
  opacity: 1;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .side-panel {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature__thumb,
  .feature__thumb img {
    width: 100%;
    height: 180px;
  }

  .feature__body {
    padding-bottom: 40px;
  }

  .feature__title {
    margin-top: 0;
  }

  .news-list a {
    font-size: 14px;
  }

  .news-list span {
    white-space: normal;
  }

  .article__title {
    font-size: 24px;
    line-height: 1.4;
  }

  .article__meta {
    line-height: 1.6;
  }

  .article__body {
    font-size: 15px;
    line-height: 28px;
  }
}
