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

Headers style

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

/* General */
.td-header-top-menu-full {
  position: relative;
  z-index: 9999;

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

.td-banner-wrap-full {
  position: relative;
}

.td-header-menu-wrap-full {
  z-index: 9998;
  position: relative;
}

/* responsive portrait phone */
@media (max-width: @responsive_p_phone_max) {
  .td-header-wrap {
    .td-header-menu-wrap-full,
    .td-header-menu-wrap,
    .td-header-main-menu {
      background-color: #222 !important;
      height: 54px !important;
    }
  }

  .td-header-header {
    padding: 0;
  }

  .header-search-wrap .td-icon-search {
    color: #fff !important;
  }
}


//Text logo
.logo-text-container {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  z-index: 1;

  span {
    display: inline-block;
    width: 100%;
  }

  .td-logo-text {
    font-size: 75px;
    font-family: serif;
    color: #222;
    line-height: 1;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      font-size: 36px;
    }

    }

  .td-tagline-text {
    letter-spacing: 1.8px;
    font-size: 12px;
    font-family: serif;
    color: #777;
    padding-top: 2px;
    padding-bottom: 10px;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      font-size: 11px;
    }
  }
}

.td-banner-wrap-full,
.td-header-menu-wrap-full {
  background-color: #fff;
}

/* -------------------------------------------------------------------
  Style 1
----------------------------------------------------------------------  */
.td-header-style-1 {

  // top-bar
  .td-header-top-menu-full {
    background-color: @td_black;
  }

  // logo
  .td-header-sp-logo {
    width: 284px;
    position: relative;
    height: 90px;
    margin: 28px 28px 9px 28px;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      width: 224px;
      margin-left: 0;
    }

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      width: 214px;
      margin: 14px 28px 0 28px;
      max-height: 60px;
    }

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

    img {
      max-height: 90px;

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

  }

  // ad
  .td-header-sp-recs {
    margin: 28px 0 9px 0;

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

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

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) {
      .td-a-rec-id-header > div,
      .td-g-rec-id-header > .adsbygoogle {
        margin: auto;
      }
    }
  }

  //search
  .header-search-wrap .td-icon-search {
    color: #000;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      color: #fff;
    }
  }
}


/* -------------------------------------------------------------------
  Style 2
----------------------------------------------------------------------  */
.td-header-style-2 {

  // top-bar
  .td-header-top-menu-full {
    background-color: @td_black;
  }

  // logo
  .td-header-sp-logo {
    width: 284px;
    position: relative;
    height: 90px;
    margin: 24px 28px 0 28px;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      width: 224px;
      margin: 24px 14px 0 14px;
    }

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

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

    img {
      max-height: 90px;

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

  // ad
  .td-header-sp-recs {
    margin: 24px 0 0 0;

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

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

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) {
      .td-a-rec-id-header > div,
      .td-g-rec-id-header > .adsbygoogle {
        margin: auto;
      }
    }
  }


  //search
  .header-search-wrap .td-icon-search {
    color: #000;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      color: #fff;
    }
  }

  // main-menu
  .td-header-menu-wrap-full {
    position: relative;
  }
}

//Special case for:
// - single template 6,
// - single template 7,
// - homepage post template 7,
// - single template 8,
// - single template 10,
// - single template 11,
// - category template 5,
// - category template 6,
// - category template 7,
// - category template 8,

.single_template_6 .td-header-style-2 .td-header-sp-recs,
.single_template_7 .td-header-style-2 .td-header-sp-recs,
.homepage-post.single_template_7 .td-header-style-2 .td-header-sp-recs,
.single_template_8 .td-header-style-2 .td-header-sp-recs,
.single_template_10 .td-header-style-2 .td-header-sp-recs,
.single_template_11 .td-header-style-2 .td-header-sp-recs,
.td_category_template_2 .td-header-style-2 .td-header-sp-recs,
.td_category_template_5 .td-header-style-2 .td-header-sp-recs,
.td_category_template_6 .td-header-style-2 .td-header-sp-recs,
.td_category_template_8 .td-header-style-2 .td-header-sp-recs {

  /* responsive min landscape tablet */
  @media (min-width: @responsive_l_tablet_min) {
    margin-bottom: 24px;
  }

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

.td_category_template_7 .td-header-style-2 .td-header-sp-recs {

  /* responsive min landscape tablet */
  @media (min-width: @responsive_l_tablet_min) {
    margin-bottom: 6px;
  }
}

.td_category_template_2 .td-header-style-2,
.td_category_template_5 .td-header-style-2 {
  border-bottom: 1px solid #f2f2f2;
}




/* -------------------------------------------------------------------
  Style 3
----------------------------------------------------------------------  */
.td-header-style-3 {

  .td-header-menu-wrap-full {
    background-color: transparent !important;
  }

  // top-bar
  .td-header-top-menu-full {
    background-color: #111;
  }

  // logo
  .td-header-sp-logo {
    width: 284px;
    position: relative;
    height: 90px;
    margin: 28px;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      width: 224px;
      margin-left: 0;
    }
    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      width: 214px;
      height: 60px;
      margin: 14px 28px 0 28px;
    }

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

    img {
      max-height: 90px;

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

  // ad
  .td-header-sp-recs {
    margin: 28px 0;

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

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

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) {
      .td-a-rec-id-header > div,
      .td-g-rec-id-header > .adsbygoogle {
        margin: auto;
      }
    }
  }

  //search
  .header-search-wrap {
    margin-right: 6px;

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

    .td-icon-search {
      color: #fff;
    }
  }

  //main-menu
  .td-header-main-menu {
    //padding-left: 21px;
    background-color: #151515;

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


  .sf-menu > li > a {
    color: #fff;

    &:after {
      display: none;
    }
  }

  .black-menu {
    /* hover and current menu */
    .sf-menu > .current-menu-item > a, // current top menu
    .sf-menu > .current-menu-ancestor > a, //current menu parent (top)
    .sf-menu > .current-category-ancestor > a,
    .sf-menu > li > a:hover, //normal hover
    .sf-menu > .sfHover > a //when the submenu is opend
   {
      background-color: @td_theme_color;
    }
  }

  .td-affix {
    background-color: transparent !important;

    .td-header-main-menu {
      background-color: #151515;
    }
  }
}

.td_category_template_2 .td-header-style-3,
.td_category_template_5 .td-header-style-3 {
  border-bottom: 1px solid #f2f2f2;
}


.td-boxed-layout .td-header-style-3 {
  .td-header-menu-wrap {
    background-color: #151515 !important;
  }
}

// custom mega menu size on header style 3 on full layout
.td-full-layout .td-header-style-3 {
  .td-header-main-menu {
    padding-left: 21px;
  }

  .td-no-subcats {
    .td-mega-span {
      &:first-child {
        margin-left: 17px;

        /* responsive landscape tablet */
        @media (max-width: @responsive_l_tablet_max) {
          margin-left: 18px;
        }
      }
    }
  }

  .td-mega-menu {

    ul {
      width: 1068px !important;
      left: 0 !important;
      box-shadow: none;
      border-top: none;

      /* responsive landscape tablet */
      @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
        width: 980px !important;
      }

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

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

  .td_mega_menu_sub_cats {
    width: 208px;
    padding-top: 18px;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      width: 192px;
    }

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

    a {
      padding: 5px 18px;

      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        padding: 3px 18px;
      }
    }
  }

  .block-mega-child-cats {
    max-height: 216px;

    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      max-height: 192px;
    }
  }

  .td-mega-row {
    padding: 18px 0 12px 0;
  }

  .td-mega-span {
    width: 192px;
    min-height: 199px;
    margin-left: 18px;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      width: 174px;
      min-height: 187px;
    }

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

    .entry-thumb {
      min-height: 132px;

      /* responsive landscape tablet */
      @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
        min-height: 120px;
      }

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


/* -------------------------------------------------------------------
  Style 4
----------------------------------------------------------------------  */
.td-header-style-4 {

  // top-bar
  .td-header-top-menu-full {
    background-color: #111;
  }

  // logo - in menu
  .td-main-menu-logo {
    margin: 0 21px 0 0;
    display: block;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      margin: 0 14px;
    }

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

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

  // ad
  .td-header-sp-recs {
    width: 100%;

    img {
      position: relative;
    }

    .adsbygoogle {
      position: relative;
      display: block !important;
    }
  }

  .td-header-rec-wrap {
    min-height: 0;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      width: 100% !important;
      padding: 0 10px;
    }
  }

  //search
  .header-search-wrap .td-icon-search {
    color: #fff;
  }

  //main-menu
  .td-header-menu-wrap-full {
    background-color: transparent !important;
  }

  .td-header-main-menu {
    background-color: #151515;
  }

  .black-menu {
    /* hover and current menu */
    .sf-menu > .current-menu-item > a, // current top menu
    .sf-menu > .current-menu-ancestor > a, //current menu parent (top)
    .sf-menu > .current-category-ancestor > a,
    .sf-menu > li > a:hover, //normal hover
    .sf-menu > .sfHover > a //when the submenu is opend
   {
      background-color: @td_theme_color;
    }
  }

  .sf-menu > li > a {
    color: #fff;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      padding: 0 12px;
    }

    &:after {
      display: none;
    }
  }

  .sf-menu a.sf-with-ul {
    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      padding-right: 26px;
    }
  }

  .td-affix {
    background-color: transparent !important;

    .td-header-main-menu {
      background-color: #151515;
    }
  }
}

.td_category_template_2 .td-header-style-4,
.td_category_template_5 .td-header-style-4 {
  border-bottom: 1px solid #f2f2f2;
}


.td-boxed-layout .td-header-style-4 {
  .td-header-menu-wrap {
    background-color: #151515 !important;
  }
}

// custom mega menu size on header style 3 on full layout
.td-full-layout .td-header-style-4 {

  // logo - in menu
  .td-main-menu-logo {
    margin: 0 21px;
    display: block;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      margin: 0 14px;
    }

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


  .td-no-subcats {
    .td-mega-span {
      &:first-child {
        margin-left: 17px;

        /* responsive landscape tablet */
        @media (max-width: @responsive_l_tablet_max) {
          margin-left: 18px;
        }

      }
    }
  }

  .td-mega-menu {

    ul {
      width: 1068px !important;
      left: 0 !important;
      box-shadow: none;
      border-top: none;

      /* responsive landscape tablet */
      @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
        width: 980px !important;
      }

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

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

  .td_mega_menu_sub_cats {
    width: 208px;
    padding-top: 18px;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      width: 192px;
    }

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

    a {
      padding: 5px 18px;

      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        padding: 3px 18px;
      }
    }
  }

  .block-mega-child-cats {
    max-height: 216px;

    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      max-height: 192px;
    }
  }

  .td-mega-row {
    padding: 18px 0 12px 0;
  }

  .td-mega-span {
    width: 192px;
    min-height: 199px;
    margin-left: 18px;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      width: 174px;
      min-height: 187px;
    }

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

    .entry-thumb {
      min-height: 132px;

      /* responsive landscape tablet */
      @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
        min-height: 120px;
      }

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


/* -------------------------------------------------------------------
  Style 5
----------------------------------------------------------------------  */
.td-header-style-5 {

  // top-bar
  .td-header-top-menu-full {
    background-color: #f9f9f9;

    .td-header-top-menu {
      color: #000;
    }

    a {
      color: #000;
    }
  }

  .td-social-icon-wrap .td-icon-font {
    color: #000;
  }


  .top-header-menu {
    .sub-menu {
      background-color: #f9f9f9;
    }
  }

  // logo - in menu
  .td-main-menu-logo {
    display: block;
    margin-right: 42px;
    height: 60px;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      margin-right: 20px;
    }

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

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      float: left;
      margin: 0;
      display: inline;
      width: 0;
      height: 0;
    }

    a {
      line-height: 58px;
    }

    img {
      max-height: 60px;

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

  // ad
  .td-header-sp-recs {
    width: 100%;
  }

  .td-header-rec-wrap {
    min-height: 0;
  }

  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin: 24px auto 0 auto !important;
      }

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

    img {
      position: relative;
    }

    .adsbygoogle {
      position: relative;
      display: block !important;
    }
  }

  //search
  .header-search-wrap .td-icon-search {
    color: #fff;
  }

  //main-menu
  .td-header-menu-wrap-full {
    background-color: #151515;
  }

  #td-header-menu {
    min-height: 60px;
  }

  .black-menu {
    /* hover and current menu */
    .sf-menu > .current-menu-item > a, // current top menu
    .sf-menu > .current-menu-ancestor > a, //current menu parent (top)
    .sf-menu > .current-category-ancestor > a,
    .sf-menu > li > a:hover, //normal hover
    .sf-menu > .sfHover > a //when the submenu is opend
   {
      background-color: @td_theme_color;
    }
  }

  .sf-menu > li > a {
    color: #fff;
    line-height: 60px;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      padding: 0 12px;
    }

    &:after {
      display: none;
    }
  }

  .sf-menu a.sf-with-ul {
    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      padding-right: 26px;
    }
  }

  .td-mega-menu {
    ul {
      border-top: none;
    }
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    .td-header-menu-wrap-full {
      height: 54px !important;
    }

    #td-header-menu {
      min-height: 54px;
    }

    .td-header-main-menu {
      height: 54px;
    }
  }

  .td-affix {
    background-color: rgba(22,22,22, 0.9);

    #td-header-menu {
      min-height: 48px;
    }
  }
}


//Special case for:
// - single template 6,
// - single template 7,
// - homepage post template 7,
// - single template 8,
// - single template 10,
// - single template 11,
// - category template 2,
// - category template 5,
// - category template 6,
// - category template 7,
// - category template 8,
//

.single_template_6 .td-header-style-5,
.single_template_7 .td-header-style-5,
.homepage-post.single_template_7 .td-header-style-5,
.single_template_8 .td-header-style-5,
.single_template_10 .td-header-style-5,
.single_template_11 .td-header-style-5,
.td_category_template_2 .td-header-style-5,
.td_category_template_5 .td-header-style-5,
.td_category_template_6 .td-header-style-5,
.td_category_template_8 .td-header-style-5 {
  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin-bottom: 24px !important;
      }

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

.td_category_template_2 .td-header-style-5,
.td_category_template_5 .td-header-style-5 {
  border-bottom: 1px solid #f2f2f2;
}


/* -------------------------------------------------------------------
  Style 6
----------------------------------------------------------------------  */
.td-header-style-6 {

  // top-bar
  .td-header-top-menu-full {
    background-color: #f9f9f9;

    .td-header-top-menu {
      color: #000;
    }

    a {
      color: #000;
    }
  }

  .td-social-icon-wrap .td-icon-font {
    color: #000;
  }

  .top-header-menu {
    .sub-menu {
      background-color: #f9f9f9;
    }
  }

  // logo - in menu
  .td-main-menu-logo {
    display: block;
    margin-right: 42px;
    height: 80px;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      margin-right: 20px;
    }

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

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      float: left;
      margin: 0;
      display: inline;
      width: 0;
      height: 0;
    }

    a {
      line-height: 78px;
    }

    img {
      max-height: 80px;

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

  // ad
  .td-header-sp-recs {
    width: 100%;
  }

  .td-header-rec-wrap {
    min-height: 0;
  }

  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin: 24px auto 0 auto !important;
      }

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

    img {
      position: relative;
    }

    .adsbygoogle {
      position: relative;
      display: block !important;
    }
  }

  //search
  .header-search-wrap .td-icon-search {
    color: #fff;
  }

  //main-menu
  .td-header-menu-wrap-full {
    background-color: #151515;
  }

  #td-header-menu {
    min-height: 80px;
  }

  .black-menu {
    /* hover and current menu */
    .sf-menu > .current-menu-item > a, // current top menu
    .sf-menu > .current-menu-ancestor > a, //current menu parent (top)
    .sf-menu > .current-category-ancestor > a,
    .sf-menu > li > a:hover, //normal hover
    .sf-menu > .sfHover > a //when the submenu is opend
   {
      background-color: @td_theme_color;
    }
  }

  .sf-menu {
    float: right;

    > li > a {
      color: #fff;
      line-height: 80px;

      /* responsive landscape tablet */
      @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
        padding: 0 12px;
      }

      &:after {
        display: none;
      }
    }
  }

  .sf-menu a.sf-with-ul {
    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      padding-right: 26px;
    }
  }

  .td-mega-menu {
    ul {
      border-top: none;
    }
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {

    #td-header-menu {
      min-height: 54px;
    }

    .td-header-main-menu {
      height: 54px;
    }
  }

  .td-affix {
    background-color: rgb(22,22,22);
    background-color: rgba(22,22,22, 0.9);

    #td-header-menu {
      min-height: 48px;
    }
  }
}



//Special case for:
// - single template 6,
// - single template 7,
// - homepage post template 7,
// - single template 8,
// - single template 10,
// - single template 11,
// - category template 2,
// - category template 5,
// - category template 6,
// - category template 7,
// - category template 8,

.single_template_6 .td-header-style-6,
.single_template_7 .td-header-style-6,
.homepage-post.single_template_7 .td-header-style-6,
.single_template_8 .td-header-style-6,
.single_template_10 .td-header-style-6,
.single_template_11 .td-header-style-6,
.td_category_template_2 .td-header-style-6,
.td_category_template_5 .td-header-style-6,
.td_category_template_6 .td-header-style-6,
.td_category_template_8 .td-header-style-6 {
  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin-bottom: 24px !important;
      }

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


.td_category_template_2 .td-header-style-6,
.td_category_template_5 .td-header-style-6 {
  border-bottom: 1px solid #f2f2f2;
}

/* -------------------------------------------------------------------
  Style 7
----------------------------------------------------------------------  */
.td-header-style-7 {

  // top-bar
  .td-header-top-menu-full {
    background-color: #fff;

    a {
      color: #000;
    }
  }

  .td-header-top-menu {
    color: #000;
    border-bottom: 1px solid #e0e0e0;

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

  .td-social-icon-wrap .td-icon-font {
    color: #000;
  }

  .top-header-menu {
    .sub-menu {
      background-color: #fff;
    }
  }

  // logo
  .td-header-sp-logo {
    margin-right: 42px;
    float: left;
    height: 106px;
    padding: 0;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      margin-right: 20px;
    }

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

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

    a {
      line-height: 104px;

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

    img {
      max-height: 106px;
      position: relative;
      padding: 6px 0;
      line-height: 106px;
      vertical-align: middle;

      /* responsive portrait tablet */
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        max-width: 140px;
        max-height: 54px;
        line-height: 54px;
        padding: 3px 0;
      }
    }
  }

  .td-main-menu-logo {
    display: none;

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

  // ad
  .td-header-sp-recs {
    width: 100%;
  }

  .td-header-rec-wrap {
    min-height: 0;
  }

  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin: 24px auto 0 auto !important;
      }

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

    img {
      position: relative;
    }

    .adsbygoogle {
      position: relative;
      display: block !important;
    }
  }

  //search
  #td-top-search {
    margin-top: 0;
    top: auto;
    bottom: 17px;

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

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

  .header-search-wrap .td-icon-search {
    color: #000;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      color: #fff;
    }
  }

  //main-menu
  .td-header-menu-wrap-full,
  .td-header-main-menu {
    position: relative;
  }

  #td-header-menu {
    min-height: 106px;

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

  .sf-menu {
    margin-top: 28px;
    float: right;

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

    > li > a {
      line-height: 78px;

      /* responsive landscape tablet */
      @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
        padding: 0 12px;
      }
      /* responsive portrait tablet */
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
          line-height: 48px;
      }
    }
  }

  .sf-menu a.sf-with-ul {
    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      padding-right: 26px;
    }
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {

    #td-header-menu {
      min-height: 54px;
    }

    .td-header-main-menu {
      height: 54px;
    }
  }

  .td-affix {

    .td-header-sp-logo {
      height: 48px;

      a {
        line-height: 46px;
      }

      img {
        line-height: 48px;
        max-height: 48px;
        padding: 3px 0;
      }
    }

    #td-header-menu {
      min-height: 48px;
    }

    .sf-menu {
      margin-top: 0;
    }

    #td-top-search {
      bottom: 0;
    }

  }
}


//Special case for:
// - single template 6,
// - single template 7,
// - homepage post template 7,
// - single template 8,
// - single template 10,
// - single template 11,
// - category template 2,
// - category template 5,
// - category template 6,
// - category template 7,
// - category template 8,

.single_template_6 .td-header-style-7,
.single_template_7 .td-header-style-7,
.homepage-post.single_template_7 .td-header-style-7,
.single_template_8 .td-header-style-7,
.single_template_10 .td-header-style-7,
.single_template_11 .td-header-style-7,
.td_category_template_2 .td-header-style-7,
.td_category_template_5 .td-header-style-7,
.td_category_template_6 .td-header-style-7,
.td_category_template_8 .td-header-style-7 {
  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin-bottom: 24px !important;
      }

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

.td_category_template_2 .td-header-style-7,
.td_category_template_5 .td-header-style-7 {
  border-bottom: 1px solid #f2f2f2;
}


/* -------------------------------------------------------------------
  Style 8
----------------------------------------------------------------------  */
.td-header-style-8 {

  .td-header-menu-wrap-full {
    position: relative;
  }

  .td-header-menu-wrap {
    display: table;
    width: 100%;
    //height: 106px;

    &.td-affix {
      background-color: rgba(255,255,255,0.95);
    }
  }

  .td-social-icon-wrap .td-icon-font {
    color: #000;
  }

  .td-header-header {
    clear: both;
  }

  // top-bar
  .td-header-top-menu {
    margin-left: 282px;
    width: 786px;
    //height: 53px;
    padding: 12px 0;
    color: #000;
    border-bottom: 1px solid #e0e0e0;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      margin-left: 212px;
      width: 768px;
      padding: 0;
    }

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

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

    a {
      color: #000;
    }
  }

  .top-header-menu {
    .sub-menu {
      background-color: #fff !important;
    }
  }

  // logo
  .td-header-sp-logo {
    position: absolute;
    width: 238px;
    height: 94px;
    margin-top: -47px;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      width: 190px;
    }

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

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

    img {
      max-height: 86px;
      right: auto;
    }
  }

  .td-main-menu-logo {
    display: none;

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

  // ad
  .td-header-sp-recs {
    width: 100%;
  }

  .td-header-rec-wrap {
    min-height: 0;
  }

  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin: 24px auto 0 auto !important;
      }

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

    img {
      position: relative;
    }

    .adsbygoogle {
      position: relative;
      display: block !important;
    }
  }

  //search
  .header-search-wrap .td-icon-search {
    color: #000;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      color: #fff;
    }
  }

  //main-menu
  .td-header-main-menu {
    float: left;
    width: 786px;
    //height: 53px;
    margin-left: 282px;
    background-color: transparent !important;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      margin-left: 212px;
      width: 768px;
    }

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

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

  .sf-menu > li > a {
    line-height: 53px;
  }

  .td-mega-menu ul {
    left: -305px !important;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      left: -232px !important;
    }

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

  .sf-menu > .current-menu-item > a,
  .sf-menu > .current-menu-ancestor > a,
  .sf-menu > .current-category-ancestor > a,
  .sf-menu > li > a:hover,
  .sf-menu > .sfHover > a {
    background-color: transparent !important;
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    .td-header-menu-wrap .td-container {
      padding: 0;
    }
  }


  .td-affix {
    .td-header-sp-logo img {
      max-height: 46px;
      top: auto;
      padding: 2px 0;
    }
  }

}


//Special case for:
// - single template 6,
// - single template 7,
// - homepage post template 7,
// - single template 8,
// - single template 10,
// - single template 11,
// - category template 2,
// - category template 5,
// - category template 6,
// - category template 7,
// - category template 8,

.single_template_6 .td-header-style-8,
.single_template_7 .td-header-style-8,
.homepage-post.single_template_7 .td-header-style-8,
.single_template_8 .td-header-style-8,
.single_template_10 .td-header-style-8,
.single_template_11 .td-header-style-8,
.td_category_template_2 .td-header-style-8,
.td_category_template_5 .td-header-style-8,
.td_category_template_6 .td-header-style-8,
.td_category_template_8 .td-header-style-8 {
  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin-bottom: 24px !important;
      }

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

.td_category_template_2 .td-header-style-8,
.td_category_template_5 .td-header-style-8 {
  border-bottom: 1px solid #f2f2f2;
}

/* -------------------------------------------------------------------
  Style 9
----------------------------------------------------------------------  */
.td-header-style-9 {

  // top-bar
  .td-header-top-menu-full {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;

    .td-header-top-menu {
      color: #000;
    }

    a {
      color: #000;
    }
  }

  .td-social-icon-wrap .td-icon-font {
    color: #000;
  }

  .top-header-menu {
    .sub-menu {
      background-color: #fff;
    }
  }

  // logo
  .td-logo-wrap-full {
    min-height: 130px;
    line-height: 130px;

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

    a {
      position: relative;
      z-index: 1;
      line-height: 130px;
      display: inline-block;
      vertical-align: middle;

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

  //text logo
  .logo-text-container a {
    line-height: 1;
  }

  .td-header-sp-logo {
    text-align: center;

    img {
      z-index: 1;
      display: block;
      position: relative;
    }
  }

  //Mobile logo
  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    .td-main-menu-logo {
      display: none;
    }

    .td-affix .td-main-menu-logo {
      display: block;
    }
  }

  // ad
  .td-header-sp-recs {
    width: 100%;
  }

  .td-header-rec-wrap {
    min-height: 0;
  }

  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin: 24px auto 0 auto !important;
      }

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

    img {
      position: relative;
    }

    .adsbygoogle {
      position: relative;
      display: block !important;
    }
  }

  .td-banner-bg {
    background-color: #fff;
  }

  //search
  .header-search-wrap .td-icon-search {
    color: #000;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      color: #fff;
    }
  }

  //main-menu
  .td-header-menu-wrap-full {
    position: relative;
  }

}

//Special case for:
// - single template 6,
// - single template 7,
// - homepage post template 7,
// - single template 8,
// - single template 10,
// - single template 11,
// - category template 2,
// - category template 5,
// - category template 6,
// - category template 7,
// - category template 8,

.single_template_6 .td-header-style-9,
.single_template_7 .td-header-style-9,
.homepage-post.single_template_7 .td-header-style-9,
.single_template_8 .td-header-style-9,
.single_template_10 .td-header-style-9,
.single_template_11 .td-header-style-9,
.td_category_template_2 .td-header-style-9,
.td_category_template_5 .td-header-style-9,
.td_category_template_6 .td-header-style-9,
.td_category_template_8 .td-header-style-9 {
  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin-bottom: 24px !important;
      }

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

.td_category_template_2 .td-header-style-9,
.td_category_template_5 .td-header-style-9 {
  border-bottom: 1px solid #f2f2f2;
}


/* -------------------------------------------------------------------
  Style 10
----------------------------------------------------------------------  */
.td-header-style-10 {

  // top-bar
  .td-header-top-menu-full {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;

    .td-header-top-menu {
      color: #000;
    }

    a {
      color: #000;
    }
  }

  .td-social-icon-wrap .td-icon-font {
    color: #000;
  }

  .top-header-menu {
    .sub-menu {
      background-color: #fff;
    }
  }

  // logo
  .td-logo-wrap-full {
    min-height: 130px;
    line-height: 130px;

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

    a {
      position: relative;
      z-index: 1;
      line-height: 130px;
      display: inline-block;
      vertical-align: middle;

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

  .td-logo-sticky {
    @media (min-width: @responsive_p_tablet_min) {
      position: absolute;
      left: 0;

      img {
        max-width: 102px;
      }
    }

    @media (min-width: @responsive_l_tablet_min) {

      img {
        max-width: inherit;
      }
    }
  }

  .td-header-sp-logo {
    text-align: center;

    img {
      z-index: 1;
      display: block;
      position: relative;
    }
  }

  //text logo
  .logo-text-container a {
    line-height: 1;
  }


  //Mobile logo
  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    .td-main-menu-logo {
      display: none;
    }

    .td-affix .td-main-menu-logo {
      display: block;
    }
  }

  // ad
  .td-header-sp-recs {
    width: 100%;
  }

  .td-header-rec-wrap {
    min-height: 0;
  }

  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin: 24px auto 0 auto !important;
      }

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

    img {
      position: relative;
    }

    .adsbygoogle {
      position: relative;
      display: block !important;
    }
  }

  .td-banner-bg {
    background-color: #fff;
  }

  //search
  .header-search-wrap .td-icon-search {
    color: #000;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      color: #fff;
    }
  }

  //main-menu
  .td-header-menu-wrap-full {
    position: relative;
  }

  .menu-main-menu-container {
    display: inherit;
  }

  .td-header-main-menu {
    padding-left: 48px;

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

  }

  #td-header-menu {
    display: table;
    margin: 0 auto;

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

  .td-affix #td-header-menu {
    /* responsive portrait phone */
    @media (min-width: @responsive_l_tablet_min){
      margin: 0 auto 0 106px;
    }

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


//Special case for:
// - single template 6,
// - single template 7,
// - homepage post template 7,
// - single template 8,
// - single template 10,
// - single template 11,
// - category template 2,
// - category template 5,
// - category template 6,
// - category template 7,
// - category template 8,

.single_template_6 .td-header-style-10,
.single_template_7 .td-header-style-10,
.homepage-post.single_template_7 .td-header-style-10,
.single_template_8 .td-header-style-10,
.single_template_10 .td-header-style-10,
.single_template_11 .td-header-style-10,
.td_category_template_2 .td-header-style-10,
.td_category_template_5 .td-header-style-10,
.td_category_template_6 .td-header-style-10,
.td_category_template_8 .td-header-style-10 {
  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin-bottom: 24px !important;
      }

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

.td_category_template_2 .td-header-style-10,
.td_category_template_5 .td-header-style-10 {
  border-bottom: 1px solid #f2f2f2;
}

/* -------------------------------------------------------------------
  Style 11
----------------------------------------------------------------------  */
.td-header-style-11 {

  // top-bar
  .td-header-top-menu-full {
    background-color: #222;

    .td-header-top-menu {
      color: #fff;
    }

    a {
      color: #fff;
    }
  }

  .top-header-menu {
    .sub-menu {
      background-color: #222;
    }
  }

  // logo
  .td-logo-wrap-full {
    width: 100%;
    min-height: 160px;
    line-height: 160px;
    border-bottom: 1px solid #eee;

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

    a {
      position: relative;
      z-index: 1;
      line-height: 160px;
      display: inline-block;
      vertical-align: middle;

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

  .td-header-sp-logo {
    text-align: center;

    img {
      z-index: 1;
      display: block;
      position: relative;
    }
  }

  //text logo
  .logo-text-container a {
    line-height: 1;
  }

  //Mobile logo
  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    .td-main-menu-logo {
      display: none;
    }

    .td-affix .td-main-menu-logo {
      display: block;
    }
  }

  // ad
  .td-header-sp-recs {
    width: 100%;
  }

  .td-header-rec-wrap {
    min-height: 0;
  }

  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin: 24px auto 0 auto !important;
      }

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

    img {
      position: relative;
    }

    .adsbygoogle {
      position: relative;
      display: block !important;
    }
  }

  .td-banner-bg {
    background-color: #fff;
  }

  //search
  .header-search-wrap .td-icon-search {
    color: #000;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      color: #fff;
    }
  }

  //main-menu
  .td-header-menu-wrap-full {
    position: relative;
  }

  .sf-menu > li > a {
    line-height: 52px;
  }

  .td-affix:after {
    content: "";
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAMBAMAAABRpcpkAAAAElBMVEUAAAAAAAAAAAAAAAAAAAAAAADgKxmiAAAABnRSTlMCFg8LBQd761rpAAAAFklEQVQI12MQAEIFIDQAwgAGByAEAwAUCAGRLNh3YwAAAABJRU5ErkJggg==');
    width: 100%;
    height: 12px;
    position: absolute;
    bottom: -12px;
    z-index: 1;
  }
}

// remove header style 11 bottom border on some categories header styles
.td_category_template_2,
.td_category_template_5 {
  .td-header-style-11 .td-logo-wrap-full {
  border-bottom: 0;
  }
}

  //Special case for:
// - single template 6,
// - single template 7,
// - homepage post template 7,
// - single template 8,
// - single template 10,
// - single template 11,
// - category template 2,
// - category template 5,
// - category template 6,
// - category template 7,
// - category template 8,

.single_template_6 .td-header-style-11,
.single_template_7 .td-header-style-11,
.homepage-post.single_template_7 .td-header-style-11,
.single_template_8 .td-header-style-11,
.single_template_10 .td-header-style-11,
.single_template_11 .td-header-style-11,
.td_category_template_2 .td-header-style-11,
.td_category_template_5 .td-header-style-11,
.td_category_template_6 .td-header-style-11,
.td_category_template_8 .td-header-style-11 {
  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin-bottom: 24px !important;
      }

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

.td_category_template_2 .td-header-style-11,
.td_category_template_5 .td-header-style-11 {
  border-bottom: 1px solid #f2f2f2;
}


/* -------------------------------------------------------------------
  Style 12
----------------------------------------------------------------------  */
.td-header-style-12 {

  // top-bar
  .td-header-top-menu-full {
    background-color: #2b2b2b;
    z-index: 1;

    .td-header-top-menu {
      padding: 13px 0;
      text-transform: uppercase;
    }

  }

  .top-header-menu {
    .sub-menu {
      top: 39px;
      background-color: @td_black;
    }
  }

  // logo - in menu
  .td-main-menu-logo {
    display: block;
    margin-right: 42px;
    height: 80px;

    /* responsive landscape tablet */
    @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
      margin-right: 22px;
    }

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

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

    a {
      line-height: 78px;
    }

    img {
      max-height: 66px;

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

  // ad
  .td-header-sp-recs {
    width: 100%;
  }

  .td-header-rec-wrap {
    min-height: 0;
  }

  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin: 24px auto 0 auto !important;
      }

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

    img {
      position: relative;
    }

    .adsbygoogle {
      position: relative;
      display: block !important;
    }
  }

  //search
  .header-search-wrap .td-icon-search {
    color: #fff;
  }



  //main-menu
  .td-header-menu-wrap-full {
    background-color: @td_theme_color;

    .td-header-gradient:after {
      content: '';
      position: absolute;
      height: 100%;
      width: 100%;
      top: 0;
      background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
      background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0.3)));
      background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%);
      background: -o-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%);
      background: -ms-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%);
      background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%);
      filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#4d000000',GradientType=0 );
    }
  }


  /* hover and current menu */
  .sf-menu > .current-menu-item > a, // current top menu
  .sf-menu > .current-menu-ancestor > a, //current menu parent (top)
  .sf-menu > .current-category-ancestor > a,
  .sf-menu > li > a:hover, //normal hover
  .sf-menu > .sfHover > a //when the submenu is opend
  {
    background-color: rgba(0,0,0,.3) !important;
  }

  .td-affix {
    background-color: @td_theme_color;
  }


  .td-header-menu-wrap {

    .td-header-main-menu {
      background-color: transparent;
    }

    .sf-menu > li > a {
      color: #fff;
      line-height: 80px;

      /* responsive landscape tablet */
      @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
        padding: 0 13px;
      }

      &:after {
        display: none;
      }
    }

    .sf-menu a.sf-with-ul {
      /* responsive landscape tablet */
      @media (min-width: @responsive_l_tablet_min) and (max-width: @responsive_l_tablet_max) {
        padding-right: 28px;
      }
    }
  }

  .td-mega-menu {
    ul {
      border-top: none;
    }
  }
}

.single_template_6 .td-header-style-12,
.single_template_7 .td-header-style-12,
.homepage-post.single_template_7 .td-header-style-12,
.single_template_8 .td-header-style-12,
.single_template_10 .td-header-style-12,
.single_template_11 .td-header-style-12,
.td_category_template_2 .td-header-style-12,
.td_category_template_5 .td-header-style-12,
.td_category_template_6 .td-header-style-12,
.td_category_template_8 .td-header-style-12 {
  .td-a-rec-id-header,
  .td-g-rec-id-header {

    & > div,
    & > .adsbygoogle {

      /* responsive min landscape tablet */
      @media (min-width: @responsive_l_tablet_min) {
        margin-bottom: 24px !important;
      }

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

.td_category_template_2 .td-header-style-12,
.td_category_template_5 .td-header-style-12 {
  border-bottom: 1px solid #f2f2f2;
}