.news-list {
  background: #ffffff;
  color: #303030;
  padding-top: 40px;
  padding-bottom: 56px;
}

.news-list__grid {
  display: grid;
  margin-top: 40px;
  gap: 20px;
}

.news-list__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 40px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.news-list__empty[hidden] {
  display: none;
}

.news-list__empty-image {
  width: 120px;
  height: 120px;
  -o-object-fit: contain;
     object-fit: contain;
}

.news-list__empty-text {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: rgba(48, 48, 48, 0.6);
}

.news-list__card {
  position: relative;
  --news-card-radius: 6px;
  border-radius: var(--news-card-radius);
  transition:
    transform 180ms ease;
}

.news-list__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #d8d8d8;
  border-radius: var(--news-card-radius);
  filter: blur(10px);
  pointer-events: none;
}

.news-list__card:hover,
.news-list__card:focus-within {
  transform: translateY(-2px);
}

.news-list__card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: currentColor;
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: var(--news-card-radius);
  background: #ffffff;
  text-decoration: none;
}

.news-list__image-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #eef0f3;
}

.news-list__image {
  display: block;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 260ms ease;
}

.news-list__card:hover .news-list__image,
.news-list__card:focus-within .news-list__image {
  transform: scale(1.04);
}

.news-list__tag {
  display: inline-flex;
  width: -moz-fit-content;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  height: 20px;
  padding: 2px 8px;
  border-radius: 4px;
  background: linear-gradient(206deg, #29307f 0%, #cc1377 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
}

.news-list__body {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  padding: 0;
}

.news-list__card-title {
  color: #303030;
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.news-list__excerpt {
  display: -webkit-box;
  /* autoprefixer: ignore next */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #666666;
  margin-top: 10px;
  font-size: 14px;
  font-style: normal;
  line-height: 19px;
  text-align: left;
}

.news-list .news-list__highlight {
  padding: 0 1px;
  background: #fff2a8;
  color: #303030;
}

.news-list__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 30px;
}

.news-list__author {
  display: flex;
  min-width: 0px;
  align-items: center;
  gap: 0.5rem;
}

.news-list__avatar {
  display: block;
  flex-shrink: 0;
  border-radius: 9999px;
  width: 30px;
  height: 30px;
  -o-object-fit: cover;
     object-fit: cover;
}

.news-list__author-text {
  display: grid;
  min-width: 0px;
  gap: 2px;
}

.news-list__author-name,
.news-list__date {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 14px;
}

.news-list__author-name {
  color: #303030;
  font-weight: 600;
}

.news-list__date {
  color: #666666;
  font-weight: 400;
}

.news-list__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  color: #303030;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  transition: transform 220ms ease;
}

.news-list__card:hover .news-list__more,
.news-list__card:focus-within .news-list__more {
  transform: translateX(6px);
}

.news-list__more-icon {
  width: 18px;
  height: 18px;
  -o-object-fit: contain;
     object-fit: contain;
}

.news-list__pagination {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 36px;
}

.news-list__pagination[hidden] {
  display: none;
}

.news-list__pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 24px;
  padding: 0;
  border: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60px 24px;
  font-size: 0;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.news-list__pagination-btn--prev {
  background-image: url('../../../images/qvl/prev.png');
}

.news-list__pagination-btn--next {
  background-image: url('../../../images/qvl/next.png');
}

.news-list__pagination-btn--prev:not(:disabled):hover {
  background-image: url('../../../images/qvl/prev-hover.png');
}

.news-list__pagination-btn--next:not(:disabled):hover {
  background-image: url('../../../images/qvl/next-hover.png');
}

.news-list__pagination-btn.is-disabled,
.news-list__pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.news-list__pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-list__pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.82);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.news-list__pagination-page:hover {
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.82);
}

.news-list__pagination-page.is-active {
  min-width: 32px;
  padding-inline: 6px;
  background: url('../../../images/base/btn-bg.png') center / 100% 100% no-repeat;
  color: #fff;
}

@media (max-width: 767px) {
  .news-list__pagination {
    gap: 8px;
    align-items: center;
  }

  .news-list__pagination-btn {
    width: 48px;
    height: 20px;
    background-size: 48px 20px;
  }

  .news-list__pagination-pages {
    max-width: calc(100vw - 144px);
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .news-list__pagination-pages::-webkit-scrollbar {
    display: none;
  }

  .news-list__pagination-page {
    min-width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .news-list__pagination-page.is-active {
    min-width: 28px;
    padding-inline: 4px;
  }
}

@media (min-width: 640px) {
  .news-list {
    padding-bottom: 72px;
  }

  .news-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .news-list {
    padding-bottom: 96px;
  }

  .news-list__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-list__card-title {
    font-size: 20px;
  }
}

@media (min-width: 1440px) {
  .news-list__grid {
    gap: 40px;
  }
}

@media (min-width: 480px) {
  .news-list__card {
    --news-card-radius: 8px;
  }
}

@media (min-width: 640px) {
  .news-list__card {
    --news-card-radius: 10px;
  }
}

@media (min-width: 768px) {
  .news-list__card {
    --news-card-radius: 12px;
  }
}

@media (min-width: 960px) {
  .news-list__card {
    --news-card-radius: 14px;
  }
}

@media (min-width: 1280px) {
  .news-list__card {
    --news-card-radius: 16px;
  }
}
