@charset "UTF-8";

.p-news {
  margin-top: clamp(80px, 8.3333333333vw, 100px);
  margin-bottom: clamp(120px, 10vw, 120px);
  position: relative;
}

.p-news__categories {
  margin-bottom: clamp(40px, 6.6666666667vw, 80px);
}

@media screen and (min-width:768px) {
  .p-news__categories {
    margin-left: 10px;
  }
}

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

.p-news__cat {
  display: inline-block;
  min-width: 140px;
  background: #b6cfef;
  padding: 8.5px 30px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4666666667;
  letter-spacing: 0.75px;
  font-weight: 500;
  color: #1a63d2;
  border-radius: 42px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media screen and (min-width:768px) {
  .p-news__cat {
    min-width: 200px;
    padding: 12.5px 53px;
    font-size: 15px;
  }
}
@media (any-hover: hover) {
  .p-news__cat:hover {
    color: #ffffff;
    background: #1a63d2;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

.p-news__wrap {
  max-width: 1078px;
  margin-inline: auto;
}

.p-news__item {
  position: relative;
  padding-block: 30px;
  padding-inline: 20px 86px;
  background: #ffffff;
  -webkit-box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
          box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
}
@media screen and (min-width:768px) {
  .p-news__item {
    padding-inline: 41px 100px;
  }
}
.p-news__item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50%;
  width: 92.4860853432%;
  height: 1px;
  background: #e8e8e8;
}
.p-news__item::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  right: 20px;
  width: 64px;
  height: 38.56px;
  background: url(../images/btn-arrow-blue.png) no-repeat center center/cover;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media screen and (min-width:768px) {
  .p-news__item::after {
    right: 41px;
  }
}
@media (any-hover: hover) {
  .p-news__item:hover::after {
    translate: 10px -50%;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}
.p-news__item:first-of-type {
  padding-top: 60px;
  border-radius: 10px 10px 0 0;
}
.p-news__item:first-of-type::after {
  top: 63%;
}
.p-news__item:last-of-type {
  border-radius: 0 0 10px 10px;
}
.p-news__item-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

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

.p-news__item-tag span {
  display: inline-block;
  padding: 3px 12px;
  color: #1B427A;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 500;
  background: #f6f8fc;
  border: 1px solid #1b427a;
  border-radius: 20px;
  text-align: center;
}

.p-news__item-title {
  margin-top: 18px;
  color: #555555;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 1.28px;
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.webgene-pagination {
  margin-top: 80px;
  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: #1B62D2;
  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/prev.png");
  left: 0;
}

li.next:after {
  background-image: url("../images/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;
  }
}