//
// Common
// --------------------------------------------------
.widget_archive {
  select {
    width: 100%;
    padding: 10px;
    border: 1px solid;
  }

  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  li {
    overflow: hidden;
    padding: 10px 0;
    border-top: 1px solid;

    &:first-child {
      border-top: none;
      padding-top: 0; 
    }
  }

  a {
    position: relative;
    display: block;
    float: left;
  }

  a:before {
    content: "\f0da";
    font-family: FontAwesome;
    margin-right: 5px;
  }
}

.widget_calendar {
  caption {
    padding: 5px;
    border: 1px solid;
    border-bottom: none;
    font-weight: bold;
  }

  th, td {
    text-align: center;
  }
}

.widget_categories {
  select {
    width: 100%;
    padding: 10px;
    border: 1px solid;
  }

  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  li {
    overflow: hidden;
    clear: both;
    line-height: 42px;
    border-top: 1px solid;
  }

  > ul > li:first-child {
    border-top: none;
    margin-top: -10px;
  }

  a {
    position: relative;
    display: block;
    float: left;
    margin-right: 5px;
  }

  a:before {
    content: "\f0da";
    font-family: FontAwesome;
    margin-right: 5px;
  }

  .children li {
    padding-left: 10px;
  }

  .children .children li {
    padding-left: 20px;
  }

  .children .children .children li {
    padding-left: 30px;
  }

  .children .children .children .children li {
    padding-left: 40px;
  }

  .children .children .children .children .children li {
    padding-left: 50px;
  }
}

.widget_nav_menu {
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  a {
    position: relative;
    display: block;
    padding: 10px 0;
    border-top: 1px solid;
  }

  .menu > li:first-child a {
    border-top: none;
    padding-top: 0;
  }

  a:before {
    content: "\f0da";
    font-family: FontAwesome;
    margin-right: 5px;
  }

  .sub-menu a {
    padding-left: 10px;
  }

  .sub-menu .sub-menu a {
    padding-left: 20px;
  }

  .sub-menu .sub-menu .sub-menu a {
    padding-left: 30px;
  }

  .sub-menu .sub-menu .sub-menu .sub-menu a {
    padding-left: 40px;
  }

  .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu a {
    padding-left: 50px;
  }
}

.widget_meta {
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  a {
    position: relative;
    display: block;
    padding: 10px 0;
    border-top: 1px solid;
  }

  li:first-child a {
    border-top: none;
    padding-top: 0;
  }

  a:before {
    content: "\f0da";
    font-family: FontAwesome;
    margin-right: 5px;
  }
}

.widget_pages {
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  li {
    overflow: hidden;
    clear: both;
    line-height: 42px;
    border-top: 1px solid;
  }

  > ul > li:first-child {
    border-top: none;
    margin-top: -10px;
  }

  a {
    position: relative;
    display: block;
    float: left;
    margin-right: 5px;
  }

  a:before {
    content: "\f0da";
    font-family: FontAwesome;
    margin-right: 5px;
  }

  .children li {
    padding-left: 10px;
  }

  .children .children li {
    padding-left: 20px;
  }

  .children .children .children li {
    padding-left: 30px;
  }

  .children .children .children .children li {
    padding-left: 40px;
  }

  .children .children .children .children .children li {
    padding-left: 50px;
  }
}

.widget_recent_comments {
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  li {
    overflow: hidden;
    clear: both;
    padding: 10px 0;
    border-top: 1px solid;
  }

   li:first-child {
    border-top: none;
    padding-top: 0;
  }
}

.widget_recent_entries {
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  li {
    overflow: hidden;
    clear: both;
    padding: 10px 0;
    border-top: 1px solid;
  }

  li:first-child {
    border-top: none;
    padding-top: 0;
  }

  .post-date {
    display: block;
  }
}

.widget_rss {
  .widget-title {
    img {
      position: absolute;
      clip: rect(0, 0, 0, 0); 
    }

    a:first-child:before {
      content: "\f09e";
      font-family: FontAwesome;
    }
  }

  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  li {
    overflow: hidden;
    clear: both;
    padding: 10px 0;
    border-top: 1px solid;
  }

  > ul > li:first-child {
    border-top: none;
    padding-top: 0;
  }

  .rss-date {
    display: block;
    padding: 5px 0;
  }

  cite {
    display: block;
    margin-top: 5px;
  }
}

.ads-300 {
  max-width: 300px;
  margin: 0 auto;
}

.dw_widget_query_posts {
  ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .entry-thumbnail img {
    width: 100%;
  }

  .entry-title {
    font-family: @font-family-sans-serif-1;
    line-height: @headings-line-height;
    margin: 10px 0 5px;
    display: block;
  }

  .post-date {
    margin-bottom: 10px;
    display: block;
    font-size: 11px;
  }


  &.qp_style_1 .query_post_inner {
    ul > li {
      overflow: hidden;
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid;
      position: relative;

      &:first-child {
        padding-top: 0;
        margin-top: 0;
        border-top: none;
      }
    }

    .entry-title {
      font-size: 16px;
    }

    .more-link:before {
      border-color: #666;
    }

    .more-link:hover:before {
      border-color: @link-hover-color;
    }
  }

  &.qp_style_2 {
    ul > li {
      overflow: hidden;
      margin-top: 20px;
      padding-top: 20px;
      padding-left: 70px;
      border-top: 1px solid;
      position: relative;

      &:first-child {
        padding-top: 0;
        margin-top: 0;
        border-top: none;
      }
    }

    .entry-thumbnail {
      width: 60px;
      height: auto;
      position: absolute;
      left: 0;

      img {
        height: auto;
      }
    }

    .entry-title {
      margin-top: 0;
      font-size: 14px;
    }
  }

  &.qp_style_3 {
    @media (min-width: @screen-sm) {
      ul {
        overflow: hidden;
        margin: 0 -10px;
      }

      li {
        float: left;
        width: 33.334%;
        padding: 0 10px;
      }
    }

    @media (max-width: @screen-xs-max) {
      ul > li {
        overflow: hidden;
        margin-top: 20px;
        padding-top: 20px;
        padding-left: 70px;
        border-top: 1px solid;
        position: relative;

        &:first-child {
          padding-top: 0;
          margin-top: 0;
          border-top: none;
        }
      }

      .entry-thumbnail {
        width: 60px;
        height: auto;
        position: absolute;
        left: 0;

        img {
          height: auto;
        }
      }
    }
    
    .entry-title {
      font-size: 14px;
    }
  }
}

.tab-content {
  .widget-title {
    display: none;
  }

  > [class*="widget"] {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  } 
}

.widget-about {
  .brand {
    float: none;
    margin-bottom: 10px;
  }
}

.widget-newsletter {
  .form-inline {
    margin-top: 10px;
  }

  .form-control {
    width: 67%;
    float: left;
  }

  .btn {
    width: 30%;
    margin-left: 3%;
    padding: 0;
  }
}

.widget_facebook {
  iframe {
    max-width: 100%;
    height: auto !important;
    border: 0 !important;
  }
}

//
// Secondary
// --------------------------------------------------
#secondary {
  // Widget 
  .widget {
    margin-top: @grid-gutter-width;

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

  @media (max-width: @screen-sm-max) and (min-width: @screen-xs-max) {
    .widget {
      width: 50%;
      padding: 0 10px;
    }

    .widget:first-child + .widget {
      margin-top: 0;
    }
  }

  @media (min-width: @screen-sm-max) {
    .widget {
      background: #fff;
      padding: @grid-gutter-width;
    }
  }
  
  // Widget title
  .widget-title {
    font-family: @font-family-sans-serif-1;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 0;
    color: #333;
    margin-bottom: @grid-gutter-width;
  }
  
  // Links
  a {
    color: #333;

    &:hover {
      color: @link-hover-color;
    }
  }

  // Widgets 
  .widget_archive {
    select {
      border-color: #e5e5e5;
    }

    li {
      border-top-color: #e5e5e5;
    }
  }

  .widget_calendar {
    caption {
      border-color: #e5e5e5;
    }

    th, td {
      border-color: #e5e5e5;
    }

    #today {
      background: #f5f5f5;
    }
  }

  .widget_categories {
    select {
      border-color: #e5e5e5;
    }

    li {
      border-top-color: #e5e5e5;
    }
  }

  .widget_nav_menu {
    a {
      border-top-color: #e5e5e5;
    }
  }

  .widget_meta {
    a {
      border-top-color: #e5e5e5;
    }
  }

  .widget_pages {
    li {
      border-top-color: #e5e5e5;
    }
  }

  .widget_recent_comments {
    li {
      border-top-color: #e5e5e5;
    }
  }

  .widget_recent_entries {
    li {
      border-top-color: #e5e5e5;
    }
  }

  .widget_rss {
    li {
      border-top-color: #e5e5e5;
    }
  }

  .ads-300 {
    @media (min-width: @screen-sm-max) {
      margin: -@grid-gutter-width;
    }
  }

  .dw_widget_query_posts {
    &.qp_style_1 .query_post_inner {
      padding: @grid-gutter-width;
      background: url(../img/dark_wall.png);
      color: #999 !important;

      @media(min-width: @screen-md) {
        margin: -@grid-gutter-width;
      }

      ul > li {
        border-top-color:#333;
      }

      .widget-title {
        color: #fff !important;
      }

      .entry-title {
        color: #fff;
        &:hover { 
          color: @link-hover-color;
        }
      }

      .more-link {
        color: #666;

        &:hover {
          color: @link-hover-color;
        }
      }
    }

    &.qp_style_2 {
      ul > li {
        border-top-color: #e5e5e5;
      }
    }
  }

  .dw_accordion {
    @media (min-width: @screen-md) {
      padding: 0;
    }
    
    .accordion-heading a {
      color: #fff;
    }

    .accordion-heading .collapsed {
      color: #333;
    }
  }

  .dw_tabs {
    @media (min-width: @screen-md) {
      padding: 0;
    }

    background: transparent;
  }

  .nav-tabs .active a {
    color: #fff;
  }

  .tab-content {
    background: #fff;
    border-color: @brand-primary;
  }
}

//
// Footer
// --------------------------------------------------
#sidebar-footer {
  // Widget 
  .widget {
    margin-top: @grid-gutter-width;
  }
  
  // Widget title
  .widget-title {
    font-family: @font-family-sans-serif-1;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 0;
    color: #fff;
    margin-bottom: @grid-gutter-width;
  }

  // Widgets 
  .widget_archive {
    select {
      border-color: #111;
      background: transparent;
      color: #999;
    }

    li {
      border: none;
      padding: 5px 0;
    }
  }

  .widget_calendar {
    caption {
      border-color: #111;
    }

    th, td {
      border-color: #111;
    }

    #today {
      background: #151515;
    }
  }

  .widget_categories {
    select {
      border-color: #111;
      background: transparent;
      color: #999;
    }

    li {
      border: none;
      line-height: 32px;
    }
  }

  .widget_nav_menu {
    a {
      border: none;
      padding: 5px 0;
    }
  }

  .widget_meta {
    a {
      border: none;
      padding: 5px 0;
    }
  }

  .widget_pages {
    li {
      border: none;
      line-height: 32px;
    }
  }

  .widget_recent_comments {
    li {
      border-top-color: #111;
    }
  }

  .widget_recent_entries {
    li {
      border-top-color: #111;
    }
  }

  .widget_rss {
    li {
      border-top-color: #111;
    }
  }

  .ads-300 {
    @media (min-width: @screen-sm-max) {
      margin: 0 auto;
      max-width: 300px;
    }
  }

  .widget_search {
    .form-control {
      background: transparent;
      border-color: #111;
    }

    .form-control:hover, 
    .form-control:focus {
      border-color: @link-hover-color;
    }
  }

  .dw_widget_query_posts {
    &.qp_style_1 .query_post_inner {
 
      ul > li {
        border-top-color:#111;
      }

      .entry-title {
        color: #fff;
        &:hover { 
          color: @link-hover-color;
        }
      } 
    }

    &.qp_style_2 {
      ul > li { 
        border-top-color: #111;
      }

      .entry-title {
        color: #fff;

        &:hover {
          color: @link-hover-color;
        }
      }
    }
  }

  .dw_accordion {
    padding: 0;

    .accordion-heading a {
      color: #fff;
    }

    .accordion-heading .collapsed {
      color: #333;
    }

    .accordion-body {
      border-color: #111; 
    }
  }

  .dw_tabs {
    padding: 0;
    background: transparent;
  }

  .nav-tabs .active a {
    color: #fff;
  }

  .tab-content {
    border-color: @brand-primary;
  }
}

//
// Content top / bottom
// --------------------------------------------------
#sidebar-content-top {
  .widget {
    margin-top: @grid-gutter-width;

    &:first-child {
      .widget-title {
        margin-top: -@grid-gutter-width;
      }
    }
  }
}

#sidebar-content-bottom {
  .widget {
    margin-bottom: @grid-gutter-width;
  }
}

#sidebar-content-top,
#sidebar-content-bottom {
  // Widget title
  .widget-title {
    font-family: @font-family-sans-serif-1;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 0;
    color: #333;
    margin-bottom: @grid-gutter-width;
  }
  
  // Links
  a {
    color: #111;

    &:hover {
      color: @link-hover-color;
    }
  }

  // Widgets 
  .widget_archive {
    select { 
      border-color: #e5e5e5;
    }

    li {
      border-top-color: #e5e5e5;
    }
  }

  .widget_calendar {
    caption {
      border-color: #e5e5e5;
    }

    th, td {
      border-color: #e5e5e5;
    }

    #today {
      background: #f5f5f5;
    }
  }

  .widget_categories {
    select {
      border-color: #e5e5e5;
    }

    li {
      border-top-color: #e5e5e5;
    }
  }

  .widget_nav_menu {
    a {
      border-top-color: #e5e5e5;
    }
  }

  .widget_meta {
    a {
      border-top-color: #e5e5e5;
    }
  }

  .widget_pages {
    li {
      border-top-color: #e5e5e5;
    }
  }

  .widget_recent_comments {
    li {
      border-top-color: #e5e5e5;
    }
  }

  .widget_recent_entries {
    li {
      border-top-color: #e5e5e5;
    }
  }

  .widget_rss {
    li {
      border-top-color: #e5e5e5;
    }
  }

  .ads-300 {
    @media (min-width: @screen-sm-max) {
      margin: 0 auto;
      max-width: 300px;
    }
  }

  .dw_widget_query_posts {
    &.qp_style_1 .query_post_inner {
      color: #999 !important;

      ul > li {
        border-top-color:#e5e5e5;
      }

      .more-link {
        color: #666;

        &:hover {
          color: @link-hover-color;
        }
      }
    }

    &.qp_style_2 {
      ul > li {
        border-top-color: #e5e5e5;
      }
    }

    &.qp_style_3 {
      @media (max-width: @screen-xs-max) {
        ul > li {
          border-top-color: #e5e5e5;
        }
      }
    }
  }

  .dw_accordion {
    padding: 0;

    .accordion-heading a {
      color: #fff;
    }

    .accordion-heading .collapsed {
      color: #333;
    }
  }

  .dw_tabs {
    padding: 0;
    background: transparent;
  }

  .nav-tabs .active a {
    color: #fff;
  }

  .tab-content {
    background: #fff;
    border-color: @brand-primary;
  }
}

//
// Feature 1 / 2 
// --------------------------------------------------
.feature-1 {
  .widget {
    margin-top: @grid-gutter-width;

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

.feature-2 {
  @media (min-width: @screen-md-max) {
    .widget {
      margin-top: @grid-gutter-width;

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

  @media (max-width: @screen-lg) {
    .widget {
      margin-top: @grid-gutter-width;
    } 
  }
}

.feature-1, 
.feature-2 {
  // Widget title
  .widget-title {
    font-family: @font-family-sans-serif-1;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 0;
    color: #fff;
    margin-bottom: @grid-gutter-width;
  }

  // Widgets 
  .widget_archive {
    select {
      border-color: #111;
      background: transparent;
      color: #999;
    }

    li {
      border-top-color: #111;
    }
  }

  .widget_calendar {
    caption {
      border-color: #111;
    }

    th, td {
      border-color: #111;
    }

    #today {
      background: #090909;
    }
  }

  .widget_categories {
    select {
      border-color: #111;
      background: transparent;
      color: #999;
    }

    li {
      border-top-color: #111;
    }
  }

  .widget_nav_menu {
    a {
      border-top-color: #111;
    }
  }

  .widget_meta {
    a {
      border-top-color: #111;
    }
  }

  .widget_pages {
    li {
      border-top-color: #111;
    }
  }

  .widget_recent_comments {
    li {
      border-top-color: #111;
    }
  }

  .widget_recent_entries {
    li {
      border-top-color: #111;
    }
  }

  .widget_rss {
    li {
      border-top-color: #111;
    }
  }

  .ads-300 {
    @media (min-width: @screen-sm-max) {
      margin: 0 auto;
      max-width: 300px;
    }
  }

  .widget_search {
    .form-control {
      background: #000;
      border-color: #111;
    }

    .form-control:hover, 
    .form-control:focus {
      border-color: @link-hover-color;
    }
  }

  .dw_widget_query_posts {
    &.qp_style_1 .query_post_inner {

      ul > li {
        border-top-color:#111;
      }

      .entry-title {
        color: #fff;
        &:hover { 
          color: @link-hover-color;
        }
      }
    }

    &.qp_style_2 {
      ul > li {
        border-top-color: #111;
      }

      .entry-title {
        color: #fff;

        &:hover {
          color: @link-hover-color;
        }
      }
    }
  }

  .dw_accordion {
    padding: 0;

    .accordion-heading a {
      color: #fff;
    }

    .accordion-heading .collapsed {
      color: #333;
    }

    .accordion-body {
      border-color: #111; 
    }
  }

  .dw_tabs {
    padding: 0;
    background: transparent;
  }

  .nav-tabs .active a {
    color: #fff;
  }

  .tab-content {
    border-color: @brand-primary;
  }
}

//
// Feature 3
// --------------------------------------------------
.feature-3 {
  padding:  0 0 @grid-gutter-width;
  border-top: 1px solid #222;

  // Widget 
  .widget {
    margin: @grid-gutter-width @grid-gutter-width 0;
  }
  
  // Widget title
  .widget-title {
    font-family: @font-family-sans-serif-1;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 0;
    color: #fff;
    margin-bottom: @grid-gutter-width;
  }

  // Widgets 
  .widget_archive {
    select {
      border-color: #222;
      background: transparent;
      color: #999;
    }

    li {
      border-top-color: #222;
    }
  }

  .widget_calendar {
    caption {
      border-color: #222;
    }

    th, td {
      border-color: #222;
    }

    #today {
      background: #111;
    }
  }

  .widget_categories {
    select {
      border-color: #222;
      background: transparent;
      color: #999;
    }

    li {
      border-top-color: #222;
    }
  }

  .widget_nav_menu {
    a {
      border-top-color: #222;
    }
  }

  .widget_meta {
    a {
      border-top-color: #222;
    }
  }

  .widget_pages {
    li {
      border-top-color: #222;
    }
  }

  .widget_recent_comments {
    li {
      border-top-color: #222;
    }
  }

  .widget_recent_entries {
    li {
      border-top-color: #222;
    }
  }

  .widget_rss {
    li {
      border-top-color: #222;
    }
  }

  .ads-300 {
    @media (min-width: @screen-sm-max) {
      margin: 0 auto;
      max-width: 300px;
    }
  }

  .widget_search {
    .form-control {
      background: transparent;
      border-color: #222;
    }

    .form-control:hover, 
    .form-control:focus {
      border-color: @link-hover-color;
    }
  }

  .dw_widget_query_posts {
    &.qp_style_1 .query_post_inner {

      ul > li {
        border-top-color:#222;
      }
    }

    &.qp_style_2 {
      ul > li {
        border-top-color: #222;
      }
    }
  }

  .dw_accordion {
    padding: 0;

    .accordion-heading a {
      color: #fff;
    }

    .accordion-heading .collapsed {
      color: #333;
    }

    .accordion-body {
      border-color: #222; 
    }
  }

  .dw_tabs {
    padding: 0;
    background: transparent;
  }

  .nav-tabs .active a {
    color: #fff;
  }

  .tab-content {
    border-color: @brand-primary;
  }
}