.course-card {
  display: block;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, .1);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 20px;
  position: relative;
  background-color: white; }
  .course-card .course-image {
    display: block;
    height: 150px;
    position: relative; }
    .course-card .course-image .discount {
      position: absolute;
      left: 0;
      bottom: 0;
      padding: 7px 20px;
      background-color: var(--primary-color);
      color: white;
      text-align: center;
      border-top-right-radius: 30px;
      font-weight: bold;
      font-size: 20px; }
  .course-card .course-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white; }
    .course-card .course-info .course-title {
      margin: 20px 0;
      font-size: 16px;
      text-align: center; }
    .course-card .course-info .logo {
      height: 40px;
      width: auto;
      display: block;
      margin: 0 auto 20px auto; }
  .course-card .bottom {
    width: 100%;
    position: relative; }
    .course-card .bottom > * {
      text-align: center;
      width: 100%; }
    .course-card .bottom .price {
      border-top: solid 1px lightgray;
      color: var(--primary-color);
      font-size: 22px;
      font-weight: bold;
      padding: 20px 0; }
      .course-card .bottom .price span {
        color: #a4cedf;
        position: relative; }
        .course-card .bottom .price span:after {
          content: '';
          position: absolute;
          left: 0;
          top: 45%;
          width: 100%;
          background-color: var(--primary-color);
          height: 3px; }
    .course-card .bottom .info {
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
      pointer-events: none;
      opacity: 0; }
      .course-card .bottom .info span {
        color: white;
        position: relative;
        z-index: 2;
        display: block; }
      .course-card .bottom .info .bg {
        background-color: var(--primary-color);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        transition: all 0.3s; }
  .course-card:hover .bottom .info {
    pointer-events: all;
    opacity: 1;
    height: 100%; }
    .course-card:hover .bottom .info .bg {
      top: 0; }
