.course-info {
  .container {
    margin-bottom: 60px;
  }

  header.course-profile {
    background: rgb(245,245,245);
    //@include background-image(linear-gradient(-90deg, rgb(230,230,230), rgb(245,245,245)));
    @include box-shadow(0 1px 80px 0 rgba(0,0,0, 0.5));
    border-bottom: 1px solid rgb(200,200,200);
    @include box-shadow(inset 0 1px 5px 0 rgba(0,0,0, 0.1));
    overflow: hidden;
    width: 100%;

    .intro-inner-wrapper {
      @include clearfix;
      margin: 0 auto;
      max-width: 1200px;
      padding: 50px 0px 40px;
      position: relative;
      width: flex-grid(12);

      &::before {
        @include background-image(radial-gradient(50% 50%, ellipse closest-side, rgba(#fff, 1), rgba(#fff, 0)));
        content: "";
        display: block;
        height: 200%;
        left: 0px;
        position: absolute;
        top: 80px;
        width: flex-grid(8);
        z-index: 1;
      }

      .intro {
        @include clearfix;
        float: left;
        margin-right: flex-gutter();
        position: relative;
        width: flex-grid(8);
        z-index: 2;

        > hgroup {
          position: relative;
          margin-bottom: 12px;

          h1 {
            color: $base-font-color;
            font: bold 2.8rem/3.2rem $sans-serif;
            @include inline-block;
            margin: 0 5px 0 0;
            letter-spacing: 0px;
            text-shadow: 0 1px rgba(255,255,255, 0.6);

            span {
              color: $lighter-base-font-color;
              display: none;
              font: 300 1.2rem/3rem $sans-serif;
            }
          }

          h2 {
            @include inline-block;
            margin: 0;

            a {
              color: $lighter-base-font-color;
              font: italic bold 1.4rem/1.6rem $sans-serif;
              text-shadow: 0 1px rgba(255,255,255, 0.6);

              &:hover {
                color: $blue;
              }
            }
          }
        }

        .course-dates {
          p {
            color: $lighter-base-font-color;
            @include inline-block;
            font: italic 1.2rem/1.6rem $serif;
            margin-top: 0px;
            margin-right: 20px;

            &:last-child {
              margin: 0;
            }

            > span {
              background: rgb(255,255,255);
              border: 1px solid rgb(220,220,220);
              @include border-radius(4px);
              color: $base-font-color;
              font: 300 1.2rem/1.6rem $sans-serif;
              margin-left: 5px;
              padding: 2px 10px;
            }
          }
        }
      }

      .actions {
        float: left;
        margin-top: 5px;
        position: relative;
        width: flex-grid(4);
        z-index: 2;

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

        .register-wrapper {
          @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%));
          @include box-shadow(0 1px 8px 0 rgba(0,0,0, 0.1), inset 0 0 0 1px rgba(255,255,255, 0.9));
          @include border-radius(4px);
          @include transition(all, 0.15s, linear);

          a.register {
            @include button(shiny, $blue);
            @include box-sizing(border-box);
            @include border-radius(3px);
            display: block;
            font: italic 1.2rem/1.6rem $serif;
            padding: 10px 0px;
            position: relative;
            text-transform: uppercase;
            text-align: center;
            width: flex-grid(12);
            z-index: 1;
          }
        }

        .social-sharing {
          padding: 0px 20px;

          p {
            background: rgb(255,255,255);
            @include box-shadow(0 1px 5px 0 rgba(0,0,0, 0.075), inset 0 0 0 1px rgba(255,255,255, 0.9));
            border: 1px solid rgb(210,210,210);
            border-top: 0;
            @include border-bottom-radius(4px);
            padding: 3px 10px;
            margin: 0 auto;
            color: $base-font-color;
            font: italic 300 1.2rem/1.6rem $serif;
            margin: 0 0 5px 0;
            text-align: center;
            text-shadow: 0 1px rgba(255,255,255, 0.6);

            &:last-child {
              margin: 0;
            }

            > span {
              font: normal 1.2rem/1.6rem $sans-serif;
              margin-right: 5px;
            }
          }
        }
      }
    }
  }

  .container {
    @include clearfix;

    nav {
      border-bottom: 1px solid rgb(220,220,220);
      @include box-sizing(border-box);
      @include clearfix;
      margin: 40px 0;
      width: flex-grid(12);

      &::after {
        @extend .faded-hr-divider;
        content: "";
        display: none;
      }

      a {
        border-bottom: 3px solid transparent;
        @include inline-block;
        font: normal 1.2rem/1.6rem $sans-serif;
        letter-spacing: 1px;
        margin: 0 15px;
        padding: 0px 5px 15px;
        text-align: center;
        text-transform: uppercase;

        &:first-child {
          margin-left: 0px;
        }

        &:hover, &.active {
          border-color: rgb(200,200,200);
          color: $base-font-color;
        }
      }
    }

    h2 {
      color: $lighter-base-font-color;
      margin-bottom: 20px;
      text-transform: uppercase;
    }

    h3 {
      color: $base-font-color;
      font-weight: 300;
      font-family: $sans-serif;
      margin-bottom: 10px;
    }
  }

  .details {
    float: left;
    margin-right: flex-gutter();
    width: flex-grid(8);

    .inner-wrapper {
      > section {

        &::after {
          @extend .faded-hr-divider;
          content: "";
          display: none;
          margin-top: 60px;
        }
        margin-bottom: 60px;


        p + h2 {
          margin-top: 40px;
        }
      }
    }

    .course-staff {
      .teacher {
        margin-bottom: 30px;

        &::after {
          @extend .faded-hr-divider;
          content: "";
          display: block;
          margin-top: 30px;
        }

        &:last-child {
          &::after {
            display: none;
          }
        }

        .teacher-image {
          background: rgb(255,255,255);
          border: 1px solid rgb(200,200,200);
          float: left;
          margin: 0 15px 15px 0;
          padding: 1px;
        }
      }
    }
  }

  .course-sidebar {
    @include box-sizing(border-box);
    float: left;
    padding-top: 40px;
    width: flex-grid(4);

    h3 {
      color: $lighter-base-font-color;
      font-family: $serif;
      font-weight: 300;
      margin-bottom: 15px;
      text-transform: uppercase;
    }

    > section {
      border: 1px solid rgb(220,220,220);
      @include border-radius(4px);
      background: rgb(245,245,245);
      margin-bottom: 20px;
      padding: 15px;
    }

    .media {
      border: 1px solid rgb(200,200,200);
      @include box-sizing(border-box);
      margin-bottom: 20px;
      padding: 1px;
      width: flex-grid(12);

      .hero {
        height: 180px;
        overflow: hidden;
        position: relative;

        .play-intro {
          @include background-image(linear-gradient(-90deg, rgba(255,255,255, 0.6), rgba(255,255,255, 0.4)));
          @include border-radius(4px);
          @include box-shadow(0 1px 10px 0 rgba(0,0,0, 0.2));
          border: 1px solid rgba(0,0,0, 0.3);
          height: 80px;
          left: 50%;
          margin-top: -40px;
          margin-left: -40px;
          position: absolute;
          top: 50%;
          width: 80px;

          &::after {
            color: $base-font-color;
            content: "\25B6";
            display: block;
            font: normal 3.2rem/3.2rem $sans-serif;
            left: 50%;
            margin-left: -12px;
            margin-top: -17px;
            position: absolute;
            text-shadow: 0 1px rgba(255,255,255, 0.8);
            top: 50%;
          }
        }

        img {
          min-width: 100%;
        }
      }

      &:hover {
        cursor: pointer;

        .play-intro {
          @include background-image(linear-gradient(-90deg, rgba(255,255,255, 0.7), rgba(255,255,255, 0.5)));
          @include box-shadow(0 1px 10px 0 rgba(0,0,0, 0.2));
          border: 1px solid rgba(0,0,0, 0.4);

          &::after {
            color: $pink;
          }
        }
      }
    }
  }
}
