/*
 * Shortcode: timeline.scss
 * -----------------------------------------------
*/

.tm-timeline {
  &.timeline-basic {
    position: relative;
    .info-box {
      padding-bottom: 1.5rem;
      position: relative;
      padding-left: 20px;
      margin-left: 10px;
      @include transition(all .3s ease);
      &:last-child{
        border: 0px;
        padding-bottom: 0;
      }
      &:before{
        content: '';
        width: 15px;
        height: 15px;
        background: white;
        border: 1px solid var(--theme-color1);
        box-shadow: 3px 3px 0px var(--theme-color2);
        border-radius: 50%;
        position: absolute;
        left: -9px;
        top: 0px;
        @include transition(all .3s ease);
      }
      &:after{
        content: '';
        width: 1px;
        height: 100%;
        background: var(--theme-color1);
        position: absolute;
        left: -1px;
        top: 0px;
        z-index: -1;
        @include transition(all .3s ease);
      }
      &:last-child{
        border: 0px;
        padding-bottom: 0;
        &:after{
          width: 0;
        }
      }
      .title{
        margin-top: 0;
        margin-bottom: 0;
        line-height: 1.33333;
        font-weight: $headings-font-weight-h6;
      }
      .subtitle{
        margin-bottom: 0;
        font-size: 0.9rem;
        line-height: 1.75;
        font-weight: 400;
        color: rgba(0,0,0,0.9);
      }
      .date{
        margin-bottom: 4px;
        font-size: 0.8rem;
        line-height: 1.75;
        font-weight: 400;
        color: rgba(0,0,0,0.6);
      }
    }
    p{
      margin-bottom: 0;
    }
  }
  &.timeline-boxed {
    .info-box {
      display: flex;
      margin-bottom: 20px;
      padding-bottom: 20px;
      position: relative;
      @include transition(all .3s ease-in-out);
      @media (max-width: $ele-breakpoint-mobile-max) {
        display: block;
      }
      &:after{
        content: '';
        width: 1px;
        height: 100%;
        background-color: #eee;
        position: absolute;
        left: 55px;
        top: 0px;
        z-index: -1;
        @include transition(all .3s ease);
      }
      .info-left {
        .date {
          background: #fff;
          border: 1px solid rgba(200,200,200,0.3);
          border-radius: 10px;
          margin-right: 20px;
          padding: 40px 30px;
          text-align: center;
          display: flex;
          align-items: center;
          justify-content: center;
          flex-direction: column;
          @include box-shadow( 0px 0px 22px 0px rgba(5, 5, 5, 0.07) );
          @include transition(all .3s ease-in-out);
          .year {
            color: $headings-color;
            font-size: 26px;
            line-height: 1.1;
            display: block;
            text-transform: uppercase;
            margin-bottom: 5px;
            @include transition(all .3s ease-in-out);
          }
          .month {
            font-size: 18px;
            line-height: 1.1;
            display: block;
            @include transition(all .3s ease-in-out);
          }
        }
      }
      .info-content {
        margin-right: auto;
        .subtitle {
          color: #fff;
          background-color: var(--theme-color1);
          border-radius: 10rem;
          display: inline-block;
          padding: 8px 24px;
          margin-bottom: 10px;
          font-size: 75%;
          line-height: 1;
          text-align: center;
          white-space: nowrap;
          vertical-align: baseline;
          @include transition(all .3s ease-in-out);
        }
        .title {
          margin-top: 0;
        }
      }
    }
  }
}