@keyframes moveBubbles {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
  100% {
    transform: translateY(0px);
  }
}
@keyframes show-with-fade {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes swing-in-top-fwd {
  0% {
    transform: rotateX(-100deg);
    transform-origin: top;
    opacity: 0;
  }
  100% {
    transform: rotateX(0deg);
    transform-origin: top;
    opacity: 1;
  }
}
@keyframes greenLinesAnimation {
  0% {
    opacity: 0;
    width: 0;
  }
  100% {
    opacity: 1;
    width: 100vw;
  }
}
body {
  background-image: url("../images/portfolio/background.png");
  background-position: top center;
  background-repeat: no-repeat;
}

section#news {
  padding-top: 135px;
  padding-bottom: 25px;
  position: relative;
}
section#news::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0px;
  background: url("../images/app/icons/bubble-big.png");
  background-repeat: no-repeat;
  width: 175px;
  height: 151px;
  animation: moveBubbles 20s infinite;
}
section#news::after {
  content: "";
  position: absolute;
  top: 60px;
  left: 65%;
  background: url("../images/app/icons/bubble-sm.png");
  background-repeat: no-repeat;
  width: 52px;
  height: 52px;
  transform: translateX(-65%);
  animation: moveBubbles 10s infinite reverse;
}
section#news .wrapper h1 {
  max-width: 610px;
  margin: 0 auto;
  text-align: center;
  font-size: 64px;
  color: var(--darkColor);
  text-transform: uppercase;
  line-height: 1.1;
}
section#news .wrapper > p {
  text-align: center;
  color: var(--lightDarkColor);
  font-size: 20px;
  line-height: 1.4;
  max-width: 840px;
  margin: 0 auto;
  margin-top: 35px;
}
section#news .news-wrapper {
  max-width: 1770px;
  margin: 0 auto;
  width: calc(100% - 20px);
  margin-top: 70px;
  position: relative;
}
section#news .news-wrapper::after {
  content: "";
  position: absolute;
  top: -38px;
  right: 194px;
  background: url("../images/app/icons/bubble-md.png");
  background-repeat: no-repeat;
  width: 86px;
  height: 86px;
  animation: moveBubbles 15s infinite;
  z-index: -1;
}
section#news .news-wrapper ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
section#news .news-wrapper ul li {
  width: calc(33.3333333333% - 25px);
  margin-bottom: 32px;
  margin-right: 25px;
}
section#news .news-wrapper ul li a:hover .image-container > img {
  transform: scale(1.1);
}
section#news .news-wrapper ul li a:hover h3 {
  text-decoration: underline;
}
section#news .news-wrapper ul li a .image-container {
  max-height: 320px;
  width: 100%;
  overflow: hidden;
}
section#news .news-wrapper ul li a .image-container > img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: 0.3s;
}
section#news .news-wrapper ul li a > p {
  color: var(--greenColor);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 20px;
}
section#news .news-wrapper ul li a > h3 {
  color: var(--lightDarkColor);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.3;
  padding-right: 20px;
  margin-top: 18px;
}
section#news ul.pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
section#news ul.pagination li {
  width: 40px;
  height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  outline: 1px solid var(--lightDarkColor);
  margin-right: 10px;
  cursor: pointer;
  border-radius: 6px;
}
section#news ul.pagination li:last-of-type {
  margin-right: 0;
}
section#news ul.pagination li.disabled {
  display: none;
}
section#news ul.pagination li > a,
section#news ul.pagination li span {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
}
section#news ul.pagination li.active {
  outline-color: var(--greenColor);
  color: var(--whiteColor);
}
section#news ul.pagination li a[rel] {
  font-size: 24px;
}

@media screen and (max-width: 1024px) {
  section#news .wrapper > h1 {
    font-size: 28px;
    text-align: center;
    margin: 0 10px;
  }
  section#news .wrapper > p {
    margin-top: 20px;
    font-size: 14px;
  }
  section#news .news-wrapper {
    margin-top: 50px;
  }
  section#news .news-wrapper ul li {
    width: 100%;
    margin-right: 0;
  }
  section#news .news-wrapper ul li a > p {
    font-size: 14px;
  }
  section#news .news-wrapper ul li a > h3 {
    font-size: 16px;
    padding-right: 10px;
  }
}
