.home {
  margin: 50px 10px 100px;

  > header {
    @include clearfix;
    min-height: 335px;
    margin-bottom: 40px;
    position: relative;
    width: flex-grid(12);

    .video-wrapper {
      right: 0px;
      position: absolute;
      top: 0px;

      .video-player {
        background: rgb(45,45,45);
        border: 1px solid rgb(0,0,0);
        @include border-radius(4px);
        height: 315px;
        padding: 5px;
        width: 560px;

        &:hover {
          @include box-shadow(0 0 12px 0 rgba(0,0,0, 0.3));
        }

        .video-inner {
          background: transparent;
          height: 315px;
          margin: 0 auto;
          width: 560px;
        }
      }
    }

    .welcome {
      @include box-sizing(border-box);
      float: left;
      font-size: 0em;
      width: flex-grid(12);
      padding-right: 600px;
      padding-top: 20px;

      h1 {
        color: $lighter-base-font-color;
        font: normal 2.4rem/3rem $sans-serif;
        letter-spacing: 1px;
        margin-bottom: 20px;
        position: relative;
        text-align: center;
        text-transform: uppercase;
      }

      .intro {
        @include box-sizing(border-box);
        margin-bottom: 40px;
        width: flex-grid(12);

        p {
          color: $base-font-color;
          margin: 0px;
          text-align: center;
          width: flex-grid(12);
        }
      }

      .signup-wrapper {
        @include box-sizing(border-box);
        margin: 0 auto;
        width: flex-grid(10);

        .sign-up {
          background: rgb(240,240,240);
          @include background-image(linear-gradient(-90deg, rgb(245,245,245) 0%, rgb(243,243,243) 50%, rgb(237,237,237) 50%, rgb(235,235,235) 100%));
          border: 1px solid rgb(220,220,220);
          @include border-radius(4px);
          @include box-shadow(0 1px 8px 0 rgba(0,0,0, 0.1));
          @include box-sizing(border-box);
          font-size: 0em;
          padding: 12px;
          @include transition(all, 0.15s, linear);
          width: flex-grid(12);

          &:hover {
            @include box-shadow(0 0 16px 0 rgba($blue, 0.35));
          }

          a {
            @include button(shiny, $pink);
            @include box-sizing(border-box);
            @include border-radius(3px);
            @include inline-block;
            font: normal italic 1.2rem/1.6rem $serif;
            padding: 15px 0px;
            text-transform: uppercase;
            text-align: center;
            width: flex-grid(6);

            &:first-child {
              margin-right: flex-gutter();
            }

            &.find-courses {
              @include button(shiny, $blue);
              @include box-sizing(border-box);
              @include border-radius(3px);
              @include inline-block;
              font: normal italic 1.2rem/1.6rem $serif;
              padding: 15px 0px;
            }
          }

          form {
            input[type="text"],
            input[type="email"],
            input[type="password"] {
              height: 45px;
              margin-right: flex-gutter();
              width: flex-grid(3);

              &:last-child {
                margin-right: 0px;
              }
            }

            input[type="submit"] {
              height: 45px;
              width: flex-grid(3);
            }
          }

          h3 {
            color: $base-font-color;
            font: normal 1.6rem/2rem $sans-serif;
            text-align: center;
          }
        }
      }
    }
  }


  .university-partners {
    @include background-image(linear-gradient(180deg, rgba(255,255,255, 0) 0%, rgba(250,250,250, 0.8) 15%, rgb(250,250,250) 50%, rgba(250,250,250, 0.8) 85%, rgba(255,255,255, 0)));
    margin-bottom: 60px;
    padding: 10px 0px;
    position: relative;
    width: flex-grid(12);

    &:before {
      @extend .faded-hr-divider;
      content: "";
      display: block;
      position: absolute;
      top: 0px;
    }

    &:after {
      @extend .faded-hr-divider;
      bottom: 0px;
      content: "";
      display: block;
      position: absolute;
    }

    .partners {
      font-size: 0em;
      margin: 0 auto;
      width: 420px;

      a {
        @include inline-block;
        margin-right: 40px;
        opacity: 0.7;

        &:last-child {
          margin-right: 0px;
        }

        &:hover {
          opacity: 0.9;
        }
      }

      .name {
        @include inline-block;
        color: $base-font-color;
        font: 800 italic 2rem/2.2rem $sans-serif;
        text-align: center;
        text-shadow: 0 1px rgba(255,255,255, 0.6);
        vertical-align: middle;
      }

      img {
        @include inline-block;
        max-width: 100px;
        vertical-align: middle;
      }
    }
  }

  .highlighted-courses {
    @include border-radius(4px);
    @include box-sizing(border-box);
    @include clearfix;
    margin-bottom: 40px;
    width: flex-grid(12);

    .course {
      @include box-sizing(border-box);
      float: left;
      width: flex-grid(6);

      @media only screen and (max-width: 768px) {
        float: none;
        margin-right: 0px;
        width: flex-grid(12);
      }

      &:nth-child(odd) {
        margin-right: flex-gutter();
      }
    }
  }


  .more-info {
    margin-bottom: 60px;
    width: flex-grid(12);

    h2 {
      border-bottom: 1px solid rgb(200,200,200);
      color: $lighter-base-font-color;
      font: normal 1.4rem/1.8rem $serif;
      letter-spacing: 1px;
      margin-bottom: 30px;
      padding-bottom: 10px;
    }

    .news {
      font-size: 0em;
      width: flex-grid(12);

      > article {
        background: rgb(240,240,240);
        @include inline-block;
        height: 300px;
        margin-right: flex-gutter();
        width: flex-grid(4);

        &:last-child {
          margin-right: 0px;
        }
      }
    }
  }

  .social-media {
    background: rgb(245,245,245);
    border: 1px solid rgb(220,220,220);
    @include border-radius(4px);
    @include box-shadow(inset 0 1px 2px 0 rgba(0,0,0, 0.1));
    height: 200px;
    width: flex-grid(12);

    h2 {
      color: $lighter-base-font-color;
      font: normal 1.6rem/2rem $sans-serif;
      padding-top: 80px;
      text-align: center;
    }
  }
}
