/* Archive */
.entry-title {
  font-size: 26px;
  line-height: 1.4;
  @media #{$max-xs} {
    font-size: 24px;
  }
  a {
    color: inherit;
    display: block;
    &:hover {
      color: $secondary_color;
    }
  }
}
.entry-meta, .item--meta-default {
  margin-bottom: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 24px;
  color: #676f95;
  font-weight: 500;
  border-bottom: 1px solid #e4ebf2;
  position: relative;
  padding-bottom: 10px;
  text-transform: uppercase;
  &:before {
    content: '';
    width: 40px;
    height: 3px;
    background-color: $primary_color;
    position: absolute;
    bottom: -1px;
    left: 0;
  }
  li {
    margin-right: 24px;
    &:last-child {
      margin-right: 0;
    }
    &.item-author {
      text-transform: capitalize;
    }
  }
  i {
    margin-right: 4px;
    color: $secondary_color;
  }
  a {
    color: inherit;
    text-transform: uppercase;
    &:hover {
      color: $primary_color;
    }
  }
}
.single-hentry.archive {
  margin-bottom: 40px;
  @include box-shadow(0 6px 22px rgba(#041445, 0.05));
  border: 1px solid #eeeeef;
  @include border-radius(2px);
  overflow: hidden;
  background-color: #fff;
  display: flex;
  flex-wrap: wrap;
  @include transition(all 300ms linear 0ms);
  .entry-meta {
    width: 100%;
  }
  .entry-featured {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    width: 32%;
    @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;
      }
    }
    + .entry-body {
      width: 68%;
      @media #{$max-xs} {
        width: 100%;
      }
    }
  }
  .entry-excerpt {
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 22px;
    @media #{$max-sm} {
      font-size: 15px;
      line-height: 27px;
    }
  }
  .entry-body {
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    @media #{$max-sm} {
      padding-right: 20px;
    }
    @media #{$max-xs} {
      padding-left: 20px;
    }
    .entry-title {
      margin-bottom: 10px;
      width: 100%;
    }
    .entry-meta {
      margin-bottom: 16px;
    }
  }
  .entry-holder {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    .entry-readmore {
      margin-right: 20px;
      flex-grow: 1;
    }
  }
  &:hover {
    @include box-shadow(0 22px 30px rgba(#041445, 0.10));
  }
}

.entry-social-share {
  position: relative;
  .social-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    color: $secondary_color;
    font-size: 18px;
    cursor: pointer;
  }
  .entry-social {
    position: absolute;
    top: 50%;
    @include transform(translate(0, -50%));
    right: 72px;
    display: flex;
    flex-wrap: nowrap;
    opacity: 0;
    @include transition(all 240ms linear 0ms);
    a {
      margin-left: 10px;
    }
    i {
      width: 32px;
      height: 32px;
      line-height: 32px;
      text-align: center;
      color: #fff;
      @include border-radius(32px);
      @include transition(all 240ms linear 0ms);
      &:hover {
        @include transform(translate(0, -4px));
        @media #{$max-sm} {
          @include transform(translate(4px, 0px));
        }
      }
      &.fac-facebook-f {
        background-color: #3b5998;
      }
      &.fac-twitter {
        background-color: #55acee;
      }
      &.fac-pinterest-p {
        background-color: #dd4b39;
      }
      &.fac-linkedin-in {
        background-color: #cd339a;
      }
    }
    @media #{$max-sm} {
      display: inline-block;
      right: auto;
      top: auto;
      left: 50%;
      bottom: 32px;
      @include transform(translate(-50%, 0));
      a {
        display: block;
        margin-top: 10px;
        margin-left: 0px;
      }
    }
  }
  &:hover .entry-social {
    right: 42px;
    opacity: 1;
    @media #{$max-sm} {
      right: auto;
      bottom: 42px;
    }
  }
}

.single-hentry {
  .entry-date {
    position: absolute;
    z-index: 99;
    background-color: $secondary_color;
    top: 16px;
    left: 16px;
    border-radius: 3px;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    text-align: center;
    @include font-family-heading($heading_default_font);
    text-transform: uppercase;
    padding: 8px 6px;
    min-width: 61px;
    min-height: 61px;
    span {
      display: block;
      + span {
        font-size: 14px;
        margin-top: 5px;
      }
    }
  }
  .entry-category {
    margin-bottom: 7px;
    a {
      font-size: 12px;
      color: #082680;
      text-transform: uppercase;
      font-weight: 500;
      display: inline-block;
      padding: 0 12px;
      line-height: 25px;
      background-color: #ced4e6;
      &:hover {
        background-color: $secondary_color;
        color: #fff;
      }
    }
  }
}
/* End Archive */

/* Single Details */
.single-post {
  .entry-meta {
    margin-bottom: 30px;
  }
  .gallery {
    margin-top: 0;
    margin-bottom: 13px;
    margin-left: -15px;
    margin-right: -15px;
    .gallery-item {
      padding: 0 15px;
      margin-top: 5px;
      margin-bottom: 24px;
      img {
        @include border-radius(7px);
      }
    }
  }
  .single-title {
    font-size: 26px;
    margin-bottom: 14px;
  }
  .entry-featured {
    position: relative;
    img {
      width: 100%;
    }
  }
  .entry-body {
    width: 100%;
    padding: 32px 0 40px 0px;
    @media #{$max-xs} {
      padding-left: 20px;
      padding-right: 20px;
    }
  }
  .entry-content {
    p {
      margin-bottom: 24px;
      &:last-child {
        margin-bottom: 0;
      }
    }
  }
  .entry-footer {
    margin-top: 55px;
    border-bottom: 1px solid #ececf0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    > div {
      padding-bottom: 30px;
    }
    label {
      font-size: 15px;
      font-weight: 700;
      color: $dark_color;
      margin-right: 17px;
      @include font-family-heading($heading_default_font);
    }
    .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;
        }
        &:hover {
          @include transform(translate(0, -4px));
          @include box-shadow(0 8px 10px rgba($secondary_color_hex, 0.1));
        }
      }
    }
  }
}
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  a {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    color: $dark_color;
    display: inline-block;
    line-height: 40px;
    padding: 0 22px;
    @include border-radius(3px);
    background-color: #f4f7fc;
    margin: 5px 5px 5px 0;
    &:hover {
      color: #fff;
      background-color: $primary_color;
      @include box-shadow(0 8px 10px rgba(#0c0c0c, 0.1));
    }
  }
}
.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;
    @media #{$max-sm} {
      margin-right: 10px;
    }
  }
  a {
    font-size: 15px;
    font-weight: 600;
    position: relative;
    color: $dark_color;
    background-color: #f4f7fc;
    padding: 0 28px;
    line-height: 50px;
    display: inline-block;
    @media #{$max-sm} {
      padding: 0 12px;
    }
    &:hover {
      color: #fff;
      background-color: $primary_color;
      @include box-shadow(0 8px 10px rgba($secondary_color_hex, 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 {
  .posts-page-links {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 0;
  }
  .page-numbers {
    text-align: center;
    height: 51px;
    width: 51px;
    line-height: 51px;
    font-size: 15px;
    font-weight: 700;
    color: $dark_color;
    background-color: #fff;
    display: inline-block;
    margin: 0 16px 0 0;
    @include border-radius(5px);
    @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 {
      @include border-radius(5px);
      z-index: -2;
    }
    &:after {
      background-color: $secondary_color;
      @include border-radius(5px);
      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: 36px;
    font-weight: 600;
    color: #061c4f;
    margin-bottom: 41px;
    @media #{$max-sm} {
      font-size: 32px;
    }
  }
  .error-404-image {
    margin-bottom: 80px;
  }
}

.error404 .site-content {
  padding-bottom: 160px !important;
  background-image: url(../images/bg-404.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.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;
  }
}