/*
 * Misc: Card
 * -----------
 */
//@color-accent: @light-blue;

.article-card {
  position: relative;
  display: block;
  margin-bottom: 15px;
  background: @body-bg;
  height: 35rem;
  z-index: 1;
  border: 0px solid @box-default-border-top-color;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  transition: box-shadow .25s;

  &:hover {
    box-shadow: 0 8px 10px 0 rgba(0, 0, 0, 0.2), 0 6px 15px 0 rgba(0, 0, 0, 0.19);
  }

  .thumbnail {
    overflow: hidden;
    height: 20rem;
    padding: 0;
    border: 0;
    display: block;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;

    .date {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      width: 3rem;
      height: 7rem;
      color: @body-bg;
      text-align: center;
      font-weight: 600;
      border-top-left-radius: 5px;

      .day {
        font-size: 2rem;
        font-weight: 500;
        padding: .05rem 0 .05rem 0;
        margin: 0rem;
      }

      .month {
        font-size: 1rem;
        padding: .05rem 0 .05rem 0;
        margin: 0;
      }

      .year {
        font-size: 1rem;
        padding: .05rem 0 .05rem 0;
        margin: 0;
      }
    }

    img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      transition: all .25s ease;
    }
  }

  .content-card {
    max-height: 15rem;

    header {
      h1.title {
        margin: 0;
        padding: .8rem .8rem 1rem .8rem;
        font-size: 2rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }

    .description {
      margin: 0;
      padding: 0 .8rem 0 .8rem;
      color: #333333;
      font-size: 1.1rem;
      text-align: justify;
      max-height: 55px !important;
      overflow-y: hidden;
      /* inset shadow */
      box-shadow: inset 0 -5px 5px 0 rgba(0, 0, 0, 0.1);
    }

    .footer {
      margin: 2rem 0;
      color: #ffffff;
      padding: .6rem .6rem .6rem .6rem;
      text-align: right;
      position: absolute;
      bottom: 0;
      right: 0;
      vertical-align: bottom;
      margin: 0;
      width: 100%;

      a.learn-btn {
        background-color: transparent;;
        opacity: .8;
        margin: 0 .1rem 0 .1rem;
        &:hover {
          opacity: 1;
        }
      }
      a.social-link {
        margin: 0 .1rem 0 .1rem;
        overflow: hidden;
        height: 22px;
        width: 22px;
        padding: 5px 0;
        font-size: 11px;
        line-height: .5;
        > i {
        }
        &:hover {
          > i {
          }
        }
      }
    }
  }
}

.clampMe {
  position: relative;
  height: 4rem;
  overflow: hidden;
  font-weight: 600;
}

.clampMe:after {
  content: "";
  font-weight: 600;
  text-align: right;
  position: absolute;
  bottom: 0;
  right: 0;
  line-height: .5rem;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 80%);
  padding: .9rem;
  width: 30%;
}

/* Now add in code for the browsers that support -webkit-line-clamp and overwrite the non-supportive stuff Chrome */
@supports (-webkit-line-clamp: 2) {
  .clampMe {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .clampMe:after {
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 80%);
  }
}

.card-meeting {
  text-align: center;
}