.single-hentry {
    &.product {
        .entry-meta {
            display: none;
        }
    }
    .entry-featured {
        position: relative;
        overflow: hidden;
        img {
            @include transition(.3s cubic-bezier(.24,.74,.58,1));
            width: 100%;
            @include border-radius(7px 7px 0 0);
        }
    }
    .entry-title {
        font-size: 36px;
        margin-bottom: 15px;
        display: flex;
        @media #{ $max-md } {
            font-size: 25px;
            margin-bottom: 15px;
        }
        i {
            margin-right: 8px;
            font-size: 22px;
            color: $primary_color;
        }
        a {
            color: inherit;
            &:hover {
                color: $primary_color;
            }
        }
    }
    .entry-excerpt {
        margin-bottom: 25px;
    }
    .entry-readmore {
        display: inline-block;
        a {
            height: 50px;
            line-height: 50px;
            padding-left: 22px;
            padding-right: 22px;
            @include border-radius( 35px);
            background-color: $secondary_color;
            display: flex;
            align-items: center;
            color: #fff;
            z-index: 1;
            position: relative;
            overflow: hidden;
            &:after {
              content: "";
              background: #fff;
              @include transition(all .5s);
              position: absolute;
              height: 120%;
              width: 15px;
              opacity: .2;
              left: -35%;
              top: -10%;
              transform: rotate(15deg);
              -moz-transform: rotate(15deg);
              -webkit-transform: rotate(15deg);
              -o-transform: rotate(15deg);
            }
            i {
                font-size: 22px;
                font-weight: 300;
                font-style: normal;
                position: relative;
                top: 1px;
                @include transition(all .5s);
                margin-left: 5px;
            }
            &:hover, &:focus {
              background: $primary_color;
              i {

              }
              &:after {
                left: 130%;
              }
            }
        }
    }
    .entry-body {
        padding: 0 20px;
        @media #{$max-lg} {
            padding: 0 15px;
        }
    }
    + .single-hentry {
        margin-top: 40px;
    }
    &.archive {
        .entry-featured {
            + .entry-body {
                padding-top: 40px;
                border-top: none;
                @include border-radius(0 0 7px 7px);
                @media #{$max-lg} {
                    padding-top: 40px;
                }
                @media #{$max-sm} {
                    padding-top: 35px;
                }
            }
        }
        .entry-body {
            border: 1px solid #eeeeee;
            padding: 40px 30px 40px;
            @media #{ $max-sm } {
                padding: 30px 15px 30px;
            }
        }
        .entry-meta {

        }
        .entry-excerpt {
            margin-bottom: 30px;
            color: rgba( $third_color, 0.7 );
        }
    }
}

.single-post {
    blockquote {

    }
    .single-hentry {
        .entry-body {
            padding-top: 50px;
            padding-bottom: 10px;
            border: 1px solid #dadada;
            @include border-radius( 0 0 3px 3px );
        }
        .entry-featured {
            + .entry-body {
                border-top: none;
            }
        }
    }
    .entry-content {
        p {
            margin-bottom: 26px;
            &:last-child {
                margin-bottom: 0;
            }
        }
    }
    .entry-blog {
        margin-bottom: 23px;
    }
    .single-heading {
        font-size: 26px;
        margin-bottom: 18px;
        padding-top: 5px;
    }
    .entry-tags {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        flex-grow: 1;
        margin-right: 30px;
        margin-top: 5px;
        margin-bottom: 5px;
        a {
            display: inline-block;
            padding: 0 10px;
            line-height: 30px;
            background-color: #fff;
            border: 1px solid rgba($secondary_color, 0.2);
            color: #000;
            text-transform: capitalize;
            font-size: 15px;
            margin-right: 5px;
            @include border-radius(2px);
            margin: 5px 5px 5px 0;
            letter-spacing: 0.01em;
            position: relative;
            z-index: 1;
            overflow: hidden;
            &:after {
              content: "";
              background: #fff;
              -webkit-transition: all .8s;
              -ms-transition: all .8s;
              transition: all .8s;
              position: absolute;
              height: 120%;
              width: 15px;
              opacity: .2;
              left: -35%;
              top: -10%;
              transform: rotate(15deg);
              -moz-transform: rotate(15deg);
              -webkit-transform: rotate(15deg);
              -o-transform: rotate(15deg);
            }
            &:hover, &:focus {
              background: $primary_color;
              border-color: $primary_color;
              color: #fff;
              &:after {
                left: 130%;
              }
            }
        }
    }
    .entry-social {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin: 10px 0;
        a {
            width: 30px;
            height: 30px;
            @include border-radius(30px);
            font-size: 13px;
            color: #fff;
            background-color: #020033;
            display: inline-block;
            line-height: 32px;
            text-align: center;
            + a {
                margin-left: 6px;
            }
            &:hover {
                background-color: $primary_color;
                color: #fff;
                @include transform(translate(0, -4px));
            }
            &.fb-social {
                &:hover {
                    background-color: #3b5998;
                }
            }
            &.tw-social {
                &:hover {
                    background-color: #55acee;
                }
            }
            &.pin-social {
                &:hover {
                    background-color: #bd081c;
                }
            }
            &.lin-social {
                &:hover {
                    background-color: #0077B5;
                }
            }
        }
    }
    .entry-footer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 0 0 22px;
        margin-bottom: 45px;
        position: relative;
        &:after {
            content: "";
            display: inline-block;
            background-image: url(../images/bg-line.png);
            background-repeat: repeat-x;
            width: 100%;
            height: 2px;
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
        }
        label {
            font-size: 15px;
            color: #222222;
            font-weight: 700;
            @include font-family-heading($heading_default_font);
            margin: 6px 0;
            margin-right: 18px;
        }
    }
    .entry-author-info {
        background-color: #fff;
        border: 1px solid #dadada;
        margin-bottom: 40px;
        padding: 20px;
        display: flex;
        flex-wrap: nowrap;
        .entry-author-meta {
            padding-top: 10px;
        }
        .entry-author-avatar {
            min-width: 150px;
            width: 150px;
            margin-right: 20px;
            @media #{$max-sm} {
                width: 80px;
                min-width: 80px;
                margin-right: 20px;
            }
            img {
                width: 100%;
            }
        }
        .author-name {
            margin-top: -4px;
            margin-bottom: 12px;
            font-size: 22px;
            a {
                color: inherit;
                &:hover {
                    color: $primary_color;
                }
            }
        }
        .author-description {
            margin-bottom: 15px;
            font-size: 16px;
            font-weight: 400;
        }
        .user-social {
            list-style: none;
            margin: 0;
            li {
                display: inline-block;
            }
            a {
                color: $third_color;
                margin-right: 20px;
                i {
                    &:before {
                        font-weight: bold;
                    }
                }
                &:hover {
                    color: $primary_color;
                }
            }
        }
    }
}

.ct-related-post {
    margin-bottom: 63px;
    .widget-title {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 35px;
    }
    .entry-meta {
        list-style: none;
        margin-left: 10px;
        margin-right: 10px;
        background-color: $secondary_color;
        display: block;
        padding: 13px 15px;
        @include border-radius(7px);
        font-size: 16px;
        margin-bottom: 30px;
        li {
            display: inline-block;
            color: #fff;
            margin-right: 10px;
            i {
                font-size: 13px;
                margin-right: 5px;
            }
            &:last-child {
                margin-right: 0;
            }
            a {
                color: #fff;
                &:hover {
                    color: $primary_color;
                }
            }
        }
    }
    .btn-primary {
        line-height: 36px;
        display: inline-block;
        padding: 0 20px;
        @include border-radius(36px);
        background-color: $secondary_color;
        color: #fff;
        z-index: 1;
        position: relative;
        overflow: hidden;
        i {
            font-style: normal;
        }
        &:after {
          content: "";
          background: #fff;
          -webkit-transition: all .8s;
          -ms-transition: all .8s;
          transition: all .8s;
          position: absolute;
          height: 120%;
          width: 15px;
          opacity: .2;
          left: -35%;
          top: -10%;
          transform: rotate(15deg);
          -moz-transform: rotate(15deg);
          -webkit-transform: rotate(15deg);
          -o-transform: rotate(15deg);
        }
        &:hover, &:focus {
          background: $primary_color;
          &:after {
            left: 130%;
          }
        }
    }
    .item-title {
        font-size: 26px;
        margin-bottom: 25px;
        a {
            color: $secondary_color;
        }
    }
    .item-featured {
        img {
            border-radius: 7px;
            width: 100%;
        }
        + .item-holder {
            .entry-meta {
                margin-top: -25px;
            }
        }
    }
    .item-holder {
        padding-left: 10px;
        padding-right: 10px;
        position: relative;
        z-index: 1;
    }
    .grid-item-inner {
        padding: 10px 10px 40px;
        background-color: #fff;
        @include border-radius(7px);
        @include box-shadow(0 3px 15px rgba(#0c0c0c, 0.09));
        &:hover {
            .item-title {
                a {
                    color: $primary_color;
                }
            }
        }
    }
    .ct-related-post-inner {
        margin-left: -15px;
        margin-right: -15px;
    }
}

.ct-posts-pagination {
    margin-top: 45px;
    .page-numbers {
        width: 42px;
        height: 42px;
        background-color: #eaeaea;
        line-height: 44px;
        text-align: center;
        @include border-radius(42px);
        font-size: 16px;
        font-weight: 700;
        display: inline-block;
        margin-right: 15px;
        margin-top: 15px;
        color: $secondary_color;
        position: relative;
        z-index: 1;
        padding: 0;
        border: none;
        &:before {
            content: '';
            height: 0;
            width: 100%;
            position: absolute;
            bottom: 0;
            left: 0;
            z-index: -1;
            @include transition(.3s cubic-bezier(.24,.74,.58,1));
        }
        &.current, &:hover {
            color: #fff;
            background-color: $primary_color;
            &:before {
                height: 100%;
            }
        }
        &.next, &.prev {
            font-size: 12px;
        }
    }
    .posts-page-links {
        display: flex;
    }
}

.entry-navigation {
    border-bottom: 1px solid #e2e2e2;
    padding: 32px 0 40px;
    display: flex;
    flex-wrap: wrap;
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        .nav-item {
            width: 50%;
            @media #{$max-xs} {
                width: 100%;
                + .nav-item {
                    margin-top: 30px;
                }
            }
        }
    }
    .nav-post-label {
        position: relative;
        font-size: 14px;
        font-weight: 500;
        color: #222222;
        text-transform: uppercase;
        display: inline-block;
        &:before {
            content: '';
            width: 0;
            @include transition(.3s cubic-bezier(.24,.74,.58,1));
            height: 1px;
            background-color: rgba($primary_color, 0.67);
            position: absolute;
            bottom: 3px;
            left: 0;
        }
        &:hover {
            color: $primary_color;
            &:before {
                width: 100%;
            }
        }
        i {
            font-size: 10px;
        }
    }
    .nav-post-img {
        width: 60px;
        min-width: 60px;
        position: relative;
        a {
            display: block;
                &:before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                @include border-radius(8px);
                background-color: rgba($primary_color, 0.84);
                @include transition(.3s cubic-bezier(.24,.74,.58,1));
                opacity: 0;
            }
            &:after {
                content: '+';
                font-size: 24px;
                color: #fff;
                position: absolute;
                top: 50%;
                left: 50%;
                @include transform(translate(-50%, -50%));
                @include transition(.3s cubic-bezier(.24,.74,.58,1));
                opacity: 0;
            }
        }
        img {
            @include border-radius(8px);
        }
        &:hover a {
            &:before, &:after {
                opacity: 1;
            }
        }
    }
    .nav-post-meta {
        max-width: 260px;
        a {
            color: #0e0e0e;
            font-size: 16px;
            line-height: 24px;
            font-weight: 700;
            @include font-family-heading($heading_default_font);
            &:hover {
                color: $primary_color;
            }
        }
    }
    .nav-post-holder {
        margin-top: 14px;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }
    .nav-post-prev {
        padding-right: 20px;
        .nav-post-label i {
            margin-right: 4px;
        }
        .nav-post-img {
            margin-right: 22px;
        }
    }
    .nav-post-next {
        text-align: right;
        .nav-post-label i {
            margin-left: 4px;
        }
        .nav-post-img {
            margin-left: 22px;
        }
        .nav-post-holder {
            justify-content: flex-end;
        }
    }
}

.ct-item-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #ececf0;
    padding-bottom: 25px;
    margin-bottom: 20px;
    li {
        font-size: 16px;
        color: $secondary_color;
        margin-right: 35px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        position: relative;
        font-weight: 600;
        i {
            margin-right: 8px;
            font-size: 14px;
            color: inherit;
            position: relative;
            top: 1px;
        }
        a {
            color: inherit;
            &:hover {
                color: inherit;
            }
        }
        &:last-child {
            margin-right: 0;
        }
        &.item-author a, &.item-comment a {
            color: $secondary_color;
            &:hover {
                color: $primary_color;
            }
        }
        &.item-category {
            padding: 3px 10px;
            background-color: $primary_color;
            border-radius: 3px;
            color: #fff;
            a {
                font-weight: bold;
                color: #fff;
                &:hover {
                    text-decoration: underline;
                }
                + a {
                    margin-left: 4px;
                }
            }
        }
    }
}

.page-links {
    margin-top: 24px;
    clear: left;
    .post-page-numbers {
        background-color: $secondary_color;
        height: 25px;
        width: 25px;
        line-height: 25px;
        text-align: center;
        display: inline-block;
        color: #fff;
        font-weight: 700;
        font-size: 14px;
        &.current, &:hover {
            background-color: $primary_color;
        }
        +  .post-page-numbers {
            margin-left: 4px;
        }
    }
}

body.tax-portfolio-category, body.post-type-archive-product {
    .content-container {
        max-width: 1200px;
        #primary.col-12 {
            max-width: 100%;
          }
    }
    .ct-portfolio-grid1 {
        display: flex;
        flex-wrap: wrap;
        .archive-portfolio {
            padding: 0 15px;
            width: 33.33%;
            @media #{$max-md} {
                width: 50%;
            }
            @media #{$max-sm} {
                width: 100%;
            }
        }
    }
}

.single-portfolio {
    .ct-pagetitle {
        &.text-left {
            .ct-page-title {
                @media #{ $min-xl } {
                    margin-left: 0!important;
                    max-width: 850px;
                }
            }
        }
    }
}

body.error404 {
    .site-content {
        &:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url(../images/bg-overlay-404.png);
            background-repeat: no-repeat;
            background-position: right bottom;
        }
        .box-search {
            .title-404 {
                font-size: 48px;
                margin-bottom: 24px;
                @media #{ $max-sm } {
                    font-size: 35px;
                }
                @media #{ $max-xs } {
                    font-size: 30px;
                }
            }
            .excerpt-404 {
                font-size: 16px;
                margin-bottom: 38px;
            }
        }
        .search-form {
            max-width: 470px;
            margin: 0 auto 46px;
            .searchform-wrap {
                position: relative;
                .search-field {
                    width: 100%;
                    height: 60px;
                    border-radius: 6px;
                    background-color: #f4f4f4;
                }
                .search-submit {
                    position: absolute;
                    top: 10px;
                    right: 10px;
                    width: 40px;
                    height: 40px;
                    padding-left: 0;
                    padding-right: 0;
                    line-height: 40px;
                    border-radius: 5px;
                }
            }
        }
    }
    .error-404-image {
        padding: 0 15px;
        margin: 0 auto 35px auto;
    }
    .error-404-content {
        text-align: center;
        .entry-footer {
            display: flex;
            align-items: center;
            justify-content: center;
            img {
                margin-right: 25px;
                position: relative;
                top: -10px;

            }
        }
        .btn {
            height: 55px;
            line-height: 55px;
            @include border-radius(35px);
            background-color: $primary_color;
            position: relative;
            z-index: 100;
        }
    }
}

.search-results {
    .single-hentry {
        &.type-product {
            border: 1px solid #eee;
            .entry-body {
                border: none;
                border-top: 1px solid #eee;
            }
        }
    }
}