article.card-teaching-module {
  margin-bottom: 2rem;
  padding: 1.6rem;

  /* title */
  .title-container {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    border-bottom: 1px solid #c4c4c4;
    transition: 0.2s ease;
  }

  a {
    padding-bottom: 0.8rem;
    display: block;

    span {
      font-size: 1.25rem;
      color: #262626;
      font-weight: 500;
      line-height: 1.75rem;
      display: block;
    }
  }

  /* icon arrow */
  svg {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
  }

  /* lecturer */
  .card-teaching-module__meta-lecturer.card-teaching-module__meta-item {
    flex-direction: column;

    a {
      padding: 0;
      text-decoration: none;
      font-weight: 500;
      color: #1f66da;
    }
  }

  /* total hours + credits */
  .card-teaching-module__meta-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid #c4c4c4;
    transition: 0.2s ease;

    padding: 0.8rem 0rem;

    &:last-child {
      border-bottom: none;
      padding: 0.8rem 0rem 0rem 0rem;
    }

    .card-teaching-module__stat-label {
      font-size: 0.875rem;
      text-transform: uppercase;
      transition: 0.2s ease;
      color: #737373;
    }
    .card-teaching-module__meta-value {
      font-size: 0.875rem;
      color: #000;
      font-weight: 500;
    }
  }
}

@media (min-width: 992px) {
  article.card-teaching-module:hover {
    background-color: #a3c3ff;
    .title-container {
      a {
        padding-left: 40px;
        span {
          color: #0025a3;
        }
      }
      svg {
        left: 30px;
        opacity: 1;
      }
    }
    .card-teaching-module__meta-item {
      border-color: #001f89;
    }
    .card-teaching-module__stat-label {
      color: #000000;
    }
    .card-teaching-module__meta-value {
      color: #001f89;
    }
  }
}

@media (min-width: 992px) {
  article.card-teaching-module {
    display: grid;
    grid-template-columns: 50% 50%;
    transition: 0.2s ease;

    .card-teaching-module__meta {
      display: grid;
      grid-template-columns: auto 120px 120px;
      gap: 0px;
    }

    .title-container {
      border: 0;
      padding: 0 1rem 0 0rem;
      display: flex;
      flex-direction: row-reverse;
      justify-content: flex-end;

      a {
        transition: 0.2s ease;
        padding: 0;
        font-size: 1.5rem;
        line-height: 1.5rem;
      }
      svg {
        opacity: 0;
        transition: 0.2s ease;
        margin-right: 1rem;
        position: absolute;
        left: 30px;
      }
    }

    .card-teaching-module__meta-item {
      flex-direction: column;
      border-bottom: 0px solid #c4c4c4;
      border-left: 1px solid #c4c4c4;
      justify-content: flex-start;
      padding: 0 1rem;
      &:last-child {
        padding: 0 0rem 0 1rem;
      }
    }
  }
}
