@charset "UTF-8";

.p-news__body {
  padding-top: 50px;
  padding-bottom: 75px;
}
@media screen and (min-width:768px) {
  .p-news__body {
    padding-top: 100px;
    padding-bottom: 150px;
  }
}

.p-news__categories {
  padding-bottom: 40px;
}
@media screen and (min-width:768px) {
  .p-news__categories {
    padding-bottom: 64px;
  }
}

.p-news__categories > .webgene-blog {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.p-news__cat {
  display: inline-block;
  min-width: 175px;
  border: 1px solid #e3eaef;
  background: #e3eaef;
  padding: 8.5px 30px;
  border-radius: 27px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4285714286;
  letter-spacing: 2.1px;
  font-weight: 700;
  color: #24354C;
}
@media screen and (min-width:768px) {
  .p-news__cat {
    min-width: 180px;
    padding: 16px 30px;
    font-size: 14px;
  }
}

.p-news__cat:hover {
  background: #24354C;
  color: #e3eaef;
}

.p-news__wrap {
  max-width: 940px;
  margin-inline: auto;
  border-top: 1px solid #e8e8e8;
}

.p-news__item {
  padding-block: 30px;
  padding-right: 74px;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
}
.p-news__item::after {
  content: "";
  position: absolute;
  top: 42px;
  right: 0;
  width: 64px;
  height: 38.56px;
  background: url(../images/top-news-arrow.svg) no-repeat center center/cover;
}

.p-news__item-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
}

.p-news__item-date {
  font-size: 14px;
  line-height: 1.4285714286;
  font-weight: 500;
}

.p-news__item-tag {
  min-width: 74px;
  padding: 3px 14px;
  color: #ffffff;
  font-size: 10px;
  line-height: 1.5;
  background: #184ea4;
  border-radius: 11px;
  text-align: center;
}

.p-news__item-title {
  padding-top: 17px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}


.webgene-pagination {
  margin-top: 110px;
  font-size: 14px;
  justify-self: center;
  grid-column: 1/-1;
}

.webgene-pagination a:hover {
  opacity: 0.7;
}

.webgene-pagination ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  list-style: none;
  gap: 10px;
  -webkit-padding-start: 0;
          padding-inline-start: 0;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.webgene-pagination ul .number a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  line-height: 2.2;
  border-radius: 50%;
  background-color: #fff;
  color: #24354C;
}

.webgene-pagination ul .number.selected a {
  background: #184EA4;
  color: #fff;
  border-radius: 50%;
}

li.next,
li.prev {
  position: relative;
}

li.next a,
li.prev a {
  height: 40px;
  width: 40px;
  padding: 2px;
  position: relative;
}

li.prev:after,
li.next:after {
  pointer-events: none;
  content: "";
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 40px;
  height: 40px;
}

li.prev:after {
  background-image: url("../images/page-prev.png");
  left: 0;
}

li.next:after {
  background-image: url("../images/page-next.png");
  right: 0;
}

@media screen and (min-width: 768px) {
  li.next {
    margin-left: 30px;
  }
  li.prev {
    margin-right: 30px;
  }
  li.next a,
  li.prev a {
    margin-top: 3px;
    width: auto;
    padding-block: 10px;
    z-index: 10;
    line-height: 1;
  }
  li.prev a {
    padding-left: 48px;
    color: #919191;
  }
  li.next a {
    padding-right: 48px;
    color: #24354C;
  }
  li.prev:after,
  li.next:after {
    pointer-events: auto;
  }
}