/* Events - Content */
#calendar {
  padding-top: 190px;
  margin-top: -190px;
  @include media-breakpoint-down(md){
    padding-top: 100px;
    margin-top: -100px;
  }

  .calendar-spinner {
    display: none;
    width: 30px;
    margin-bottom: 5px;
  }
}
.events-cont {
  width: 100%;
  overflow: hidden;

  .row {
    padding: 0;
    margin: 0 0 -30px 0;

    > div {
      padding: 0 0 30px 0;
      margin: 0;
    }
  }

  .events-calendar {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    text-align: center;
    overflow: hidden;
  }

  .articles-out .description{
    font-size: $font-size-12;
    line-height: 1.1;
    font-weight: $font-weight-normal;
    color: $white;
    margin-top: -10px;
    padding-bottom: 15px;
  }

  .calendar-box {
    width: 100%;
    background: $primary-bg;
    overflow: hidden;
    margin-bottom: 30px;
    border: 3px solid $secondary-bg;

    .date-hidden a {
      display: none;
    }

    .month {
      width: 100%;
      height: 60px;
      float: left;
      font-family: $font-family-primary;
      font-weight: $font-weight-bold;
      font-size: $font-size-24;
      color: $primary-color;
      line-height: $line-height-60;
      text-align: center;
      background: $secondary-bg;
      position:  relative;
      padding: 0 20px;
      margin-bottom: 30px;
    }

    .prevmonth,
    .nextmonth {
      text-indent: -99999px;
      position: absolute;
      top: 0;
      cursor: pointer;
      z-index: 3;

      &:after {
        font-family: "Font Awesome 5 Pro";
        font-weight: 400;
        font-size: 28px;
        color: $primary-color;
        position: absolute;
        top: 50%;
        transform: translate(0, -50%);
        text-indent: 0;
      }
    }

    .prevmonth {
      left: 30px;

      &:after {
        content: "\f053";
        left: 0;
      }
    }

    .nextmonth {
      right: 30px;

      &:after {
        content: "\f054";
        right: 0;
      }
    }

    ul {
      width: 101.76%;
      float: left;
      padding: 0 47px 30px 47px;
      margin: 0 -0.88% -20px -0.88%;

      li {
        width: 12.525%;
        min-height: 1px;
        float: left;
        font-weight: $font-weight-bold;
        font-size: $font-size-22;
        color: $primary-color;
        line-height: $line-height-20;
        padding: 0;
        margin: 0 0.88% 20px 0.88%;

        &:before {
          display: none;
        }

        a {
          width: 46px;
          height: 46px;
          float: none;
          display: inline-flex;
          vertical-align: top;
          align-items: center;
          justify-content: center;
          font-weight: inherit;
          color: $primary-color;
          text-decoration: $link-hover-decoration-none;
          text-align:center;
          border-radius: $border-radius;
          position: relative;

          &:after {
            content: "";
            width: 52px;
            height: 52px;
            float: left;
            border-radius: $border-radius;
            position: absolute;
            top: -3px;
            left: -3px;
            opacity: 0;
          }

          span {
            width: 100%;
            float: left;
          }

          .txtsml {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 10px;
            line-height: 14px;
          }

          &:hover,
          &.active {
            &:after {
              opacity: 1;
            }
          }
        }

        &.yellow-bg {
          a {
            background: #FCC75E1A;
            border: 3px solid $yellow;

            &:hover{
              background: $yellow;
            }
          }
          .active {
            background: $yellow;
          }
        }

        &.green-bg {
          a {
            background: #26AA361A;
            border: 3px solid $green;

            &:hover{
              background: $green;
            }
          }
          .active {
            background: $green;
          }
        }

        &.dark-green-bg {
          a {
            background: $green-dark;
            border: 3px solid $green-dark;

            &:hover{
              background: $green-dark;
            }
          }
          .active {
            background: $green-dark;
          }
        }

        &.blue-bg {
          a {
            background: #5194F71A;
            border: 3px solid #1DABEB;
            &:hover{
              background: #1DABEB;
            }
          }
          .active {
            background: #1DABEB;
          }
        }

        &.brown-bg {
          a {
            background: #F17B241A;
            border: 3px solid #F17B24;

            &:hover{
              background: #F17B24;
            }
          }
          .active {
            background: #F17B24;
          }
        }

        &.brown-red-bg {
          a {
            background: #e1b2b2;
            border: 3px solid #b31117;

            &:hover{
              background: #b31117;
            }
          }
          .active {
            background: #b31117;
          }
        }

        &.gray-bg {
          a {
            background: $gray-c9;
            border: 3px solid $gray-c9;

            &:hover{
              background: $gray-c9;
            }
          }
          .active {
            background: $gray-c9;
          }
        }

        &.turquoise-bg {
          a {
            background: #10a19aa1;
            border: 3px solid #10a19a;

            &:hover{
              background: #10a19a;
            }
          }
          .active {
            background: #10a19a;
          }
        }

        &.rose-bg {
          a {
            background: #f6bed97d;
            border: 3px solid $rose;

            &:hover{
              background: $rose;
            }
          }
          .active {
            background: $rose;
          }
        }

        &.magenta-bg {
          a {
            background: #e6007d2e;
            border: 3px solid #e6007d;
            &:hover{
              background: #e6007d;
            }
          }
          .active {
            background: #e6007d;
          }
        }

        &.orange-bg {
          a {
            background: #F17B241A;
            border: 3px solid #f29100;

            &:hover{
              background: #f29100;
            }
          }
          .active {
            background: #f29100;
          }
        }

        &.black-bg {
          a {
            background: #00000078;
            border: 3px solid #000000;

            &:hover{
              background: #000000;
            }
          }
          .active {
            background: #000000;
          }
        }

      }
    }

    .days {
      width: 100%;
      float: left;

      ul {
        li {
          font-weight: $font-weight-bold;
          font-size: $font-size-16;
          line-height: $line-height-18;
        }
      }
    }

    .dates {
      width: 100%;
      float: left;
    }
  }


  .events-highlights {
    width: 100%;
    text-align: left;
    overflow: hidden;
    padding: 0 0 0 12px;

    ul {
      width: 101.70%;
      float: left;
      padding: 0;
      margin: 0 -0.85% -17px -0.85%;

      li {
        width: 31.63%;
        float: left;
        font-weight: $font-weight-normal;
        font-size: $font-size-14;
        color: $primary-color;
        line-height: $line-height-18;
        padding: 3px 0 2px 30px;
        margin: 0 0.85% 17px 0.85%;

        &:before {
          display: none;
        }

        &:after {
          content: "";
          width: 20px;
          height: 20px;
          float: left;
          background: $gray-c9;
          border-radius: $border-radius;
          position: absolute;
          top: 50%;
          left: 0;
          transform: translate(0, -50%);
        }

        &.yellow-bg {
          &:after {
            background: $yellow;
          }
        }

        &.green-bg {
          &:after {
            background: $green;
          }
        }

        &.dark-green-bg {
          &:after {
            background: $green-dark;
          }
        }

        &.blue-bg {
          &:after {
            background: #1DABEB;
          }
        }

        &.brown-bg {
          &:after {
            background: #F17B24;
          }
        }

        &.brown-red-bg {
          &:after {
            background: #b31117;
          }
        }

        &.gray-bg {
          &:after {
            background: $gray-c9;
          }
        }

        &.turquoise-bg {
          &:after {
            background: #10a19a;
          }
        }
        &.rose-bg {
          &:after {
            background: $rose;
          }
        }
        &.magenta-bg {
          &:after {
            background: #e6007d;
          }
        }
        &.orange-bg {
          &:after {
            background: #f29100;
          }
        }
        &.black-bg {
          &:after {
            background: #000000;
          }
        }
      }
    }
  }


  .events-articles {
    width: 100%;
    float: left;
    font-family: $font-family-primary;
    color: $primary-color;
    background: $secondary-bg;
    position: relative;
    padding: 30px 40px 40px 40px;

    .events-flex-wrapper {
      display: flex;
      flex-direction: column;
    }

    &:before {
      content: "";
      width: 0;
      height: 0;
      border-right: 19px solid $secondary-bg;
      border-top: 24px solid transparent;
      border-bottom: 24px solid transparent;
      position: absolute;
      top: 50%;
      left: -19px;
      transform: translate(0, -50%);
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    li,
    p {
      color: inherit;
    }

    li:before {
      background-color: #FFFFFF;
    }

    h3 {
      order: 0;
      font-weight: $font-weight-bold;
      font-size: $font-size-22;
      line-height: $line-height-34;
      padding: 0 0 10px 0;
      text-transform: none;
      letter-spacing: 0;
      @include media-breakpoint-down(md){
        margin-top: 0;
      }

      &:last-child {
        padding-bottom: 0;
      }
    }

    .time + .articles-out {
      margin-top: 30px;
    }

    .time {
      order: 1;
      font-weight: $font-weight-normal;
      font-size: $font-size-16;
      line-height: $line-height-26;
      position: relative;
      padding-left: 34px;
      padding-bottom: 5px;
      @include media-breakpoint-down(md){
        float: left;
      }

      &:last-child {
        padding-bottom: 0;
      }

      .icon {
        position: absolute;
        top: -2px;
        left: 0;

        img {
          max-height: 24px;
          max-width: 24px;
        }
      }

      .txt {
        padding: 0;
      }
    }



    .articles-out {
      order: 2;
      width: 100%;
      float: left;
      margin-top: 15px;

      p {
        font-size: 1rem;
        font-family: $font-family-montserrat;
        font-weight: $font-weight-normal;
        font-size: $font-size-16;
        line-height: $line-height-26;
      }

      &:last-child {
        margin-bottom: 0;
      }

      &.information {
        order: 9;
      }

      h4 {
        font-weight: $font-weight-bold;
        font-size: $font-size-16;
        line-height: $line-height-26;
        padding: 0 0 20px 0;
        text-transform: none;
        letter-spacing: 0;

        &:last-child {
          padding-bottom: 0;
        }
      }

      .row {
        padding: 0;
        margin: 0 -15px -30px -15px;

        > div {
          padding: 0 15px 30px 15px;
          margin: 0;
        }
      }

      .ride-information {
        margin-bottom: 0;


      }


      .box {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        float: left;
        font-weight: $font-weight-normal;
        font-size: $font-size-14;
        color: $secondary-bg;
        line-height: $line-height-18;
        background: $primary-color;
        text-decoration: $link-hover-decoration-none;
        position: relative;
        overflow: hidden;

        .aside {
          width: 100%;
          min-height: 62px;
          float: left;
          padding: 5px 10px;
        }

        .figure {
          width: 100%;
          text-align: center;
          overflow: hidden;

          img {
            width: 100%;
            -webkit-transition-duration: 0.3s;
            transition-duration: 0.3s;
            -webkit-transition-property: transform;
            transition-property: transform;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
          }
        }

        &:hover,
        &:focus,
        &:active {
          color: $quaternary-color;

          .figure {
            img {
              -webkit-transform: scale(1.1);
              transform: scale(1.1);
            }
          }
        }
      }
    }
  }


  @include media-breakpoint-up(md) {
    .container {
      max-width: 1300px;
    }

    .row {
      margin: 0 -15px -30px -15px;

      > div {
        padding: 0 15px 30px 15px;
      }
    }
  }


  @include media-breakpoint-down(xl) {
    .calendar-box {
      .month {
        height: 50px;
        font-size: $font-size-18;
        line-height: $line-height-50;
        margin-bottom: 20px;
      }

      .prevmonth,
      .nextmonth {
        &:after {
          font-size: 20px;
        }
      }

      .prevmonth {
        left: 20px;
      }

      .nextmonth {
        right: 20px;
      }

      ul {
        width: 101.76%;
        float: left;
        padding: 0 20px 20px 20px;
        margin: 0 -0.88% -15px -0.88%;

        li {
          font-size: $font-size-10;
          line-height: 12px;
          margin: 0 0.88% 15px 0.88%;

          a {
            width: 27px;
            height: 27px;

            &:after {
              width: 31px;
              height: 31px;
              top: -2px;
              left: -2px;
            }

            .txtsml {
              font-size: 6px;
              line-height: 7px;
            }
          }
        }
      }

      .days {
        ul {
          li {
            font-size: $font-size-10;
            line-height: $line-height-11;
          }
        }
      }
    }


    .events-highlights {
      padding: 0 0 0 10px;

      ul {
        width: 103%;
        margin: 0 -1.5% -12px -1.5%;

        li {
          width: 47%;
          font-size: $font-size-10;
          line-height: $line-height-16;
          margin: 0 1.5% 20px 1.5%;
        }
      }
    }


    .events-articles {
      padding: 35px 30px;

      h3 {
        font-size: $font-size-18;
        line-height: $line-height-26;
        text-transform: none;
        letter-spacing: 0;
      }

      .time + .articles-out {
        margin-top: 30px;
      }

      .time {
        line-height: $line-height-20;
        padding-left: 34px;
        padding-bottom: 5px;

        .icon {
          top: -1px;
        }
      }

      .articles-out {
        margin-bottom: 30px;


        h4 {
          font-size: $font-size-16;
          line-height: $line-height-22;
          padding: 0 0 20px 0;
        }

        .row {
          padding: 0;
          margin: 0 -10px -20px -10px;

          > div {
            padding: 0 10px 20px 10px;
            margin: 0;
          }

          ul {
            padding-left: 0;
            padding-right: 0;
          }

          p {
            font-size: $font-size-22;
          }
        }
      }
    }
  }


  @include media-breakpoint-down(md) {
    .calendar-box {
      order: 2 !important;
      margin: 0;
    }

    .events-highlights {
      order: 1 !important;
      padding: 0 0 30px 12px;
    }

    .events-articles {
      &:before {
        content: "";
        width: 0;
        height: 0;
        border-top: none;
        border-bottom: 19px solid $secondary-bg;
        border-left: 24px solid transparent;
        border-right: 24px solid transparent;
        position: absolute;
        top: -19px;
        left: 50%;transform: translate(0, 0);
        margin: 0 0 0 -24px;
      }

      .articles-out {
        max-width: 100%;
        margin-bottom: 30px;

        .row {
          margin: 0 0 -10px 0;

          > div {
            padding: 0 0 10px 0;
          }
        }

        .box {
          .aside {
            min-height: 90px;
            padding: 20px 10px 20px 140px;
          }

          .figure {
            width: 120px;
            height: 100%;
            float: left;
            position: absolute;
            top: 0;
            left: 0;
            overflow: hidden;
            margin: 0;

            img {
              min-width: 100%;
              min-height: 100%;
              position: absolute;
              top: 50%;
              left: 50%;
              -webkit-transform: translate(-50%, -50%);
              -ms-transform: translate(-50%, -50%);
              transform: translate(-50%, -50%);
            }
          }

          &:hover,
          &:focus,
          &:active {
            color: $quaternary-color;

            .figure {
              img {
                -webkit-transform: scale(1.1) translate(-50%, -50%);
                transform: scale(1.1) translate(-50%, -50%);
              }
            }
          }
        }
      }
    }
  }

  @include media-breakpoint-down(sm) {
    .events-articles .articles-out .box {
      .figure {
        width: 100%;
        position: relative;
        img {
          min-width: auto;
          min-height: auto;
          position: relative;
          top: auto;
          left: auto;
          transform: initial;
        }
      }
      .aside {
        padding: 5px 10px;
      }
    }
  }
}

/* Events list */
.event-list-wrapper{
  padding: 50px 0;

  .event-list{
    padding: 0 50px 50px 0;

    .title {
      padding-bottom: 0;
    }
    @include media-breakpoint-down(lg){
      padding: 0;

      ul{
        padding: 0 20px;
      }
    }
  }

  .event-item{
    width: 100%;
    opacity: 100%;
    height: 60px;
    padding: 0 30px;
    display: flex;

    &:before{
      display: none;
    }

    &:hover{
      opacity: 100%;
      cursor: pointer;
      transition: all 0.25s;
    }

    .event-link {
      display: flex;
      font-weight: $font-weight-normal;
      flex: 1;
      text-decoration: none;
      @include media-breakpoint-down(lg) {
        flex-direction: column;
      }

      .icon{
        width:23px;
        height:23px;
        background: $secondary-bg;
        mask-repeat: no-repeat;
        -webkit-mask-repeat: no-repeat;
        float: left;
        margin-right: 10px;

        &.icon-clock{
          mask-image: url(/static_assets/Images/Layout_icons/clock-3.png);
          -webkit-mask-image: url(/static_assets/Images/Layout_icons/clock-3.png);
        }
      }

      &:hover{
        color: inherit;
      }

      &:before{
        content: "";
        position: absolute;
        transform: translate(-100%, 0);
        left: 0;
        top: 0;
        opacity: 0%;
        transition: opacity 0.25s;
      }
    }
  }

  .event-item.active, .owl-item.active .event-item{
    opacity: 100%;
    background: $secondary-bg;

    .icon {
      background: $primary-color;
    }

    .event-title {
      color: $primary-color;
    }
    @include media-breakpoint-down(lg){
      margin-top: -30px;
    }

    .event-link:before{
      opacity: 100%;
      content: "";
      position: absolute;
      height: 100%;
      transform: translate(-100%, 0);
      left: 0;
      top: 0;
      border-style: solid;
      border-width: 29px 22px 29px 0;
      border-color: transparent $secondary-bg transparent transparent;
      transition: opacity 0.25s;
      @include media-breakpoint-down(lg){
        transform: translate(-50%, -99%);
        left: 50%;
        top: 0;
        border-width: 0 29px 22px 29px;
        border-color: transparent transparent $secondary-bg transparent;
      }
    }
  }

  .event-title{
    padding-bottom: 0;
    margin: auto 0;
    font-size: $font-size-24;
    color: $secondary-bg;

    @include media-breakpoint-down(lg) {
      max-width: none;
      margin: 22px 0 0 0;
    }
  }

  .event-time-wrapper{
    margin: auto 0;
    font-size: $font-size-18;
    @include media-breakpoint-down(lg) {
      margin: 0 0 22px 0;
    }

    .event-time{
      line-height: 23px;
      float: right;
      @include media-breakpoint-down(lg) {
        float: left;
      }
    }
  }

  .owl-dots{
    margin-top: 0;
  }
}

.row .event-list-wrapper .item {
  padding-bottom: 0px;
}

.event-image{
  aspect-ratio: 1.5;
  object-fit: cover;
  @include media-breakpoint-up(lg){
    display: none;

    &.active{
      display: block;
    }
  }
}

@include media-breakpoint-down(lg) {
  .event-list-wrapper {
    ul {
      padding: 0;
    }
    .event-item {
      display: table;
      .event-link {
        display: block;

        .icon {
          background: $primary-color;
        }
      }
    }

    .event-title {
      color: $primary-color;
      margin: 0;
    }

    .event-time-wrapper {
      padding: 22px;
      background: $secondary-bg;
      color: $primary-color;
    }
  }
}

/* Events list
.event-list-wrapper{

  .event-list{
    padding: 50px 50px 50px 0;
  }

  .event-item{
    width: 100%;
    opacity: 70%;
    height: 100px;
    padding: 0 30px;
    display: flex;
    @include media-breakpoint-up(xxl){
      width: 65%;
    }

    &:before{
      display: none;
    }

    &:hover{
      opacity: 100%;
      cursor: pointer;
      transition: all 0.25s;
    }

    .event-link {
      display: flex;
      justify-content: space-between;
      font-weight: $font-weight-normal;
      flex: 1;

      &:hover{
        color: inherit;
      }

      &:before{
        content: "";
        position: absolute;
        transform: translate(-100%, 0);
        left: 0;
        top: 0;
        opacity: 0%;
        transition: opacity 0.25s;
      }
    }

    &.active{
      opacity: 100%;
      background: #B14100;

      .event-link:before{
        opacity: 100%;
        content: "";
        position: absolute;
        height: 100%;
        transform: translate(-100%, 0);
        left: 0;
        top: 0;
        border-style: solid;
        border-width: 48px 22px 48px 0;
        border-color: transparent #B14100 transparent transparent;
        transition: opacity 0.25s;
      }
    }
  }

  .event-title{
    padding-bottom: 0;
    margin: auto 0;
    font-size: $font-size-24;
    max-width: 65%;
  }

  .event-time-wrapper{
    margin: auto 0;
    font-size: $font-size-18;

    .icon{
      width:23px;
      height:23px;
      background: #ffffff;
      mask-repeat: no-repeat;
      -webkit-mask-repeat: no-repeat;
      float: left;
      margin-right: 10px;

      &.icon-clock{
        mask-image: url(/static_assets/Images/Layout_icons/clock-3.png);
        -webkit-mask-image: url(/static_assets/Images/Layout_icons/clock-3.png);
      }
    }

    .event-time{
      line-height: 23px;
      float: right;
    }
  }
}
*/