.widget-postsbycategory {
  margin-bottom: 90px !important;
  margin-top: 100px;
}

.widget-postsbycategory .content {
  position: relative;
}

.widget-postsbycategory .line {
  width: 100%;
  height: 1px;
  background: #7686a1;
  position: absolute;
  top: 23px;
  left: 0;
  z-index: 0;
}

.widget-postsbycategory .header {
  position: relative;
  margin-bottom: 30px;
}

.widget-postsbycategory .header .title {
  line-height: 54px;
  font-family: "Playfair Display";
  font-size: 42px;
  font-weight: 400;
  color: #20212b;
  text-decoration: none;
  float: left;
  padding: 0 40px;
  background: #fff;
  position: relative;
  z-index: 1;
}

.widget-postsbycategory .header .categories {
  line-height: 24px;
  float: left;
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 25px 25px 5px;
}

.widget-postsbycategory .header .categories a {
  font-family: Hind;
  font-size: 18px;
  font-weight: 400;
  color: #006cb8;
  padding: 0 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  -webkit-transition: all 1s cubic-bezier(0, 0, 0, 0.82) 0s;
  -o-transition: all 1s cubic-bezier(0, 0, 0, 0.82) 0s;
  -moz-transition: all 1s cubic-bezier(0, 0, 0, 0.82) 0s;
  transition: all 1s cubic-bezier(0, 0, 0, 0.82) 0s;
}

.widget-postsbycategory .header .categories a:hover {
  color: #000;
  -webkit-transition: all 1s cubic-bezier(0, 0, 0, 0.82) 0s;
  -o-transition: all 1s cubic-bezier(0, 0, 0, 0.82) 0s;
  -moz-transition: all 1s cubic-bezier(0, 0, 0, 0.82) 0s;
  transition: all 1s cubic-bezier(0, 0, 0, 0.82) 0s;
}

.widget-postsbycategory .header .categories a:first-child {
  padding-left: 0;
}

.widget-postsbycategory .header .categories a:last-child {
  padding-right: 0;
}

.widget-postsbycategory .posts-container {
  position: relative;
  -webkit-transition: height 0.35s linear 0s;
  -moz-transition: height 0.35s linear 0s;
  -o-transition: height 0.35s linear 0s;
  transition: height 0.35s linear 0s;
}

.widget-postsbycategory .posts-container .posts {
  width: -webkit-calc(100% + 30px);
  width: -moz-calc(100% + 30px);
  width: calc(100% + 30px);
  opacity: 1;
  position: absolute;
  pointer-events: all;
}

.widget-postsbycategory .posts-container .posts .post .cover {
  display: block;
  width: 100%;
  padding-top: 75%;
  position: relative;
}

.widget-postsbycategory .posts-container .posts .post .cover .date {
  width: 45px;
  text-align: center;
  background: #eb5f22;
  padding: 15px 0;
  position: absolute;
  bottom: -15px;
  left: 0;
  z-index: 2;
}

.widget-postsbycategory .posts-container .posts .post .cover .date .days {
  color: #ffffff;
  font-family: 'Hind';
  font-size: 24px;
  font-weight: 700;
  line-height: 26px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.widget-postsbycategory .posts-container .posts .post .cover .date .sep {
  color: #ffffff;
  font-family: 'Hind';
  font-size: 24px;
  font-weight: 700;
  line-height: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.widget-postsbycategory .posts-container .posts .post .cover .date .month,
.widget-postsbycategory .posts-container .posts .post .cover .date .year {
  color: #ffffff;
  font-family: 'Hind';
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
}
.widget-postsbycategory .posts-container .posts .post .cover .date .month {
  font-size: 14px;
}
.widget-postsbycategory .posts-container .posts .post .cover .container-zoom {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  z-index: 0;
}

.widget-postsbycategory .posts-container .posts .post .cover .container-zoom .zoom {
  width: 100%;
  height: 100%;
  background-color: gray;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  position: absolute;
  top: 0;
  -webkit-transition: all 1.5s cubic-bezier(0, 0, 0, 0.82) 0s;
  -moz-transition: all 1.5s cubic-bezier(0, 0, 0, 0.82) 0s;
  -o-transition: all 1.5s cubic-bezier(0, 0, 0, 0.82) 0s;
  transition: all 1.5s cubic-bezier(0, 0, 0, 0.82) 0s;
}

.widget-postsbycategory .posts-container .posts .post .cover .date {
  position: absolute;
  background-color: #eb5f22;
  width: 45px;
  bottom: -10px;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  padding: 5px;
}
.widget-postsbycategory .posts-container .posts .post .cover .date.past {
  background-color: #666;
}
.widget-postsbycategory .posts-container .posts .post .cover .date.takes {
  color: #000000;
  background-color: #ffee00;
}
.widget-postsbycategory .posts-container .posts .post .cover .date.takes .month {
  color: #000000;
}
.widget-postsbycategory .posts-container .posts .post .cover .date.takes .to {
  font-size: 10px;
  float: left;
}
.widget-postsbycategory .posts-container .posts .post .cover .date span {
  display: block;
  font-weight: bold;
  font-size: 23.5px;
  line-height: 24.5px;
  font-family: 'Hind';
}

.widget-postsbycategory .posts-container .posts .post .cover .date .start-day {
  position: relative;
}

.widget-postsbycategory .posts-container .posts .post .cover .date .start-day:after {
  content: '';
  width: 5px;
  height: 2px;
  background: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

.widget-postsbycategory .posts-container .posts .post .cover .date .month {
  font-size: 15px;
  text-transform: uppercase;
  margin-top: 2px;
}
.widget-postsbycategory .posts-container .posts .post .cover .date .time {
  font-size: 11px;
}
.widget-postsbycategory .posts-container .posts .post .category {
  font-family: Hind;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #20212b;
  margin: 20px 0 15px;
  padding-left: 45px;
  position: relative;
}

.widget-postsbycategory .posts-container .posts .post .category:before {
  content: "";
  width: 40px;
  height: 2px;
  background: #bcc4d0;
  display: block;
  position: absolute;
  top: 9px;
  left: 0;
}

.widget-postsbycategory .posts-container .posts .post .category a {
  color: #20212b;
  text-decoration: none;
}

.widget-postsbycategory .posts-container .posts .post .title {
  display: inline-block;
  font-family: "Playfair Display";
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: #006cb8;
  padding-left: 45px;
  text-decoration: none;
  position: relative;
}

.widget-postsbycategory .posts-container .posts .post .title:hover {
  color: #000;
}

.widget-postsbycategory .posts-container .posts .post .title span {
  position: relative;
}

.widget-postsbycategory .posts-container .posts .post:hover .cover .zoom {
  filter: grayscale(50%);
  -webkit-filter: grayscale(50%);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
}

.widget-postsbycategory .posts-container .posts:not(.active) {
  opacity: 0;
  pointer-events: none;
}

.widget-postsbycategory .posts-container .posts:not(.active) .post .cover {
  opacity: 0;
}

.widget-postsbycategory .posts-container .posts:not(.active) .post .cover .date {
  left: -10px;
}

.widget-postsbycategory .posts-container .posts:not(.active) .post .category {
  opacity: 0;
}

.widget-postsbycategory .posts-container .posts:not(.active) .post .title {
  opacity: 0;
  top: 20px;
}

.widget-postsbycategory .posts-container .posts.active .post .cover {
  opacity: 1;
  -webkit-transition: all 1.5s cubic-bezier(0, 0, 0, 0.82) 0s;
  -moz-transition: all 1.5s cubic-bezier(0, 0, 0, 0.82) 0s;
  -o-transition: all 1.5s cubic-bezier(0, 0, 0, 0.82) 0s;
  transition: all 1.5s cubic-bezier(0, 0, 0, 0.82) 0s;
}

.widget-postsbycategory .posts-container .posts.active .post .cover .date {
  left: 0px;
  -webkit-transition: all 0.5s cubic-bezier(0, 0, 0, 0.82) 0s;
  -moz-transition: all 0.5s cubic-bezier(0, 0, 0, 0.82) 0s;
  -o-transition: all 0.5s cubic-bezier(0, 0, 0, 0.82) 0s;
  transition: all 0.5s cubic-bezier(0, 0, 0, 0.82) 0s;
}

.widget-postsbycategory .posts-container .posts.active .post .category {
  opacity: 1;
  -webkit-transition: all 1.5s cubic-bezier(0, 0, 0, 0.82) 0s;
  -moz-transition: all 1.5s cubic-bezier(0, 0, 0, 0.82) 0s;
  -o-transition: all 1.5s cubic-bezier(0, 0, 0, 0.82) 0s;
  transition: all 1.5s cubic-bezier(0, 0, 0, 0.82) 0s;
}

.widget-postsbycategory .posts-container .posts.active .post .title {
  opacity: 1;
  top: 0;
  -webkit-transition: all 1s cubic-bezier(0, 0, 0, 0.82) 0s;
  -moz-transition: all 1s cubic-bezier(0, 0, 0, 0.82) 0s;
  -o-transition: all 1s cubic-bezier(0, 0, 0, 0.82) 0s;
  transition: all 1s cubic-bezier(0, 0, 0, 0.82) 0s;
}

@media (max-width: 992px) {
  .widget-postsbycategory .post {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .widget-postsbycategory {
    margin-bottom: 20px !important;
  }
  .widget-postsbycategory .header {
    margin-bottom: 10px;
  }
  .widget-postsbycategory .header .title {
    font-size: 30px;
    line-height: 40px;
    padding: 0 20px 0 5px;
    float: none;
    display: inline-block;
    margin-left: -5px;
  }
  .widget-postsbycategory .header .categories {
    line-height: 45px;
    padding: 0;
    float: none;
  }
  .widget-postsbycategory .header .categories a {
    font-size-adjust: 14px;
    color: #006cb8;
    font-weight: bold;
  }
  .widget-postsbycategory .posts-container {
    height: auto;
  }
  .widget-postsbycategory .posts-container .posts {
    position: relative;
    left: 0;
  }
  .widget-postsbycategory .posts-container .posts .post {
    margin-bottom: 20px;
  }
  .widget-postsbycategory .posts-container .posts .post .title {
    font-size: 15px;
    line-height: 21px;
    padding-left: 30px;
  }
  .widget-postsbycategory .posts-container .posts .post .cover {
    padding-top: 75%;
  }
  .widget-postsbycategory .posts-container .posts .post .cover .date {
    min-height: 50px;
    padding: 5px 0;
  }
  .widget-postsbycategory .posts-container .posts .post .cover .date .days {
    font-size: 20px;
    line-height: 24px;
  }
  .widget-postsbycategory .posts-container .posts .post .category {
    padding-left: 30px;
    font-size: 13px;
  }
  .widget-postsbycategory .posts-container .posts .post .category:before {
    width: 20px;
  }
}
