.postsFeed {
  max-width: 1240px;
  padding: 0 40px 176px;
  margin: 0 auto;
}

.postsFeed-padding {padding: 0 40px 64px;}

.postsSection {
  display: flex;
  flex-direction: row;
}

.pagination {
  width: 100%;
  display: flex;
  justify-content: center;
}

.posts-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto 24px;
  padding: 0 40px;
  text-align: center;
}

.posts-navigation .page-numbers {
  padding: 8px 12px;
  margin-bottom: 8px;
  margin-right: 4px;

  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 16px;
  text-decoration: none;
  text-align: center;
  color: #7B7B7B;

  border-radius: 1rem;
  transition: 0.3s ease-in-out;
}

.posts-navigation > .prev {
  width: 32px;
  height: 32px;
  padding: 0;
  margin-right: 8px;
  background-image: url('../img/icons/icon-arrow-left.svg');
  background-repeat: no-repeat;
  background-position: 44%;
}

.posts-navigation > .next {
  width: 32px;
  height: 32px;
  padding: 0;
  margin-left: 8px;
  background-image: url('../img/icons/icon-arrow-right.svg');
  background-repeat: no-repeat;
  background-position: 50%;
}

.posts-navigation .page-numbers:last-child {margin-right: 0;}

.posts-navigation .page-numbers:hover {
  color: #7B7B7B;
  background-color: #EEEEEE;
}

.posts-navigation .page-numbers.current {
  color: #FFFFFF;
  background-color: #00AB6B;
}

.posts-navigation .page-numbers.current:hover {
  color: #FFFFFF;
  background-color: #00AB6B;
}

.posts-navigation .page-numbers.dots:hover {color: #7B7B7B;}
.pageHeading {padding: 24px 0 32px 0;}

/*  Card System  */
.card {
  display: inline-block;
  position: relative;
  overflow: hidden;
  background-color: #fafafa;
  border-radius: 8px;
  margin-right: 16px;
  margin-bottom: 16px;
  z-index: 1;
}

.card:last-child {
  margin-right: 0px;
}

.card.large {
  width: 100%;
  height: 458px;
}

.card.large.top {
  border-radius: 16px;
  box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.card.medium {
  width: 572px;
  height: 360px;
}

.card.small {
  width: 376px;
  height: 496px;
}

.cardImg {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  transition: all 0.2s ease-in;
}

.card:hover .cardImg,
.card:focus .cardImg{
  transform: scale(1.01);
  transition: all 0.2s ease-in;
}

.cardImgOverlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(-180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.50) 100%);
}

a.postUrl {
  display: block;
  width: 100%;
  height: 100%;
}

.cardWrapper {
  width: 100%;
  height: 100%;
}

.cardWrapper::after {
  display: block;
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0;
  background-color: white;
  transition: all .2s ease-in-out;
}

.card:hover .cardWrapper::after {opacity: .1;}

/*  Cards Typography  */
.pageHeading h1 {
  font-weight: 900;
  font-size: 40px;
  letter-spacing: -0.5px;
  line-height: 44px;
}

.pageHeading p.pageHeadingCaption {
  font-size: 16px;
  color: rgba(26, 26, 26, .5);
  line-height: 18px;
  margin-bottom: 2px;
}

.cardTitle {
  position: absolute;
  color: white;
}

.card.large.top .cardTitle {
  right: 60px;
  bottom: 48px;
  left: 60px;
}

.card.large .cardTitle {
  right: 40px;
  bottom: 32px;
  left: 40px;
}

.card.medium .cardTitle,
.card.small .cardTitle {
  right: 40px;
  bottom: 36px;
  left: 40px;
}

.cardTitle .postInfo {
  display: block;
  margin-bottom: 8px;
}

.cardTitle .postInfo .postTag {display: inline-block;}

.cardTitle .postInfo .postTag a {
  font-weight: 500;
  font-size: 15px;
  line-height: 18px;
  color: white;
  text-decoration: none;
}

.cardTitle .postInfo .postDate {
  display: inline-block;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  margin-left: 6px;
}

.cardTitle .postInfo .postDate::before {
  content: '•';
  margin-right: 8px;
}

.cardTitle h2 {font-weight: 700;}

.large.top .cardTitle h2 {
  font-size: 36px;
  line-height: 44px;
}

.large .cardTitle h2 {
  font-size: 30px;
  line-height: 38px;
}

.cardTitle h3 {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.2px;
  line-height: 24px;
}

/*  Posts Loader  */
.postsLoader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  background-image: linear-gradient(0deg, #FAFAFA 0%, #FFFFFF 100%);
}

.loaderBtn {
  width: 160px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: -0.24;
  color: #1A1A1A;
  opacity: .8;
}

.loaderBtn:focus,
.loaderBtn:hover {
  opacity: .6;
}

#loaderIcon {
  font-size: 18px;
  margin-top: 8px;
}

/* for-phone-only */
@media only screen and (max-width: 599px) {
  .postsFeed {padding: 0 24px 176px;}
  .postsFeed-padding {padding: 0 24px 50px;}
  .postsSection {flex-direction: column;}
  .pageHeading {padding: 16px 0 24px 0;}
  .card.large {
    width: 100%;
    height: 320px;
  }
  .card.medium, .card.small {
    width: 100%;
    height: 304px;
  }
  .pageHeading h1 {
    font-size: 28px;
    letter-spacing: -0.3px;
    line-height: 32px;
  }
  .pageHeading p.pageHeadingCaption {
    font-size: 14px;
    line-height: 16px;
  }
  .card.large.top .cardTitle,
  .card.large .cardTitle,
  .card.medium .cardTitle,
  .card.small .cardTitle {
    right: 24px;
    bottom: 24px;
    left: 24px;
  }
  .large.top .cardTitle h2 {
    font-size: 18px;
    letter-spacing: -0.2px;
    line-height: 22px;
  }
  .cardTitle .postInfo .postTag a {
    font-size: 13px;
    line-height: 16px;
  }
  .cardTitle .postInfo .postDate {
    font-size: 11px;
    line-height: 16px;
  }
  .large .cardTitle h2,
  .cardTitle h3 {
    font-size: 16px;
    letter-spacing: -0.16px;
    line-height: 22px;
  }
  .posts-navigation {
    width: 100%;
    padding: 0 24px;
  }
}

/* for-tablet-portrait-up */
@media only screen and (min-width: 600px) and (max-width: 899px) {
  .postsFeed {padding: 0 40px 176px;}
  .postsFeed-padding {padding: 0 40px 50px;}
  .postsSection {flex-direction: column;}
  .card.large {
    width: 100%;
    height: 440px;
  }
  .card.medium, .card.small {
    width: 100%;
    height: 360px;
  }
  .card.large.top .cardTitle, .card.large .cardTitle, .card.medium .cardTitle, .card.small .cardTitle {
    right: 40px;
    bottom: 36px;
    left: 40px;
  }
  .large.top .cardTitle h2 {
    font-size: 30px;
    line-height: 38px;
  }
  .posts-navigation {
    width: 100%;
    padding: 0 24px;
  }
}

/* for-tablet-landscape-up */
@media only screen and (min-width: 900px) and (max-width: 1199px) {
  .postsFeed {padding: 0 40px 176px;}
  .postsFeed-padding {padding: 0 40px 50px;}
  .postsSection {flex-direction: row;}
  .col_2 .small:nth-child(2) {display: none;}
  .card.large {height: 440px;}
  .card.medium {
    width: 100%;
    height: 320px;
  }
  .card.small {
    width: 100%;
    height: 396px;
  }
  .card.large.top .cardTitle {
    right: 60px;
    bottom: 56px;
    left: 60px;
  }
  .large.top .cardTitle h2 {
    font-size: 36px;
    line-height: 44px;
  }
}

/* for-tablet-desktop-up */
@media only screen and (min-width: 1200px) {
  .col_2 .small:nth-child(2) {display: inherit;}
  .card.medium {height: 360px;}
  .card.small {
    display: inherit;
    height: 496px;
  }
  .card.large.top .cardTitle {
    right: 60px;
    bottom: 48px;
    left: 60px;
  }
}
