@mixin inverse($inverse-color, $text-color) {
  background: $inverse-color;
  color: $white;
  .article-content {
    background: $inverse-color;
    p {
      color: $text-color;
    }
  }
  .byline-gradient, .article-byline {
    display: none;
  }
  .article-type {
    margin-bottom: -2em !important;

  }
  .article-title {
    padding-top: 1em;
  }
  a.article-readmore {
    background: darken($inverse-color, 15%);
    &:hover {
      background: darken($inverse-color, 25%);
    }
  }
}

.soso-blog {
  display: none;
}

.article-layout .soso-blog {
  display: block;
}

.sales-crowd-blog {
    .placeholder {
        margin-bottom: 0;
    }
    article {
        position: relative;
        width: 100%;    
        min-height: 200px;
        margin-bottom: 2em;
         @include MQ(M) {
             margin-bottom: 2em;
        }
         @include MQ(L) {
            margin-bottom: 2em;
        }
      .salescrowd-widget {
        position: absolute;
        bottom: 0.5em;
        right: 0.5em;
      }
        img {
            margin: 0;
            float: left;
          width: 100%;
        }
      .article-grid-image {
        margin: 0;
        margin-bottom: -6px;
        float: left;
        width: 100%;

      }
        .article-content {
            background: $salescrowd-warm-light-gray;
            color: $salescrowd-earth;
            padding: 1.5em 1.5em;
            margin: 0;
          p {
            font-size: 1.1em;
            font-weight: 500;
          }
            strong {
                font-weight: 900;
            }
            p:last-child {
                margin-bottom: 0;
            }
        }
        .article-type {
            font-size: 0.8em;
            letter-spacing: 3px;
            text-transform: uppercase;
            margin-bottom: 0;
            padding-top: 1em;
            font-weight: 900;
          color: $white;
        }
        .byline-gradient {
            height: 70px;
            top: -70px;
            left: 0px;
            width: 100%;
            position: absolute;
            background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjQ5JSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjI2Ii8+CiAgICA8c3RvcCBvZmZzZXQ9Ijc5JSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjQyIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMC41NyIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
            background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.26) 49%, rgba(0,0,0,0.42) 79%, rgba(0,0,0,0.57) 100%); 
            background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(49%,rgba(0,0,0,0.26)), color-stop(79%,rgba(0,0,0,0.42)), color-stop(100%,rgba(0,0,0,0.57))); 
            background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.26) 49%,rgba(0,0,0,0.42) 79%,rgba(0,0,0,0.57) 100%); 
            background: -o-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.26) 49%,rgba(0,0,0,0.42) 79%,rgba(0,0,0,0.57) 100%); 
            background: -ms-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.26) 49%,rgba(0,0,0,0.42) 79%,rgba(0,0,0,0.57) 100%); 
            background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.26) 49%,rgba(0,0,0,0.42) 79%,rgba(0,0,0,0.57) 100%); 
            filter: none;
        }
        .article-byline {
            height: 50px;
            position: absolute;
            left: 1.5em;
            top:-25px;
            width: 100%;
            .author-image {
                border-radius: 100%;
                width: 50px;
                height: 50px;
                float: left;
                margin-right: 0.5em;
            }
            p.author-name {
                color: $white;
                font-size: 0.6em;
                padding: 0.75em 0 0.15em 0;
                text-shadow: 1px 1px 0px $black;
                margin-top: 0;
                margin-bottom: 0;
                text-transform: uppercase;
                font-weight: 900;
                letter-spacing: 2px;
                 @include MQ(M) {
            font-size: 0.8em;
                     padding: 0.15em 0 0.15em 0;
        }
                  @include MQ(L) {
            font-size: 0.8em;
                      padding: 0.15em 0 0.15em 0;
        }
            }
            p.article-dateline {
                color: $white;
                font-size: 0.6em;
                text-shadow: 1px 1px 0px $black;
                padding: 0.65em 0 0.15em 0;
                margin-top: 0;
                margin-bottom: 0;
                text-transform: uppercase;
                font-weight: 900;
                letter-spacing: 2px;
                font-style: italic;
                        @include MQ(M) {
            font-size: 0.8em;
                            padding: 0.25em 0 0.15em 0;
        }
                  @include MQ(L) {
           font-size: 0.8em;
                      padding: 0.25em 0 0.15em 0;
        }
            }
        }
        .article-title {
            padding: 2.5em 1.5em 1em 1.5em;
            background: $salescrowd-earth;
            position: relative;
            color: $white;
            font-weight: 600;
            margin: 0;
            clear: both;
            h4 {
                font-size: 1.1em;
                text-shadow: 1px 1px 0px $black-transparent-40;
                line-height: 1.2em;
                font-weight: 600;
                text-transform: capitalize;
                margin-bottom: 0;
              @include MQ(M) {
                font-size: 1.7em;
              }
                @include MQ(L) {
            font-size: 2em;
        }
            }

        }
        &.google-plus, &.pinterest, &.social-media-strategy {
            .article-title, .article-type {
                background: $salescrowd-red;
              a {
                color: $white;
              }
            }
          &.inverse{
            @include inverse($salescrowd-red, $white);
            a {
              color: $white;
            }
            h4 {
              text-shadow: none;
            }
          }
        }
      &.attract-attention {
        .article-title, .article-type {
          background: $attract-attention;
          text-shadow: 1px 1px 0 rgba(0,0,0,.4);
          a {
            color: $white;
          }
        }
        &.inverse{
          @include inverse($attract-attention, $white);
        }
      }
      &.build-your-brand {
        .article-title, .article-type {
          background: $build-your-brand;
          h4 {
            color: darken($build-your-brand, 60%);
            text-shadow: none !important;
          }
          .article-type, .article-dateline {
            color: darken($build-your-brand, 60%);
            text-shadow: none !important;
          }
          a {
            color: $white;
          }
        }
        &.inverse{
          @include inverse($build-your-brand, $white);
          .article-content p {
            color: darken($build-your-brand, 60%);
          }
        }
      }
      &.convert-the-sale {
        .article-title, .article-type {
          background: $convert-the-sale;

          h4 {
            text-shadow: none !important;
          }
          .article-type, .article-dateline {
            color: darken($convert-the-sale, 60%);
            text-shadow: none !important;
          }
          a {
            color: darken($convert-the-sale, 60%);

          }
        }
        &.inverse{
          @include inverse($convert-the-sale, $white);
          .article-content p {
            color: darken($convert-the-sale, 60%);
          }
          .article-readmore {
            color: darken($convert-the-sale, 60%);
          }
        }
      }
      &.deliver-extra-value {
        .article-title, .article-type {
          background: $deliver-extra-value;
          text-shadow: 1px 1px 0 rgba(0,0,0,.4);
          a {
            color: $white;
          }
        }
        &.inverse{
          @include inverse($deliver-extra-value, $white);
        }
      }
      &.encourage-word-of-mouth {
        .article-title, .article-type {
          background: $encourage-word-of-mouth;
          a {
            color: $white;
          }
        }
        &.inverse{
          @include inverse($encourage-word-of-mouth, $white);
        }
      }
        &.facebook {
            .article-title, .article-type {
                background: $salescrowd-facebook;
              a {
                color: $white;
              }
            }
          &.inverse{
            @include inverse($salescrowd-facebook, $white);
          }
        }
      &.linkedin {
        .article-title, .article-type {
          background: $salescrowd-linkedin;
          a {
            color: $white;
          }
        }
        &.inverse{
          @include inverse($salescrowd-linkedin, $white);
        }
      }
        &.twitter {
            .article-title, .article-type {
                background: $salescrowd-twitter;
              a {
                color: $white;
              }
            }
          &.inverse{
            @include inverse($salescrowd-twitter, $white);
            a {
              color: $white;
            }
          }
        }
      &.email-marketing {
        .article-title, .article-type {
          background: $salescrowd-purple;
          a {
            color: $white;
          }
        }
        &.inverse{
          @include inverse($salescrowd-purple, $white);
          a {
            color: $white;
          }
        }
      }
        &.snapchat {
            .article-title, .article-type {
                background: $salescrowd-snapchat;
                color: #38371E;
            }
          h4 {
            text-shadow: none;
          }
          p.article-dateline {
            color: #38371E;
            text-shadow: none;
          }
          a h4 {
            color: $salescrowd-earth;
          }
          &.inverse{
            @include inverse($salescrowd-snapchat, $salescrowd-earth);
            a {
              color: $salescrowd-earth;
            }
          }
        }
        &.tumblr {
            .article-title, .article-type {
              background: $salescrowd-tumblr;
              color: $white;
            }
          &.inverse{
            @include inverse($salescrowd-tumblr, $white);
            a {
              color: $white;
            }
          }
          }
      &.retargeting {
        .article-title, .article-type {
          background: $salescrowd-gold;
          color: $salescrowd-earth;
        }
        &.inverse{
          @include inverse($salescrowd-gold, $salescrowd-earth);
          h4 {
            text-shadow: none;
          }
          a {
            color: $salescrowd-earth;
          }
        }
      }
      &.nlp-persuasion {
        .article-title, .article-type {
          background: $salescrowd-pink;
          color: $white;
        }
        a {
          color: $white;
        }
        &.inverse{
          @include inverse($salescrowd-pink, $white);
          a {
            color: $white;
          }
        }
      }
      &.lead-generation {
        .article-title, .article-type {
          background: $salescrowd-light-orange;
          color: $salescrowd-earth;
        }
        &.inverse{
          @include inverse($salescrowd-light-orange, $salescrowd-earth);
          h4 {
            text-shadow: none;
          }
        }
      }
      &.online-competitions {
        .article-title, .article-type {
          background: $salescrowd-green;
          a {
            color: $white;
          }
        }
        &.inverse{
          @include inverse($salescrowd-green, $white);
          a {
            color: $white;
          }
        }
      }
      &.seo {
        .article-title, .article-type {
          background: $salescrowd-dark;
          a {
            color: $white;
          }
        }
        &.inverse{
          @include inverse($salescrowd-dark, $white);
        }
      }
      &.content-strategy {
        .article-title, .article-type {
          background: $salescrowd-dark;
          a {
            color: $white;
          }
        }
        &.inverse{
          @include inverse($salescrowd-dark, $white);
          a {
            color: $white;
          }
        }
      }
      &.display-network-marketing {
        .article-title, .article-type {
          background: $salescrowd-dark;
          a {
            color: $white;
          }
        }
        &.inverse{
          @include inverse($salescrowd-dark, $white);
          a {
            color: $white;
          }
        }
      }
        a.article-readmore {
            margin: 0;
            background: darken($salescrowd-warm-gray,30%);
            text-align: left;
          &:hover {
            background: darken($salescrowd-warm-gray,40%);
          }
        }
    } 
}