@import url("../foundations/colors.css");
@import url("../foundations/typography.css");

.card {
  width: 31%;
  height: auto;
  float: left;
  border-radius: 4px;
  border: 1px solid var(--soft-grey);
  overflow: hidden;
  position: relative;
  top: 0;
  transition: all 0.25s;
  cursor: pointer;
  background-color: white;
}
.card:hover {
  top: -0.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid white;
}
.card a {
  text-decoration: none;
}
.card .card-header {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: start;
  align-items: end;
}
.card .card-header .card-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  left: 0;
}
.card .card-header .external-link {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
}
.card .title {
  font-weight: 600;
  position: relative;
  padding: 1.5rem;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
}
.card p {
  padding: 1.5rem;
  font-size: 16px;
  font-weight: 300;
}
@media (max-width: 1024px) {
  .card {
    width: 45%;
  }
}
@media (max-width: 768px) {
  .card {
    width: 100%;
  }
}
