.videos-years {
  display: flex;
  align-items: center;
  margin-bottom: 40px;

  input[type="date"] {
    position: relative;
    z-index: 9;
    left: -145px;
    opacity: 0;
    height: 70px;
  }

  .videos-years__current {
    position: relative;
    padding: 14px 40px;
    border: 1px solid #6dacde;
    font-weight: 350;
    font-size: 18px;
    line-height: 23px;
    color: #6dacde;
    overflow: hidden;

    &::before {
      content: "";
      z-index: -1;
      position: absolute;
      top: 130%;
      left: 0;
      transform: rotate(10deg);
      height: 100%;
      width: 100%;
      background: #6dacde;
      transition: $fast-transition;
    }

    &:hover {
      color: #ffffff;

      &::before {
        top: 0;
        transform: rotate(0);
      }
    }
  }

  .videos-years__filter {
    margin-left: 20px;
    font-weight: 350;
    font-size: 18px;
    line-height: 23px;
    color: #292929;

    span {
      cursor: pointer;
      color: $blue;
    }
  }
}

.videos-row {
  .videos-row__item {
    margin-bottom: 25px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    transition: $fast-transition;

    &:hover {
      background: $blue;

      .videos-row__item-description {
        .item-description__title {
          color: #ffffff;
        }

        .item-description__time {
          color: #ffffff;

          &::before {
            background: url("../img/calendar-white.svg") no-repeat center;
          }
        }
      }
    }

    .videos-row__item-description {
      padding: 40px 0 30px 50px;
      transition: $fast-transition;

      .item-description__title {
        font-weight: 700;
        font-size: 18px;
        line-height: 30px;
        text-decoration: underline;
        color: #292929;
        max-width: 330px;
        transition: inherit;
      }

      .item-description__time {
        min-height: 30px;
        padding-left: 30px;
        display: flex;
        align-items: center;
        position: relative;
        margin-top: 60px;
        font-weight: 350;
        font-size: 15px;
        line-height: 30px;
        color: #1a1a1a;
        transition: inherit;

        &::before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          height: 30px;
          width: 20px;
          background: url("../img/calendar.svg") no-repeat center;
        }
      }
    }

    @media (max-width: 768px) {
      flex-direction: column;

      .videos-row__item-description {
        padding-left: 0;
      }

      img {
        width: 100%;
      }
    }
  }
}

.videos-nav {
  margin-top: 60px;
  margin-left: -15px;
  display: flex;

  li {
    a {
      margin-right: 20px;
      font-weight: 350;
      font-size: 20px;
      line-height: 26px;
      color: #cbcbcb;
      padding: 12px 19px;
      display: inline-block;
      border: 1px solid #cbcbcb;
      transition: $fast-transition;

      &:hover {
        border: 1px solid #cbcbcb;
        background: #cbcbcb;
        color: #ffffff;
      }
    }

    &._active {
      a {
        font-weight: 700;
        font-size: 20px;
        line-height: 26px;
        color: #ffffff;
        border: 1px solid $blue;
        background: $blue;
      }
    }
  }
}
