@charset "UTF-8";

.news {
  padding-block: 120px;
}

@media only screen and (max-width: 768px) {
    .news {
        padding-block: 80px;
    }
}

.news__inner {
  display: flex;
  gap: 80px;
}

@media only screen and (max-width: 1024px) {
    .news__inner {
        flex-direction: column;
        gap: 20px;
    }
}

.news__side {
    max-width: 300px;
    flex: 1;
}

@media only screen and (max-width: 1024px) {
    .news__side {
        max-width: 100%;
    }
}

.news__nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(151px, 151px));
    justify-content: start;
    align-items: flex-end;
    padding-bottom: 110px;
}

@media only screen and (max-width: 1024px) {
    .news__nav-list {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-bottom: 80px;
    }
}

.news__nav-item {
  font-size: 14px;
  color: var(--color-blue);
  border-bottom: 1px solid var(--color-blue);

  &:first-child .news__navlink {
    padding-top: 0;
  }

  &:hover .news__nav-iconWrap {
    background: var(--color-blue);
  }

  &:hover .news__nav-icon {

    stroke: var(--color-white);
  }
}

@media (hover: hover) and (pointer: fine) {
  .news__nav-item:hover .news__nav-iconWrap {
    background: var(--color-blue);
  }

  .news__nav-item:hover .news__nav-icon {

    stroke: var(--color-white);
  }
}

.news__navlink {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-block: 15px;

  &:hover {
    opacity: 1;
  }
}

.news__nav-iconWrap {
  width: 22px;
  height: 22px;
  background: var(--color-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.news__nav-icon {
  width: 10px;
  height: 11px;
  stroke: var(--color-blue);
  fill: none;
  stroke-width: 1.5;
}

.news__content {
  flex: 1;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-list__body {
  flex: 1;
}

.news-list__item {
  position: relative;
  border-bottom: 1px solid var(--color-black-10);

  &:first-child .news-list__link {
    padding-top: 0;
  }

  &:hover {
    border-bottom: 1px solid var(--color-blue);

    .arrow-circle {
      background: var(--color-blue);
      color: var(--color-white);
    }
  }
}

@media (hover: hover) and (pointer: fine) {
  .news-list__item:hover {
    border-bottom: 1px solid var(--color-blue);

    .arrow-circle {
      background: var(--color-blue);
      color: var(--color-white);
    }
  }
}

.news-list__link {
  display: block;
  padding-right: 20px;
  position: relative;
  padding-block: 24px;

  &:hover {
    opacity: 1;
  }
}

.arrow-circle {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-gray);
  border-radius: 50%;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  svg {
    margin-left: 2px;
  }
}

.news-list__meta {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 10px;
}

.news-list__date {
  font-family: "Andika", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #00000080;
}

.news-list__category {
  font-size: 12px;
  line-height: 21px;
  color: var(--color-blue);
  padding-inline: 10px;
  height: 21px;
  background: #E4E6ED;
  border-radius: 3px;
}

.news-list__title {
  font-size: 14px;
  font-weight: 400;
  margin-right: 10px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 60px;

  a, span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    text-decoration: none;
  }
  .current {
    width: 32px;
    border-radius: 50%;
    background: var(--color-blue);
    color: var(--color-white);
  }
}

@media only screen and (max-width: 768px) {
    .pagination {
        gap: 20px;
    }
}

.pagination__number,
.pagination__arrow {
  display: flex;
}

.pagination__number {
  font-family: "Ubuntu", sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.pagination__arrow a {
  color: var(--color-blue);
}