/* Archive */
.entry-title {
  font-size: 22px;
  line-height: 1.5;
  a {
    color: inherit;
    display: block;
    &:hover {
      color: #555;
    }
  }
}
.entry-meta, .item--meta-default {
  margin-bottom: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 24px;
  color: #939393;
  @include font-family-heading($heading_default_font);
  li {
    margin-right: 20px;
    &:last-child {
      margin-right: 0;
    }
    &.item-author {
      text-transform: capitalize;
    }
  }
  i {
    margin-right: 4px;
  }
  a {
    color: inherit;
    &:hover {
      color: inherit;
    }
  }
}
.single-hentry.archive {
  margin-bottom: 50px;
  @include box-shadow(0 6px 24px rgba(#0b0b0b, 0.08));
  border: 1px solid #eeeeef;
  @include border-radius(4px);
  overflow: hidden;
  background-color: #fff;
  display: flex;
  flex-wrap: wrap;
  @include transition(all 300ms linear 0ms);
  .entry-featured {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    width: 52%;
    @media #{$mm-lg} {
      width: 48%;
    }
    @media #{$max-xs} {
      width: 100%;
    }
    a {
      display: block;
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      img {
        opacity: 0;
        position: absolute;
        z-index: -999;
      }
      &:hover {
        @include transform(scale(1.1) rotate(3deg));
      }
    }
    + .entry-body {
      width: 48%;
      @media #{$mm-lg} {
        width: 52%;
      }
      @media #{$max-xs} {
        width: 100%;
      }
    }
  }
  .entry-excerpt {
    font-size: 15px;
    line-height: 26px;
    margin-bottom: 7px;
  }
  .entry-body {
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    .entry-title {
      margin-bottom: 7px;
    }
    .entry-meta {
      margin-bottom: 16px;
    }
  }
  &:hover {
    @include box-shadow(0 21px 51px rgba(#0b0b0b, 0.11));
  }
}
/* End Archive */

/* Single Details */
.single-post {
  .gallery {
    margin-top: 0;
    margin-left: -15px;
    margin-right: -15px;
    .gallery-item {
      padding: 0 15px;
      img {
        @include border-radius(7px);
      }
    }
  }
  .single-title {
    font-size: 26px;
    margin-bottom: 14px;
  }
  .entry-featured {
    position: relative;
    img {
      width: 100%;
    }
  }
  .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 37px;
    list-style: none;
    border-bottom: 1px solid #ececf0;
    padding-bottom: 16px;
    position: relative;
    &:before {
      content: '';
      width: 40px;
      height: 3px;
      background-color: $primary_color;
      position: absolute;
      bottom: -1px;
      left: 0;
      @include box-shadow(0 7px 16px rgba(#0c0c0c, 0.22));
    }
    li {
      font-size: 15px;
      line-height: 20px;
      margin-right: 0;
      &:after {
        content: '|';
        margin: 0 10px;
      }
      &:last-child {
        &:after {
          display: none;
        }
      }
    }
  }
  .entry-category {
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    bottom: 30px;
    right: 35px;
    a {
      padding: 0 22px;
      line-height: 40px;
      color: #fff;
      font-size: 15px;
      font-weight: 600;
      margin-left: 4px;
      @include border-radius(4px);
      background-color: $secondary_color;
      background-size: 300%, 1px;
      background-position: 0%;
      color: #fff;
      @include box-shadow(0 8px 9px rgba($secondary_color, 0.34));
      &:hover, &:focus {
        background-position: 100%;
      }
    }
  }
  .entry-body {
    width: 100%;
    padding: 32px 32px 40px 32px;
    @media #{$max-xs} {
      padding-left: 20px;
      padding-right: 20px;
    }
  }
  .entry-blog {
    border: 1px solid #e8edf5;
    @include border-radius(7px);
    background-color: #fff;
    overflow: hidden;
  }
  .entry-content {
    p {
      margin-bottom: 24px;
      &:last-child {
        margin-bottom: 0;
      }
    }
    h1, h2, h3, h4, h5, h6 {
      color: #161616;
    }
  }
  .entry-footer {
    margin-top: 55px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ececf0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    > div {
      margin-bottom: 10px;
    }
    label {
      font-size: 15px;
      font-weight: 500;
      color: #223543;
      margin-right: 17px;
    }
    .entry-tags {
      flex-grow: 1;
    }
    .entry-social {
      a {
        font-size: 18px;
        height: 32px;
        width: 32px;
        background-color: $primary_color;
        @include border-radius(32px);
        line-height: 32px;
        text-align: center;
        color: #fff;
        display: inline-block;
        &.fb-social {
          background-color: #3b5998;
        }
        &.tw-social {
          background-color: #55acee;
        }
        &.g-social {
          background-color: #dd4b39;
        }
        &.pin-social {
          background-color: #cd339a;
        }
        + a {
          margin-left: 2px;
        }
      }
    }
  }
}
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  a {
    font-size: 15px;
    color: #222222;
    display: inline-block;
    line-height: 40px;
    padding: 0 22px;
    @include border-radius(6px);
    background-color: #f0f0f0;
    margin: 5px 5px 5px 0;
    &:hover {
      color: #fff;
      background-color: $primary_color;
    }
  }
}
.post-previous-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid #ececf0;
  padding: 21px 0;
  .post-previous {
    flex-grow: 1;
    margin-right: 30px;
  }
  a {
    font-size: 15px;
    font-weight: 600;
    position: relative;
    color: #222;
    &:hover {
      color: $primary_color;
      text-shadow: 0 8px 10px rgba(#0c0c0c, 0.1);
      -webkit-text-shadow: 0 8px 10px rgba(#0c0c0c, 0.1);
    }
  }
}
/* End Single Details */

.entry-content .page-links {
  clear: left;
  padding-top: 10px;
  span {
    text-align: center;
    display: inline-block;
    height: 26px;
    width: 26px;
    line-height: 26px;
    color: #fff;
    @include border-radius(26px);
    background-color: $primary_color;
    font-size: 14px;
    font-weight: 500;
    margin: 0 3px;
    @include transition(all 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) 0s);
  }
  a span {
    background-color: #e0e3e8;
    color: #000;
    &:hover {
      background-color: $primary_color;
      color: #fff;
    }
  }
  .post-page-numbers {
    margin: 0 3px;
    span {
      margin: 0;
    }
  }
}

.single-post, .page-template-blog-classic {
  #primary.col-12 {
    max-width: 840px;
    margin: auto;
  }
}

.posts-pagination {
  margin-bottom: -10px;
  .posts-page-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .page-numbers {
    text-align: center;
    height: 51px;
    width: 51px;
    line-height: 51px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    background-color: #fff;
    display: inline-block;
    margin: 0 6px 10px 6px;
    @include border-radius(6px);
    @include transition(all 300ms linear 0ms);
    position: relative;
    z-index: 1;
    &:before, &:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      @include transition(all 300ms linear 0ms);
    }
    &:before {
      border: 2px solid #eeecec;
      @include border-radius(51px);
      z-index: -2;
    }
    &:after {
      background-color: $primary_color;
      @include border-radius(51px);
      z-index: -1;
      opacity: 0;
    }
    &.current, &:hover, &:focus {
      color: #fff;
      &:before {
          opacity: 0;
      }
      &:after {
          opacity: 1;
      }
    }
    &.next, &.prev {
      font-size: 18px;
    }
  }
}

/* 404 Page */
.error-404 {
  .error-404-content {
    padding: 0 15px;
    text-align: center;
  }
  .error-404-title {
    font-size: 30px;
    margin-top: 83px;
    @media #{$max-sm} {
      margin-top: 45px;
    }
  }
  .error-404-desc {
    margin-bottom: 45px;
    font-size: 18px;
    line-height: 30px;
    max-width: 454px;
    margin-left: auto;
    margin-right: auto;
  }
}

.no-results.not-found {
  .searchform-wrap {
    position: relative;
  }
  .search-submit {
    position: absolute;
    top: 0;
    right: 0;
    height: 51px;
    line-height: 51px;
    padding: 0;
    width: 61px;
    background-color: transparent;
    color: #222;
  }
}