/*
** Blog
*/

.blog_slider {
  margin-bottom: 82px;
  @media (max-width: 767px) {
    margin-bottom: 60px;
  }
  .flexslider .slides li{
    @media (max-width: 575px) {
      min-height: unset;
    }
  }
  .intro_layers_wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  @media (min-width: 992px) {
    .intro_layers_wrapper {
      left: 130px;
      right: 130px;
    }
  }
  h3{
    font-size: 40px;
    font-weight: 500;
  }
  h2{
    font-size: 80px;
    font-weight: 500;
  }
  .intro_layers{
    margin-bottom: 95px;
  }
  @media (max-width: 991px) {
    h2{
      font-size: 50px;
    }
    .intro_layers{
      margin-bottom: 0;
    }
  }

  @media (max-width: 768px) {
    h3{
      font-size: 26px;
    }
    h2{
      font-size: 26px;
    }
    h2, h3{
      text-transform: capitalize;
    }
    .intro_layers{
      padding-top: 30px;
      padding-bottom: 50px;
    }
  }
}

.blog-featured-posts {
  .post {
    height: 100%;
  }
}

//entry title on singular will be SHOWN - title will be HIDDEN in title section
.entry-title,
.entry-title:last-child {
  text-transform: none;
  margin-top: 3px;
  margin-bottom: 20px;
  line-height: 1;
  font-size: 26px;
  a:hover{
    color: $colorMain;
  }
}

//for blog greed and featured posts
h4.entry-title {
  font-size: 24px;
  margin-bottom: 0.7em;
}

//for single post
.item-media+ .item-content {
  h1.entry-title {
    margin-top: 5px;
  }
}


.post {
  .item-content{
    p{
      @media (max-width: 575px) {
        max-height: 120px;
        overflow: hidden;
      }
    }
  }
  position: relative;
  &.format-status,
  &.post_format-post-format-status,
  &.post_format-post-format-aside,
  &.post_format-post-format-link{
    .entry-meta{
      flex-direction: column;
      justify-content: center;
      align-items: center;
      margin-bottom: 14px;
      .entry-categories{
        margin-bottom: 17px;
      }
    }
    .entry-title{
      margin-bottom: 17px;
      text-transform: capitalize;
      font-size: 20px;
      font-weight: 500;
    }
    .cat-links {
      margin-bottom: 5px;
    }
    .item-content{
      color: darken($lightColor, 20);
      margin-top: 17px;
      margin-bottom: -7px;
    }
  }


  &.format-link{
    .item-content{
      padding: 60px;
      @media(max-width: 450px){
        padding: 25px;
        text-align: center;
      }
      p{
        margin: 0 0 8px;
      }
      a.more:not(.btn){
        color:$colorMain;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 12px;
        margin-left: 10px;
        &:hover{
          color:$darkgreyColor;
        }
        i{
          margin-left: 5px;
        }
      }
    }
  }
  .item-media + .item-content{
    padding: 55px 60px;
    @media(max-width: 1199px){
      padding: 35px 40px;
    }
    @media(max-width: 450px){
      padding: 20px 25px;
    }
  }
  //sticky
  & > .fa {
    position: absolute;
    right: 9px;
    top: 7px;
    color: $lightColor;
    transform: rotate(45deg);
    z-index: 2;
    &:before {
      position: relative;
      z-index: 3;
    }
    &:after {
      content: '';
      display: block;
      position: absolute;
      z-index: 2;
      top: -14px;
      left: -35px;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 0 40px 40px 40px;
      border-color: transparent transparent $colorMain transparent;

    }
  }

  & + & {
    margin-top: 30px;
  }

  //blog feed
  h3.entry-title {
    & + .entry-meta {
      margin-top:-0.65em;
    }
  }

  //single post
  h1.entry-title {
    & + .entry-meta {
      margin:-1em 0 2em;
    }
  }

  //cover image post
  &.cover-image {
    padding: 40px;
    &.s-overlay.ds:before {
      opacity: 0.7;
    }
    @media (min-width: 992px) {
      padding: 55px;
    }
    text-align: center;
    height: auto;
    .post-thumbnail {
      display: none;
    }
  }

  ul, ol {
    margin-bottom: 18px;
  }

}
.has-post-thumbnail {
  .owl-dots{
    position: absolute;
    bottom: 53px;
    right: 0;
    left: 0;
  }
  & + .entry-content {
    margin-top: 1.5em;
  }
  .owl-nav {
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    right: 0;
    left: 0;

    & > div{
      opacity: 1;
      padding: 5px;
      i{
        font-size: 10px;
        color: $lightColor;
      }
    }
  }
}

//password protected
.post-password-form {
  input[type="password"] {
    margin-top: 0.5em;
    width: auto;
  }
  input[type="submit"] {
    position: relative;
    top: -2px;
  }
}

.ds{
  .entry-footer,
  .entry-meta{
    .entry-date{
      a{
        color: $lightColor;
        &:hover{
          color: $colorMain;
        }
      }
    }
  }
}

.entry-footer,
.entry-meta {
  margin-bottom: 0.9em;
  line-height: 1;
  clear: both;
  display: flex;
  justify-content: space-between;
  .entry-date{
    a{
      color: $darkgreyColor;
      &:hover{
        color: $colorMain;
      }
    }
  }
  a {
    @include small-text();

  }
}
.blog-adds{
  display: flex;
  justify-content: flex-end;
  span{
    margin-left: 20px;
    font-size: 12px;
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
    &:first-child{
      margin-left: 0;
    }
  }
  .like-count{
    i{
      color:$colorMain;

    }
  }
  i{
    margin-right: 10px;
    font-size: 14px;
  }
}
.entry-footer {
  margin-top: 40px;
  margin-bottom: 50px;
  .fa {
    margin-right: 10px;
  }
}

.last-row{
  margin-top: 35px;
  .cat-links{
    margin-top: 35px;
  }
  @media (max-width: 767px) {
    margin-top: 25px;
    .cat-links{
      margin-top: 25px;
    }
  }
}

//cleaning floats
.entry-content,
.entry-footer,
.entry-header {
  &:before,
  &:after {
    display: block;
    content: '';
    clear: both;
  }
}

.cat-links {
  font-size: 0;
  display: block;
  line-height: 1;
  a {
    display: inline-block;
    text-align: center;
    font-size: 12px;
    text-transform: capitalize;
    font-weight: 500;
    padding: 0.35em 0.5em 0.35em;
    margin-bottom: 5px;
    color: $lightColor;
    background-color: $colorMain;
    min-width: 80px;

    &:not(:last-child) {
      margin-right: 10px;
    }

    &:hover {
      background-color: $darkgreyColor;
    }

  }
}

//edit link
.entry-footer,
.entry-header {
  .edit-link {
    float: right;
    a:before {
      font-family: "Font Awesome 5 Free", sans-serif;
      content: '\f303';
      padding-right: 0.4em;
      font-weight: 900;
    }
  }
  //for woo
  .entry-title + .edit-link {
    position: absolute;
    right: 15px;
    top: 0.5em;
  }
}
.author-bio{
  margin-top: 60px;
  .content{
    padding: 60px;
    @media (max-width: 1199px) {
      padding: 40px;
    }
    @media (max-width: 450px) {
      padding: 25px;
    }
  }
  .item-media{
    flex-shrink: 0;
    margin-right: 19px;
    @media (max-width: 575px) {
      display: none;
    }
  }
  .content{
    margin-top: -7px;
  }
}
.post-adds {
  display: flex;
  background-color: #f0f7fa;
  line-height: 1;
  align-items: center;
  margin-bottom: 25px;
  a.share_button{
    border-radius: 6px 0 0 6px;
  }
  i {
    width: 1em;
  }
  a {
    display: inline-block;
    margin: 0;
  }
  .dropdown-menu {
    padding: 0;
    border: none;
    background-color: transparent;
  }
  .share_buttons {
    display: flex;
  }
  .share_button {
    background-color: $colorMain2;
    color: $lightColor;
    line-height: 60px;
    padding: 0 21px;
    @media (max-width: 768px) {
      line-height: 72px;
    }
  }
  .like_button {
    i{
      color: $colorMain2 !important;
    }

    line-height: 60px;
    padding: 0 21px;
    border-right: 1px solid $borderColor;
  }
  .votes_count {
    padding: 0 21px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 12px;
  }
  .views-count {
    margin-left: auto;
    padding: 24px 53px;
    background-color: $colorMain2;
    color: $lightColor;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 12px;
    border-radius: 0 6px 6px 0;
  }
  @media(max-width: 576px) {
    .share_button {
      line-height: 40px;
      padding: 0 11px;
    }
    .like_button {
      line-height: 40px;
      padding: 0 11px;
    }
    .views-count {
      padding: 14px 15px;
    }
  }
  @media (max-width: 369px) {
    .share_button {
      line-height: 52px;
    }
  }
}

.video-post{
  .post{
    .item-content{
      padding: 60px;
      @media (max-width: 450px){
        padding: 25px;
      }
    }
  }
}

/*gallery post*/
.post {
  &.side-item .item-content{
    padding: 60px;
    @media(max-width: 1199px) {
      padding: 40px;
    }
    @media(max-width: 992px) {
      padding: 28px 30px;
    }
  }
  &.side-item{
    .cover-image{
      img{
        display: none;
        @media (max-width: 767px) {
          display: block;
        }
      }
    }
    .owl-prev, .owl-next{
      position: absolute;
    }
  }
  .item-content p:last-child{
    margin-bottom: 0;
  }
  .gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -7px;

    .gallery-item {
      width: 50%;
      padding: 0 7px;

      figcaption {
        padding: 20px 0 5px;
      }
    }

    @media (min-width: 992px) {
      &.gallery-columns-1 .gallery-item {
        width: 100%;
      }
      &.gallery-columns-2 .gallery-item {
        width: 50%;
      }

      &.gallery-columns-3 .gallery-item {
        width: 33.33%;
      }

      &.gallery-columns-4 .gallery-item {
        width: 25%;
      }

      &.gallery-columns-5 .gallery-item {
        width: 20%;
      }

      &.gallery-columns-6 .gallery-item {
        width: 16.66%;
      }

      &.gallery-columns-7 .gallery-item {
        width: 14.28%;
      }

      &.gallery-columns-8 .gallery-item {
        width: 12.5%;
      }

      &.gallery-columns-9 .gallery-item {
        width: 11.11%;
      }
    }

  }
}

/*post author*/
.author-bio {
  .item-content{

  }
  a.fa {
    margin-bottom: 0;
    color: $fontColor;
    margin-right: 6px;
    &:not(:first-child){
      margin-left: 8px;
    }
  }
}

/*comments*/
.comments-title {
  margin-bottom: 40px;
  font-size: 24px;
}

.comments-area {
  margin-top: 60px;
  .comment-list {
    list-style: none;
    padding: 0;
    ol.children {
      list-style: none;
      padding-left: 35px;
      margin-top: 30px;
      @media (min-width: 1200px) {
        padding-left: 90px;
      }
      .comment-body{
        border-bottom: 1px solid $borderColor;
      }
      ol.children ol.children {
        padding-left: 35px;
      }
    }
  }
}

.comment{
  & + .comment{
    margin-top: 35px;
  }
  &:last-child {
    .comment-body {
      border-bottom: none;
    }
  }
}

.comment-body {
  position: relative;
  margin-left: 98px;
  margin-bottom: 0;
  padding: 15px 0 25px 0;
  border-bottom: 1px solid $borderColor;
  ol,
  ol ol {
    padding-left: 20px;
  }

  @media (max-width: 575px) {
    padding-top: 5px;
  }
}

.comment-meta {
  margin-bottom: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
h4{
  margin-top: 0;
  text-transform: capitalize;
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 500;
}
  //avatar
  img {
    position: absolute;
    left: -100px;
    top: 6px;
    max-width: 80px;
  }
  .comment-metadata {
    @include small-text();
  }

  b {
    font-weight: inherit;
  }
}

@media(max-width: 575px) {
  .comment-body {
    margin-left: 45px;
  }
  .comment-meta img {
    max-width: 35px;
    left: -45px;
  }
}

.reply {
  margin-top: -2px;
}

//links
.reply {
  a {
    font-style: normal;
    text-align: left;
    text-transform: capitalize;
    font-weight: 500;
    line-height: 1;
    .fa{
      color: $colorMain;
      font-size: 12px;
      margin-left: 10px;
    }
  }
}

.comment-content {
  p {
    margin-bottom: 0.9em;
  }
}

.no-comments,
.comment-awaiting-moderation {
  opacity: 0.7;
}

.comments-pagination {
  margin: 2em 0 3em;
}

/*comment respond form*/
.comments-area > .comment-respond {
  margin-top: 35px;
}

.comment-form {
  display: flex;
  flex-wrap: wrap;
  p {
    margin-bottom: 10px;
    width: 100%;
    &.form-submit {
      margin-top: 10px;
      margin-bottom: 0;
    }
  }
  label {
    display: block;
  }
  textarea,
  input {
    width: 100%;
  }
  //remember me checkbox appears with our custom designed checkbox, so hiding it
  input[type=checkbox] {
    margin: 0;
    visibility: hidden;
  }
  @media(min-width: 992px) {
    .comment-form-author,
    .comment-form-email,
    .comment-form-url{

    }
    .comment-form-author, .comment-form-email {
      padding-right: 10px;
    }
  }
}

/* post formats */

.format-chat,
.post_format-post-format-chat{
  .entry-content {
    span{
      color: $colorMain2;
      font-weight: 500;
    }
    p {
      margin-bottom: 0.5em;
    }
    p:nth-child(2n) {
      span{
        color: $colorMain;
      }
    }
  }
}

.format-quote,
.post_format-post-format-quote{
  text-align: center;

  &.cover-image {
    .entry-header > i {
      display: inline-block;
      font-size: 2em;
      margin-bottom: 0.7em;
    }
  }
  .entry-header{
    .user-img{
      position: relative;
      display: inline-block;
      &::before{
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: $colorMain2;
        z-index: 2;
      }
      &::after{
        content: '\f10d';
        position: absolute;
        right: 10px;
        bottom: 0;
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        color: $lightColor;
        z-index: 2;
        font-size: 10px;
      }
    }
    img{
      max-width: 90px;
      border-radius: 50%;
    }
  }
  blockquote {
    border: none;
    margin-bottom: 0;
    padding-left: 0;
    margin-top: 15px;
    &::before,
    &::after{
      content: none;
    }
    p{
      color: $lightColor;
    }
    footer cite{
      color: $lightColor;
      span{
        color: $lightColor;
      }
    }
  }
}

.post_format-post-format-video{
  .photoswipe-link{
    &:after {
      content: '';
      transition: all 0.3s ease-in-out;
      position: absolute;
      width: 60px;
      height: 60px;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      z-index: 3;
      background: url("../images/play_3.png") no-repeat center / contain;
    }
    &:hover{
      &::after{
        opacity: .5;
      }
    }
  }
  .item-wrap{
    height: 100%;
    img{
      display: none;
      @media (max-width: 767px) {
        display: block;
      }
    }
  }
}

.comment-reply-title{
  font-size: 24px;
}