.style-4-item {
  margin-bottom: 30px;
}

.style-4-padding {
  padding: 0.5rem 3rem 2rem 3rem !important;
}

.style-4 .category-padding {
  padding-bottom: 5rem !important;
}

.style-4-item:hover .style-4-item-info {
  background: #fff;
  transition: 1s ease;
}

.style-4-item:hover .style-4-item-post-title {
  color: #4DB7FE;
  transition: 1s ease;
}

.style-4-item:hover .style-4-item-post-link-button {
  background: #ec2a57;
  box-shadow: #ec94a8 0 3px 8px;
}

.style-4-item:hover .style-4-item-img-thumbnail:before {
  background: rgba(0, 0, 0, 0);
  transition: all 0.5s ease-in-out;
}

.style-4-item-img-thumbnail {
  padding-right: 0;
  padding-left: 0;
}

.style-4-item-img-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.31);
  z-index: 2;
  transition: all 0.5s ease-in-out;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.style-4-item-img-link {
  z-index: 3;
}

.style-4-item-info {
  height: 250px;
  max-height: 250px;
  padding: 0 20px;
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
  background: #f9f9f9;
  border: 1px solid #eee;
}

.style-4-item-post-title {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25rem;
  color: #334e6f;
  white-space: nowrap;
  overflow: hidden;
  margin-right: 20px;
}

.style-4-item-post-title-wrapper {
  margin-top: 20px;
}

.style-4-item-post-link-button {
  border-radius: 10px;
  padding: 15px 40px;
  background: #4DB7FE;
  font-weight: 600;
  box-shadow: #4DB7FE 0 3px 8px;
  bottom: 20px;
}

.style-4-item-post-excerpt {
  font-size: 14px;
  line-height: 25px;
  letter-spacing: 0.5px;
}

.style-4-item-post-excerpt-wrapper {
  height: auto;
  max-height: 100px;
  overflow: hidden;
  font-family: 'Poppins', sans-serif !important;
  margin-bottom: 20px;
}

.style-4 .order-first .style-4-item-info {
  border-top-left-radius: 7px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 0;
}

.style-4 .order-last .img-thumbnail {
  border-top-left-radius: 0;
  border-top-right-radius: 7px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 7px;
}

.style-4 .order-last .style-4-item-img-thumbnail::before {
  border-top-right-radius: 7px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 7px;
}

.style-4 .img-thumbnail {
  height: 240px;
  min-height: 240px;
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

.style-4 .date {
  bottom: 20px;
  top: auto;
}

.style-4 i.fas.fa-sign-in-alt {
  margin-left: 10px;
}

.style-4 .category-btn-wrapper .fa-eye {
  color: #fff;
}

.style-4 .category-btn-wrapper {
  padding-top: 1rem !important;
  padding-bottom: 4rem !important;
}

@media screen and (max-width: 576px) {
  #style-4 {
    display: none !important;
    visibility: hidden;
  }

  .style-4-item {
    padding: 0px 1.5rem;
  }

  .style-4-padding {
    padding: 0.5rem 0.5rem !important;
  }

  .style-4 .category-padding {
    padding-bottom: 3rem 0 !important;
  }

  .style-4 .img-thumbnail {
    height: 240px;
    min-height: 240px;
    border-bottom-left-radius: 0;
    border-top-right-radius: 7px;
  }

  .style-4 .order-last .img-thumbnail {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .style-4-item-img-thumbnail::before {
    display: none;
  }

  .style-4-item-post-title {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.25rem;
    white-space: break-spaces;
    overflow: hidden;
  }

  .style-4 .order-last {
    order: 1;
  }

  .style-4 .order-first {
    order: 2;
  }
}

@media screen and (min-width: 576px) and (max-width: 767px) {
  .style-4 .img-thumbnail {
    height: 240px;
    min-height: 240px;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .style-4-padding {
    padding: 2rem 1.5rem !important;
  }

  .style-4-item-post-title {
    font-size: 1.1rem;
    line-height: 1.1rem;
  }
}

@media screen and (min-width: 992px) and (max-width: 1023px) {
  .style-4-padding {
    padding: 2rem 1.5rem !important;
  }

  .style-4 .order-first {
    order: 2;
  }

  .style-4 .order-last {
    order: 1;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1199px) {
  .style-4-padding {
    padding: 2rem 1.5rem !important;
  }

  .style-4 .order-first {
    order: 2;
  }

  .style-4 .order-last {
    order: 1;
  }

  .style-4 .img-thumbnail {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom-left-radius: 0;
  }

  .style-4 .order-last .img-thumbnail {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .style-4-item-img-thumbnail::before {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom-left-radius: 0;
  }

  .style-4 .order-last .style-4-item-img-thumbnail::before {
    border-top-left-radius: 7px;
    border-bottom-right-radius: 0;
  }
}

@media screen and (max-width: 1600px) {
  #style-4 {
    display: none !important;
    visibility: hidden;
  }
}