$blog-ico-color:$ulColor;
$blog-border:$seo-border;
$blog-bg-cat-tags:$Main-bg;
$blog-list-li-color:$ulColor;
$blog-tags-border:$seo-border;
$blog-tags-border-active:$Menu-bg;

.img-blog-list {
  width: 100%;
  margin-top: 18px;
  float: left;
  img {
    vertical-align: top;
    max-width: 100%;
    @include Transition(0.2);
  }
}

.blog-excerpt {
    margin-top: 16px;
  line-height: 15px;
  height: 138px;
  overflow: hidden;
  p {
    margin-top: 18px;
    &:first-child {
      margin-top: 0;
    }
  }

}
.date-comm-wr {
  margin-top: 23px;
}
.blog-list-line {
  height: 1px;
  background: $blog-border;
  margin-top: 20px;
}




.blog-date-comm {
  div {
    margin-left: 20px;
    float: left;
    padding-left: 26px;
    position: relative;
    color: $blog-ico-color;
    span {
      line-height: 18px;
      color: $colorStock;
      font-size: 13px;
    }

    &:before {
      position: absolute;
      width: 25px;
      height: 100%;
      @include svgIcon;
      font-size: 18px;
      color: inherit;
      top: 0;
      left: 0;
    }

    &:first-child {
      margin-left: 0;
    }
    &.blog-date {
      &:before {
        content: '\e9029';
      }

    }
    &.blog-comm {
      &:before {
        content: '\e9030';
      }
    }
  }
}
.blog-more {
  line-height: 18px;
  float: right;
}


.blog-list-blocks {
  margin-top: 37px;
  &:hover {
    img {

      @include Opacity(0.7);
    }
  }
  &:first-child {
    margin-top: 0;
  }
}

.blog-navi {
  height: 32px;
  position: relative;
  margin-top: 52px;
}
.buttons-blog-navi {
  position: absolute;
  width: 16px;
  height: 32px;
  cursor: pointer;
  top: 0;
  right: 68px;

  &:before {
    width: 9px;
    height: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -4px;
    margin-top: -8px;
    content: '';
    background-image: url(../images/ico-all/arrowslide.png);
    background-repeat: no-repeat;
    background-position: 0 50%;
  }

  &.blog-prev {

  }
  &.blog-next {
    right: 28px;
    &:before {
      background-position: -9px 50%;
    }
    &:after {
      width: 1px;
      height: 16px;
      position: absolute;
      top: 50%;
      margin-left: -12px;
      margin-top: -8px;
      content: '';
      background: $seo-border;
    }
  }



  @at-root {
    span#{&} {
      cursor: default;
      @include Opacity(0.5);
    }
  }
}



.blog-cat-tags-wr {
  background: $blog-bg-cat-tags;
  margin-top: 30px;
  padding: 20px 20px 20px 20px !important;

  ul {
    @include wfl;
    margin-top: 12px;
    li {
      position: relative;
      padding-left: 10px;
      line-height: 16px;
      margin-top: 8px;
      &:before {
        width: 5px;
        height: 5px;
        border-radius: 100%;
        background: $blog-list-li-color;
        position: absolute;
        left: 0;
        top: 7px;
        content: '';
      }

      a {

      }
      &:first-child {
        margin-top: 0;
      }
    }
  }

  &:first-child {
    margin-top: 0;
  }
}
.blog-cat-tags-title {
  font-weight: 700;
  text-transform: uppercase;
}

.tags-wr {
  ul {
    li {
      float: left;
      margin-top: 10px;
      margin-right: 10px;
      padding-left: 0;
      a {
        display: block;
        border: 1px solid $blog-tags-border;
        background: #fff;
        line-height: 28px;
        padding: 0 19px;
        text-decoration: none !important;
      }
      &:before {
        display: none;
      }
      &:first-child {
        margin-top: 10px;
      }
      &:hover {
        a {
          background: $blog-tags-border;
          @include Transition(0.1);
        }
      }
      &:active {
        a {
          background: #b7b9b9;
          @include Transition(0.1);
        }
      }
      &.active {
        a {
          cursor: default;
          border: 1px solid $blog-tags-border-active;
          background: $blog-tags-border-active;
          color: #fff;
        }
      }
    }
  }
}

span.buttons-blog-navi {

}

/**********comments*************/
.comments-wr-blog {
  .artbox_form_container {
    form {
      background: $Main-bg;
      padding: 60px 20px 30px 20px;
      margin-top: 30px;
      @include wfl;
    }
  }
}
/***********************/


/**********blog view*************/

.blog-show-img.float-left {
  float: left;
  padding: 0 30px 30px 0;
  margin-top: 4px;
}

.blog-view {
  margin-top: 13px;
  p, h1, h2, h3, h4, h5, h6, table {
    margin-bottom: 15px;
    line-height: normal;
  }
  p {
    line-height: 16px;
  }
  img {
    opacity: 1 !important;
    vertical-align: top;
    max-width: 100%;
  }
  table {
    max-width: 100%;
  }
}


.blog-navi-views {
  margin-top: 58px;
  a {
    font-weight: 700;
    position: relative;
    float: left;
    &:before {
      width: 9px;
      height: 16px;
      position: absolute;
      top: 2px;
      left: 0;
      margin-top: 0;
      content: '';
      background-image: url(../images/ico-all/arrowslide.png);
      background-repeat: no-repeat;
      background-position: 0 50%;
    }
  }
  .blog-prev-views {
    a {
      padding-left: 30px;
    }

  }
  .blog-next-views {
    a {
      float: right;
      padding-right: 30px;
      &:before {
        left: auto;
        right: 0;
        background-position: -9px 50%;
      }
    }

  }
}
.write_comments {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  span {
    color: $link-color;
    border: 1px solid $link-color;
    cursor: pointer;
    padding: 13px 42px 13px 42px;
    font-size: 11px;
    text-transform: uppercase;
    &:hover {
      background: $link-color;
      color: #fff;
    }
    &:active {
      background: $link-active;
      border: 1px solid $link-active;
    }
  }
}
/***********************/



@media (max-width: 992px) {

}

@media (max-width: 880px) {
  .blog-date-comm {
    width: 100%;
    float: left;
  }
  .blog-more {
    float: left;
    margin-top: 10px;
  }
}

@media (max-width: 767px) {
  .img-blog-list {
    text-align: center;
  }
  .blog-list-blocks {
    margin-top: 0;
  }

  .blog-navi {
    margin-top: 16px;
  }
  .blog-cat-tags-wr {
    margin-top: 10px;
    ul {
      height: 0;
      overflow: hidden;
    }


    &:first-child {
      margin-top: 10px;
    }
    &.hidden-mob {
      padding-top: 16px !important;
      padding-bottom: 4px !important;
      .blog-cat-tags-title {
        position: relative;
        cursor: pointer;
        &:before {
          position: absolute;
          right: 0;
          top: 50%;
          margin-top: -4px;
          content: '';
          width: 5px;
          height: 9px;
          @include Rotate(90);
          background: url("../images/ico-all/arrow-right.png") no-repeat;
        }
      }
      &.active {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        .blog-cat-tags-title {
          &:before {
            @include Rotate(270);
          }
        }
        ul {
          height: auto;
        }
      }
    }
  }

}

@media (max-width: 550px) {
  .blog-list-blocks [class*="col-xs-"] {
    width: 100% !important;
  }
}
