/*  ----------------------------------------------------------------------------
    blocks wrap
*/
.td-block-wrap {
  position: relative;
  padding-bottom: 34px;
}


/* title / label */
.block-title {
  display: inline-block;
  line-height: 20px; //22px
  margin: 0 0 20px 20px;

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    margin-left: 17px;
  }


  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    margin-left: 10px;
    margin-right: 10px;
  }

  & > a,
  & > span {
    font-family: @font1;
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    background-color: #222222;
    border-radius: 3px;
    padding: 2px 15px 2px 15px;
    position: relative;
    display: inline-table;
    vertical-align: middle;
    line-height: 16px;
    top: -2px;
  }
}

// category tag on blocks, modules
.td-post-category {
  padding: 1px 5px 1px 5px;
  background-color: #222222;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: bold;
  font-style: normal;
  color: #ffffff;
  margin-right: 5px;
  position: relative;

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    display: none;
  }

  &:hover {
    color: #ffffff;
    background-color: @td_theme_color;
  }
}



/*  ----------------------------------------------------------------------------
    pagination
    @todo display inline?
    @todo numa mai bune la clase
*/

.ajax-page-disabled {
  opacity: 0.5;
}

/* load more button*/
.td_ajax_load_more {
  display: inline-block;
  margin-bottom: 21px !important;

  .td-icon-menu-down {
    font-size: 8px;
    position: relative;
    top: -6px;
    display: block;
  }
}

.td-load-more-wrap {
  text-align: center;
  clear: both;

  a {
    color: #222222;

    &:hover {
      color:@td_theme_color;
    }
  }
}


/* next prev */
.td-next-prev-wrap {
  margin: 0 0 0 20px;
  line-height: 15px;
  clear: both;

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    margin: 0 0 0 17px;
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    margin: 0 0 0 10px;
  }

  a {
    display: inline-block;
    margin-bottom: 19px;
    line-height: 21px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin-bottom: 16px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      margin-bottom: 19px;
    }

    &:hover {
      i {
        background-color: @td_theme_color;
        color: #ffffff !important;
        border-color: @td_theme_color;
      }
    }
  }

  .td-ajax-prev-page {
    margin-right: 4px;
  }

  i {
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=94)";//IE8
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 1px solid @td_grid_border_color;
    //height: 20px;
    //width: 20px;
    font-size: 9px;
    color: #444444;
    line-height: 1;
    padding: 3px 6px 3px 6px;
  }
}



.td_block_inner_overflow {
  overflow: hidden;
}

/*  ----------------------------------------------------------------------------
    infinite loader
*/

.td-load-more-infinite-wrap {
  //display: none;
  visibility: hidden;
}


/*  ----------------------------------------------------------------------------


    Custom menu blocks - big grid pages


*/
.td-menu-blocks-custom {
  margin-top: 20px;

  .widget {
    margin-bottom: 0;
  }

  ul {
    text-align: center;

    li {
      display: inline-block;
      margin: 3px 3px 6px;

      a {
        border: 1px solid #eaeaea;
        border-radius: 3px;
        padding: 0 12px;
        font-size: 14px;
        font-family: @font3;
        font-weight: 500;
        line-height: 31px;
        display: block;

        /* responsive portrait phone */
        @media (max-width: @responsive_p_phone_max) {
          line-height: 28px;
        }

        &:hover {
          background-color: #111;
          color: #fff;
          border-color: #111;
        }
      }
    }
  }

  .current-menu-item {
    a {
      border-color: @td_theme_color;
      background-color: @td_theme_color;
      color: #fff;

      &:hover {
        color: #fff;
      }
    }
  }
}
.td-tab-blocks-custom {
  ul.wpb_tabs_nav {
    border-bottom: 0;
  }

  .wpb_text_column {
    margin-bottom: 21px;
  }

  &.wpb_tabs li.ui-tabs-active a,
  &.wpb_tabs li:hover a {
    border: 1px solid #111 !important;
    background-color: #111;
  }

  ul.wpb_tabs_nav {
    display: table;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;

    li {
      display: inline-block;
      margin-left: 0;
      margin-right: -1px !important;

      a {
        border: 1px solid #eaeaea !important;
        padding: 5px 13px !important;
        font-size: 13px;
        font-family: @font3;
        font-weight: 500;
        line-height: 15px;
        text-transform: none;

        /* responsive portrait phone */
        @media (max-width: @responsive_p_phone_max) {
          padding: 4px 7px 3px !important;
          line-height: 13px;
        }

        &:before {
          background-color: #eaeaea;
          height: 25px;

          /* responsive portrait phone */
          @media (max-width: @responsive_p_phone_max) {
            height: 22px;
          }
        }

        &:hover {
          background-color: #111;
          color: #fff;
          border-color: #111;
        }
      }
    }
  }
}






/*  ----------------------------------------------------------------------------



    individual blocks




*/
/*  ----------------------------------------------------------------------------
    block title alignment
*/
.td_block_1,
.td_block_2,
.td_block_3,
.td_block_4,
.td_block_5,
.td_block_6,
.td_block_7,
.td_block_8,
.td_block_9,
.td_block_10,
.td_block_11,
.td_block_12,
.td_block_16,
.td_top_authors,
.td_block_text_with_title {
  position: relative;
  padding-top: 20px;

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    padding-top: 17px;
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    padding-top: 17px;
  }

  .block-title {
    margin: 0 0 20px 20px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin: 0 0 17px 17px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      margin: 0 0 17px 10px;
    }
  }

  .td_block_inner {
    clear: right;
  }
}

.td_block_13,
.td_block_14 {
  position: relative;
  clear: both;

  .block-title {
    margin: 0 0 21px 20px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin: 0 0 17px 17px;
    }
  }

  .td_block_inner {
    clear: right;
  }
}


/*  ----------------------------------------------------------------------------
    block 1
*/
// fix 1 column spacing
.td-pb-span4 {
  .td_block_1 {
    .td_module_4 {
      padding-bottom: 6px;
    }
  }
}

.td_block_1 {
  .td_module_4 {
    margin-bottom: 0;

    .meta-info {
      margin-bottom: 5px;
    }
  }
}



/*  ----------------------------------------------------------------------------
    block 2
*/
.td_block_2 {
  .td_module_4 {
    margin-bottom: 21px !important;
  }
}


/*  ----------------------------------------------------------------------------
    block 3
*/
.td_block_3 {
  .td-block-row:last-child {
    .td_module_1 {
      margin-bottom: 0 !important;
    }
  }

  .td-block-span12:last-child {
    .td_module_1 {
      margin-bottom: 0 !important;
    }
  }
}


/*  ----------------------------------------------------------------------------
    block 4
*/
.td_block_4 {
  .td-block-row:last-child {
    .td_module_2 {
      margin-bottom: 0 !important;
    }
  }

  .td-block-span12:last-child {
    .td_module_2 {
      margin-bottom: 0 !important;
    }
  }
}


/*  ----------------------------------------------------------------------------
    block 5
*/
.td_block_5 {
  .td-block-row:last-child {
    .td_module_3 {
      margin-bottom: 12px !important;
    }
  }

  .td-block-span12:last-child {
    .td_module_3 {
      margin-bottom: 12px !important;
    }
  }
}


/*  ----------------------------------------------------------------------------
    block 6
*/
.td_block_6 {
  .td-block-row:last-child {
    .td_module_5 {
      //margin-bottom: 12px !important;
    }
  }

  .td-block-span12:last-child {
    .td_module_5 {
      border-bottom: none;
      padding-bottom: 2px;
    }
  }
}


/*  ----------------------------------------------------------------------------
    block 9
*/
.td_block_9 {
  .td-block-span12:last-child {
    .item-details {
      border-bottom: none;
      padding-bottom: 12px;
      margin-bottom: 0;
    }
  }
}

.td-pb-span4 .td_block_9 {
  .td_module_8 {
    .td-post-category {
      /* responsive portrait tablet */
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        display: none;
      }
    }
  }
}


// remove the dashed line on last items
.td_block_9 .td_block_inner .td-block-row:last-child .item-details {
  border-bottom: 0;
}


/*  ----------------------------------------------------------------------------
    block 10
*/
.td_block_10 {
  text-align: center;

  .block-title {
    margin-left: 10px;
    margin-right: 10px;
  }

  .td_block_inner {
    margin-left: 30px;
    margin-right: 29px;
  }

  .td_module_9:last-child {
    .item-details {
      border-bottom: none;
      padding-bottom: 4px;
      margin-bottom: 0;
    }
  }

  .td_module_9 .item-details {
    margin-bottom: 23px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin-bottom: 15px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      margin-bottom: 15px;
    }
  }

  .td-wrapper-pulldown-filter {
    position: absolute;
    right: 0;
  }

  .td-next-prev-wrap {
    margin: 0;
  }

  /* hide the filter category name on mobile */
  .td-pulldown-filter-display-option {
    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      padding: 0 4px 0 0;
    }

    span {
      /* responsive portrait phone */
      @media (max-width: @responsive_p_phone_max) {
        display: none;
      }
    }

    i {
      /* responsive portrait phone */
      @media (max-width: @responsive_p_phone_max) {
        padding-left: 5px;
      }
    }
  }
}


/*  ----------------------------------------------------------------------------
    block 11
*/
.td_block_11 {
  .td-block-span12:last-child {
    .item-details {
      margin-bottom: 20px;
    }
  }

  .td_module_10 {
    padding-left: 0;
    padding-right: 0;
  }

  .td-block-span12:last-child {
    .item-details {
      margin-bottom: 7px;
    }
  }
}

// fix block on 1 column
.td-pb-row .td-pb-span4 .td_block_11 {
  .entry-thumb {
    width: 80px;
    margin-bottom: 0;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      margin-bottom: 17px;
      float: left;
    }

    /* responsive desktop */
    @media (min-width: 1024px) {
      min-height: inherit;
    }
    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      min-height: inherit;
    }
  }


  .td-module-title {
    padding-left: 100px;
    font-size: 15px;
    line-height: 21px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      font-size: 14px;
      line-height: 21px;
      padding-left: 97px;
    }
  }

  .meta-info {
    clear: both;
  }

  .item-details {
    margin-left: 0;
  }

  .td-excerpt {
    clear: both;
    margin-bottom: 15px;
  }
}


/*  ----------------------------------------------------------------------------
    block 12
*/
.td_block_12 {
  .td-block-span12:last-child {
    .item-details {
      margin-bottom: 20px;
    }
  }

  .td_module_11 {
    padding-left: 0;
    padding-right: 0;
  }

  .td-block-span12:last-child {
    .item-details {
      margin-bottom: 20px;
    }
  }
}

// fix block on 1 column
.td-pb-row .td-pb-span4 .td_block_12 {
  .entry-thumb {
    width: 80px;
    margin-bottom: 17px;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      float: left;
    }

    /* responsive desktop */
    @media (min-width: 1024px) {
      min-height: inherit;
    }
    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      min-height: inherit;
    }
  }

  .td-module-thumb {
    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      float: left;
      width: 80px;
      margin-bottom: 0;
    }
  }

  .td-module-title {
    padding-left: 100px;
    font-size: 15px;
    line-height: 21px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      padding-left: 97px;
    }
  }

  .meta-info {
    clear: both;
  }

  .td-video-play-ico img {
    width: 24px;
  }

  .item-details {
    margin-left: 0;
  }

  .td-excerpt {
    clear: both;
    margin-bottom: 15px;
  }
}


/*  ----------------------------------------------------------------------------
    block 13
*/
.td_block_13 {
  border-top: 0 !important;

  .td-module-thumb {
    left: 0;
  }

  // title transparent background
  .block-title > a,
  .block-title > span {
    background-color: rgba(0, 0, 0, 0.85);
  }

  .block-title {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    margin: 20px 0 0 20px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin: 17px 0 0 16px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      margin: 17px 0 0 10px;
    }
  }

  .td-wrapper-pulldown-filter {
    position: absolute;
    right: 0;
    top: 20px;
    z-index: 2;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      top: 17px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      top: 17px;
    }
  }

  .td-pulldown-filter-display-option {
    border: none;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;

    .td-icon-menu-down {
      color: #ffffff;
    }

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin-right: 19px !important;
    }
  }

  &:hover {
    color: @td_theme_color;
  }

  .td-pulldown-filter-list {
    border: none;
    background-color: rgba(0, 0, 0, 0.85);
    top: 10px;
    right: 0;

    a {
      color: #ffffff;

      &:hover {
        color: @td_theme_color;
      }
    }
  }

  .meta-info {
    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      padding: 12px 17px 10px 17px;
    }
  }

  .td-pulldown-filter-list-open .td-pulldown-filter-display-option {
    border-bottom: none;
  }
}

// fix on 1 column
.td-pb-span4 .td_block_13 {
  .meta-info {
    min-width: 299px;
    padding: 14px 20px 12px 21px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin: 0 19px 0 18px;
      padding: 12px 17px 10px 17px;
      min-width: 216px;
    }
  }
}


/*  ----------------------------------------------------------------------------
    block 14
*/

.td_block_14 {
  //remove top border
  border-top: none;
  background-color: @td_grid_border_color;

  .block-title {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    margin: 21px 0 0 20px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin: 17px 0 0 16px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      margin: 17px 0 0 10px;
    }
  }

  // title transparent background
  .block-title > a,
  .block-title > span {
    background-color: rgba(0, 0, 0, 0.85);
  }

  .td-block-span4 {
    padding-left: 0;
    padding-right: 0 !important; //overwrite the last child right more specific selector
  }

  .td-block-span6 {
    padding-left: 0;
    padding-right: 0 !important;
  }


  div.td-block-span12 {
    padding-left: 0;
    padding-right: 0 !important;
  }

  .td-wrapper-pulldown-filter {
    position: absolute;
    right: 0;
    top: 21px;
    z-index: 1;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      top: 17px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      top: 17px;
    }
  }

  .td-pulldown-filter-display-option {
    position: absolute;
    border: none;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    line-height: 20px;
    z-index: 1;
  }

  &:hover {
    color: @td_theme_color !important;
  }

  .td-pulldown-filter-list {
    border: none;
    background-color: rgba(0, 0, 0, 0.85);
    top: 10px;
    right: 0;

    a {
      color: #ffffff;
    }

    &:hover {
      color: @td_theme_color;
    }
  }

  .td-next-prev-wrap {
    display: inline-block;
    bottom: -6px;
    position: absolute;
    right: 19px;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      right: 17px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      right: 10px;
    }

    i {
      color: #ffffff;

      &:hover {
        color: @td_theme_color;
      }
    }
  }

  .td-icon-menu-down {
    color: #ffffff;
  }

  .td-pulldown-filter-list-open .td-pulldown-filter-display-option {
    border-bottom: none;
  }

  .td-block-span12:last-child {
    .td_module_mx1 {
      margin-bottom: -1px;
    }
  }
}



/*  ----------------------------------------------------------------------------
    block 15
*/

.td_block_15 {
  //remove top border
  border-top: none;

  // title transparent background
  .block-title > a,
  .block-title > span {
    background-color: rgba(0, 0, 0, 0.85);
  }

  // block title
  .block-title {
    margin: 21px 0 0 20px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      margin: 17px 0 0 16px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      margin: 17px 0 0 10px;
    }
  }

  .td-block-span4 {
    padding-left: 0;
    padding-right: 0 !important; //overwrite the last child right more specific selector
  }

  .td-block-span6 {
    padding-left: 0;
    padding-right: 0 !important;
  }


  div.td-block-span12 {
    padding-left: 0;
    padding-right: 0 !important;
  }

  .td-wrapper-pulldown-filter {
    position: absolute;
    right: 0;
    top: 21px;
    z-index: 3;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      top: 17px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      top: 17px;
    }
  }

  .td-pulldown-filter-display-option {
    position: absolute;
    border: none;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    line-height: 20px;

    i {
      color: inherit;
    }
  }

  &:hover {
    color: @td_theme_color;
  }

  .td-pulldown-filter-list {
    border: none;
    background-color: rgba(0, 0, 0, 0.85);
    top: 10px;
    right: 0;

    a {
      color: #ffffff;
    }

    &:hover {
      color: @td_theme_color;
    }
  }

  .td-pulldown-filter-list-open .td-pulldown-filter-display-option {
    border-bottom: none;
  }

  .td_block_inner {
    .td_module_mx1 {
      margin-bottom: 20px;
      border: 0;

      /* responsive portrait tablet */
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        margin-bottom: 17px;
      }

      /* responsive portrait phone */
      @media (max-width: @responsive_p_phone_max) {
        margin-bottom: 0;
      }
    }
  }

  // 1 columns
  .td-block-span12 {
    .td_module_mx1 {

      /* responsive portrait phone */
      @media (max-width: @responsive_p_phone_max) {
        margin-bottom: 15px;
      }

      .td-block14-border {
        display: none;
      }
    }
  }

  // 2 columns
  .td-block-span6 {

    &:last-child {
      .td_module_mx1 {

        /* responsive portrait phone */
        @media (max-width: @responsive_p_phone_max) {
          margin-bottom: 15px;
        }
      }
    }

    .td_module_mx1 {
      .td-module-thumb {
        margin-bottom: 0;
      }

      //fix the gradient on last post
      &:last-child {
        .td-image-gradient:before {
          width: 341px;

          /* responsive portrait tablet */
          @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
            width: 253px;
          }

          /* responsive portrait phone */
          @media (max-width: @responsive_p_phone_max) {
            width: 100%;
          }
        }
      }
    }

    &:last-child {
      .td-block14-border {
        display: none;
      }
    }
  }

  // 3 columns
  .td-block-span4 {

    &:last-child {
      .td_module_mx1 {
        /* responsive portrait phone */
        @media (max-width: @responsive_p_phone_max) {
          margin-bottom: 15px;
        }
      }
    }

    .td_module_mx1 {
      .td-module-thumb {
        margin-bottom: 0;
      }

      //fix the gradient on last post
      &:last-child {
        .td-image-gradient:before {
          width: 341px;

          /* responsive portrait tablet */
          @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
            width: 253px;
          }

          /* responsive portrait phone */
          @media (max-width: @responsive_p_phone_max) {
            width: 100%;
          }
        }
      }
    }

    &:last-child {
      .td-block14-border {
        display: none;
      }
    }
  }
}


/*  ----------------------------------------------------------------------------
    block 16
*/
.td_block_16 {
  .td-block-row .td-block-span4 {
    width: auto;
    padding-right: 0;
  }

  .entry-title {
    margin: 0 0 3px 0;
    font-size: 13px;
    line-height: 16px;
    font-weight: 600;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      font-size: 18px;
      line-height: 26px;
      font-weight: 700;
    }
  }

  .td-module-thumb {
    margin-bottom: 5px;
  }


  // 1 columns
  .td-column-1 {
    .td_module_mx4 {
      padding-bottom: 20px;

      .meta-info {
        margin-bottom: 0;
      }

      // fix the image space on load
      .entry-thumb {
        /* responsive desktop */
        @media (min-width: 1024px) {
          min-height: 194px;
        }
        /* responsive portrait tablet */
        @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
          min-height: 142px;
        }
      }
    }
  }

  // 2 columns
  .td-column-2 {
    .td_module_mx4 {
      width: 200px;
      margin-bottom: 20px;

      /* responsive portrait tablet */
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        width: 145px;
      }

      /* responsive portrait phone */
      @media (max-width: @responsive_p_phone_max) {
        width: 100%;
      }

      // fix the image space on load
      .entry-thumb {
        /* responsive desktop */
        @media (min-width: 1024px) {
          min-height: 129px;
        }
        /* responsive portrait tablet */
        @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
          min-height: 94px;
        }
      }
    }
  }

  // 3 columns
  .td-column-3 {
    .td_module_mx4 {
      width: 180px;
      margin-bottom: 20px;

      /* responsive portrait tablet */
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        width: 131px;
      }

      /* responsive portrait phone */
      @media (max-width: @responsive_p_phone_max) {
        width: 100%;
      }

      // fix the image space on load
      .entry-thumb {
        /* responsive desktop */
        @media (min-width: 1024px) {
          min-height: 116px;
        }
        /* responsive portrait tablet */
        @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
          min-height: 85px;
        }
      }
    }
  }
}



/*  ----------------------------------------------------------------------------
    td_block_related_posts
*/

/* related_posts_row */
.td-related-row {
  .mx-row-and-span(td-related-span);

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    padding-right: 10px;
  }
}


.td-related-span4 {
  width: 220px;
  padding-left: 20px;

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    width: 162px;
    padding-left: 17px;
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    width: 33.33%;
    padding-left: 10px;
  }
}

//full width related posts
.td-related-full-width .td-related-span4 {
  width: 200px;

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    width: 147px;
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    width: 20%;
    padding-left: 10px;
  }
}



/*  ----------------------------------------------------------------------------
    mega menu
*/

/* related_posts_row */
.td-mega-row {
  .mx-row-and-span(td-mega-sp);
}


.td-mega-span {
  width: 200px;
  padding-left: 20px;

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    width: 147px;
  }
}


/*  ----------------------------------------------------------------------------



    Trending now



*/
.td_block_trending_now {
  padding: 14px 20px 7px 20px;

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    padding: 14px 17px 7px 17px;
  }
}

.td-trending-style2 {
  background-color: #eaeaea;
  padding: 9px 20px 5px;
  position: relative;
  right: 1px;
  z-index: 1;
  margin-bottom: 4px;

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    padding: 15px 17px 10px 17px;
  }

  i {
    background-color: #ffffff;
  }
}

.td-trending-now-wrapper {
  position: relative;
  width: 100%;
  display: inline-block;
  transform: translate3d(0px, 0px, 0px);
  overflow: hidden;

  .td-next-prev-wrap {
    display: inline-block;
    position: absolute;
    top: 0;
    //right: -1px;
    margin: 0;

    // last
    right: 0;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      display: none;
    }

    a {
      //line-height: 15px;
      // last
      line-height: 17px;
    }
  }

  .td_ajax-prev-pagex {
    margin: 0 5px 0 0;
  }
}

// title
.td-trending-now-title {
  background-color: @td_theme_color;
  border-radius: 3px;
  color: #FFFFFF;
  display: inline;
  font-family: @font1;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  padding: 3px 15px 3px 15px;
  position: relative;
  vertical-align: middle;
  margin: 0 21px 0 0;
  text-transform: uppercase;

  // last
  top: -2px;

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    display: table;
    top: 0;
    margin: auto;
  }
}

.td-pb-span4 {
  .td-trending-now-display-area {
    display: inline-block;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 10px;

    .entry-title {
      text-align: center;
    }
  }

  .td-trending-now-post {
    width: 100%;
  }
}

// content
.td-trending-now-display-area {
  display: inline-block;
  width: 75%;
  position: relative;
  // height: 17px;
  //overflow: hidden;

  // last
  height: 20px;
  vertical-align: bottom;

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    width: 100%;
    margin-top: 10px;
  }

  .entry-title {
    line-height: 14px;
    margin: 0;
    position: relative;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
        text-align: center;
    }
  }

  a {
    font-family: @font1;
    font-size: 12px;
    font-weight: normal;
    line-height: 19px;
    color: #444444;
  }
}

.td-trending-now-post {
  //display: none;
  position: absolute;
  display: inline-block;
  opacity: 0;
  width: 100%;

  &:first-child {
    display: inline-block;
    opacity: 1;
    z-index: 1;
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
      width: 100%;
      text-align: center;
  }
}

.td-trending-now-display-area {
  // fix the alignment
  .entry-title {
    top: -2px;
  }
}


/* overwrite the above rules*/
.td-pb-span8 {
  .td-trending-now-wrapper {
    .td-trending-now-display-area {
      width: 70%;

      /* responsive portrait tablet */
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        width: 60%;
      }

      /* responsive portrait phone */
      @media (max-width: @responsive_p_phone_max) {
        width: 100%;
      }
    }
  }
}



/*  ----------------------------------------------------------------------------



    Widgets blocks fix



*/

.td_block_1.td_block_widget {
  .td_module_4 {
    margin-bottom: 0;
  }
}

.td_block_13.td_block_widget {
  .entry-thumb {
    width: 100%;
  }
}

.td_block_14.td_block_widget {
  margin-top: 20px;

  .td_module_mx1 {
    .td-module-thumb {
      /* responsive portrait tablet */
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        width: 252px;
      }

      /* responsive portrait phone */
      @media (max-width: @responsive_p_phone_max) {
        width: 100%;
        left: 0;
      }
    }

    .td-image-gradient:before {
      width: 341px;

      /* responsive portrait tablet */
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        width: 252px;
      }

      /* responsive portrait phone */
      @media (max-width: @responsive_p_phone_max) {
        width: 100%;
        left: 0;
      }
    }
  }

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    margin-top: 17px;
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    margin-top: 17px;
  }

  .td-module-thumb {
    margin-bottom: 0;
  }
}

.td_block_15.td_block_widget {
  margin-top: 20px;

  .td_module_mx1 {
    .td-module-thumb {
      /* responsive portrait tablet */
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        width: 252px;
      }

      /* responsive portrait phone */
      @media (max-width: @responsive_p_phone_max) {
        width: 100%;
        left: 0;
      }
    }

    .td-image-gradient:before {
      width: 341px;

      /* responsive portrait tablet */
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        width: 252px;
      }

      /* responsive portrait phone */
      @media (max-width: @responsive_p_phone_max) {
        width: 100%;
        left: 0;
      }
    }
  }

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    margin-top: 17px;
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    margin-top: 17px;
  }

  .td-module-thumb {
    margin-bottom: 0;
  }
}



/*  ----------------------------------------------------------------------------
    Text with title
*/
.td_block_text_with_title {
  .td_mod_wrap {
    margin-bottom: 20px;
  }

  img {
    margin-bottom: 21px;
  }
}







/*  ----------------------------------------------------------------------------
    Predefined color styles. Taken straight from the css that was generated by the theme
*/

.td-block-color-style-1,
.td-block-color-style-2,
.td-block-color-style-3,
.td-block-color-style-4,
.td-block-color-style-5,
.td-block-color-style-6 {
  border-top: 0;

  .td-post-category:hover {
    background-color: #222222 !important;
    opacity: 0.8;
  }

  .td-next-prev-wrap a:hover i {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
  }

  // hover color default white for post title
  .td_module_wrap:hover .entry-title a {
    color: #ffffff !important;
  }
}

// hover color default white for pulldown filter text links
body {
  .td-block-color-style-1,
  .td-block-color-style-2,
  .td-block-color-style-3,
  .td-block-color-style-4,
  .td-block-color-style-5,
  .td-block-color-style-6 {
    .td-pulldown-filter-display-option:hover,
    .td-pulldown-filter-display-option .td-pulldown-filter-link:hover {
      color: #ffffff !important;
    }
  }
}



/* style 1 red */
body .td-block-color-style-1,
.td-block-color-style-1.td_block_13 .meta-info {
  background-color: #d13030;
}

body .td-block-color-style-1 .td-pulldown-filter-display-option,
body .td-block-color-style-1 .td-pulldown-filter-list {
  background-color: #d23434;
  background-color: rgba(210, 52, 52, 0.95);
}

body .td-block-color-style-1 .td-pulldown-filter-display-option,
body .td-block-color-style-1 .td-pulldown-filter-list {
  border-color: #db5858;
}

body .td-block-color-style-1 .td-pulldown-filter-display-option,
body .td-block-color-style-1 .td-icon-menu-down,
body .td-block-color-style-1 .td-pulldown-filter-link {
  color: #ffcfcf;
}

body .td-block-color-style-1 .td-module-title a,
body .td-block-color-style-1 i {
  color: #ffffff;
}

body .td-block-color-style-1 .td-excerpt {
  color: #ffe3e3;
}

body .td-block-color-style-1 .td-post-author-name a,
body .td-block-color-style-1 .td-post-author-name span {
  color: #ffe3e3;
}

body .td-block-color-style-1 .td-module-date {
  color: #ffe3e3;
}

body .td-block-color-style-1 .td-module-comments{
  background-color: #c12424;
}

body .td-block-color-style-1 .td-module-comments a:after{
  border-color: #862e2d transparent transparent transparent;
}

body .td-block-color-style-1 .td-module-comments a {
  color: #ffffff;
}

body .td-block-color-style-1 .item-details,
body .td-block-color-style-1 .td_module_5 {
  border-bottom-color: #da6767;
}

body .td-block-color-style-1 .td-icon-font,
body .td-block-color-style-1 .td_ajax_load_more {
  border-color: #ffffff;
  color: #ffffff !important;
}



/* style 2 black */
body .td-block-color-style-2,
.td-block-color-style-2.td_block_13 .meta-info {
  background-color: #1c1c1c;
}

body .td-block-color-style-2 .td-pulldown-filter-display-option,
body .td-block-color-style-2 .td-pulldown-filter-list {
  background-color: #1e1e1e;
  background-color: rgba(30, 30, 30, 0.95);
}

body .td-block-color-style-2 .td-pulldown-filter-display-option,
body .td-block-color-style-2 .td-pulldown-filter-list {
  border-color: #424242;
}

body .td-block-color-style-2 .td-pulldown-filter-display-option,
body .td-block-color-style-2 .td-icon-menu-down,
body .td-block-color-style-2 .td-pulldown-filter-link {
  color: #c4c4c4;
}

body .td-block-color-style-2 .td-module-title a,
body .td-block-color-style-2 i {
  color: #ffffff;
}

body .td-block-color-style-2 .td-excerpt {
  color: #c4c4c4;
}

body .td-block-color-style-2 .td-post-author-name a,
body .td-block-color-style-2 .td-post-author-name span {
  color: #e2e2e2;
}

body .td-block-color-style-2 .td-module-date {
  color: #c4c4c4;
}

body .td-block-color-style-2 .td-module-comments{
  background-color: #4db2ec;
}

body .td-block-color-style-2 .td-module-comments a:after{
  border-color: #2d6586 transparent transparent transparent;
}

body .td-block-color-style-2 .td-module-comments a {
  color: #ffffff;
}

body .td-block-color-style-2 .item-details,
body .td-block-color-style-2 .td_module_5 {
  border-bottom-color: #3a3a3a;
}

body .td-block-color-style-2 .td-icon-font,
body .td-block-color-style-2 .td_ajax_load_more {
  border-color: #ffffff;
  color: #ffffff !important;
}




/* style 3 orange */
body .td-block-color-style-3,
.td-block-color-style-3.td_block_13 .meta-info {
  background-color: #e67e22;
}

body .td-block-color-style-3 .td-pulldown-filter-display-option,
body .td-block-color-style-3 .td-pulldown-filter-list {
  background-color: #e67e22;
  background-color: rgba(230, 126, 34, 0.95);
}

body .td-block-color-style-3 .td-pulldown-filter-display-option,
body .td-block-color-style-3 .td-pulldown-filter-list {
  border-color: #f09748;
}

body .td-block-color-style-3 .td-pulldown-filter-display-option,
body .td-block-color-style-3 .td-icon-menu-down,
body .td-block-color-style-3 .td-pulldown-filter-link {
  color: #ffead7;
}

body .td-block-color-style-3 .td-module-title a,
body .td-block-color-style-3 i {
  color: #ffffff;
}

body .td-block-color-style-3 .td-excerpt {
  color: #ffead7;
}

body .td-block-color-style-3 .td-post-author-name a,
body .td-block-color-style-3 .td-post-author-name span {
  color: #ffead7;
}

body .td-block-color-style-3 .td-module-date {
  color: #ffead7;
}

body .td-block-color-style-3 .td-module-comments {
  background-color: #d35400;
}

body .td-block-color-style-3 .td-module-comments a:after{
  border-color: #7f3300 transparent transparent transparent;
}

body .td-block-color-style-3 .td-module-comments a {
  color: #ffffff;
}

body .td-block-color-style-3 .item-details,
body .td-block-color-style-3 .td_module_5 {
  border-bottom-color: #f09748;
}

body .td-block-color-style-3 .td-icon-font,
body .td-block-color-style-3 .td_ajax_load_more {
  border-color: #ffffff;
  color: #ffffff !important;
}



/* style 4 yellow */
body .td-block-color-style-4,
.td-block-color-style-4.td_block_13 .meta-info {
  background-color: #f8c900;
}

body .td-block-color-style-4 .td-pulldown-filter-display-option,
body .td-block-color-style-4 .td-pulldown-filter-list {
  background-color: #f8c900;
  background-color: rgba(248, 201, 0, 0.95);
}

body .td-block-color-style-4 .td-pulldown-filter-display-option,
body .td-block-color-style-4 .td-pulldown-filter-list {
  border-color: #f7de73;
}

body .td-block-color-style-4 .td-pulldown-filter-display-option,
body .td-block-color-style-4 .td-icon-menu-down,
body .td-block-color-style-4 .td-pulldown-filter-link {
  color: #fff8d9;
}

body .td-block-color-style-4 .td-module-title a,
body .td-block-color-style-4 i {
  color: #ffffff;
}

body .td-block-color-style-4 .td-excerpt {
  color: #fff8d9;
}

body .td-block-color-style-4 .td-post-author-name a,
body .td-block-color-style-4 .td-post-author-name span {
  color: #fff8d9;
}

body .td-block-color-style-4 .td-module-date {
  color: #fff8d9;
}

body .td-block-color-style-4 .td-module-comments {
  background-color: #ecb200;
}

body .td-block-color-style-4 .td-module-comments a:after{
  border-color: #af8400 transparent transparent transparent;
}

body .td-block-color-style-4 .td-module-comments a {
  color: #ffffff;
}

body .td-block-color-style-4 .item-details,
body .td-block-color-style-4 .td_module_5 {
  border-bottom-color: #f7de73;
}

body .td-block-color-style-4 .td-icon-font,
body .td-block-color-style-4 .td_ajax_load_more {
  border-color: #fff8d9;
  color: #fff8d9 !important;
}



/* style 5 - green */
body .td-block-color-style-5,
.td-block-color-style-5.td_block_13 .meta-info {
  background-color: #0a9e01;
}

body .td-block-color-style-5 .td-pulldown-filter-display-option,
body .td-block-color-style-5 .td-pulldown-filter-list {
  background-color: #0a9e01;
  background-color: rgba(10, 158, 1, 0.95);
}

body .td-block-color-style-5 .td-pulldown-filter-display-option,
body .td-block-color-style-5 .td-pulldown-filter-list {
  border-color: #42aa3c;
}

body .td-block-color-style-5 .td-pulldown-filter-display-option,
body .td-block-color-style-5 .td-icon-menu-down,
body .td-block-color-style-5 .td-pulldown-filter-link {
  color: #deffdc;
}

body .td-block-color-style-5 .td-module-title a,
body .td-block-color-style-5 i {
  color: #ffffff;
}

body .td-block-color-style-5 .td-excerpt {
  color: #deffdc;
}

body .td-block-color-style-5 .td-post-author-name a,
body .td-block-color-style-5 .td-post-author-name span {
  color: #deffdc;
}

body .td-block-color-style-5 .td-module-date {
  color: #deffdc;
}

body .td-block-color-style-5 .td-module-comments {
  background-color: #208e01;
}

body .td-block-color-style-5 .td-module-comments a:after{
  border-color: #135800 transparent transparent transparent;
}

body .td-block-color-style-5 .td-module-comments a {
  color: #ffffff;
}

body .td-block-color-style-5 .item-details,
body .td-block-color-style-5 .td_module_5 {
  border-bottom-color: #42aa3c;
}

body .td-block-color-style-5 .td-icon-font,
body .td-block-color-style-5 .td_ajax_load_more {
  border-color: #deffdc;
  color: #deffdc !important;
}



/* style 6 pink */
body .td-block-color-style-6,
.td-block-color-style-6.td_block_13 .meta-info {
  background-color: #ff0099;
}

body .td-block-color-style-6 .td-pulldown-filter-display-option,
body .td-block-color-style-6 .td-pulldown-filter-list {
  background-color: #ff0099;
  background-color: rgba(255, 0, 153, 0.85);
}

body .td-block-color-style-6 .td-pulldown-filter-display-option,
body .td-block-color-style-6 .td-pulldown-filter-list {
  border-color: #ff5bbd;
}

body .td-block-color-style-6 .td-pulldown-filter-display-option,
body .td-block-color-style-6 .td-icon-menu-down,
body .td-block-color-style-6 .td-pulldown-filter-link {
  color: #ffe8f6;
}

body .td-block-color-style-6 .td-module-title a,
body .td-block-color-style-6 i {
  color: #ffffff;
}

body .td-block-color-style-6 .td-excerpt {
  color: #ffe8f6;
}

body .td-block-color-style-6 .td-post-author-name a,
body .td-block-color-style-6 .td-post-author-name span {
  color: #ffe8f6;
}

body .td-block-color-style-6 .td-module-date {
  color: #ffe8f6;
}

body .td-block-color-style-6 .td-module-comments {
  background-color: #dd0085;
}

body .td-block-color-style-6 .td-module-comments a:after{
  border-color: #a00060 transparent transparent transparent;
}

body .td-block-color-style-6 .td-module-comments a {
  color: #ffffff;
}

body .td-block-color-style-6 .item-details,
body .td-block-color-style-6 .td_module_5 {
  border-bottom-color: #ff49b6;
}

body .td-block-color-style-6 .td-icon-font,
body .td-block-color-style-6 .td_ajax_load_more {
  border-color: #ffdef2;
  color: #ffdef2 !important;
}