/* Learning (modules/learning): the courses. For now greyed-out cards for the courses that are coming. */

.courses {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
}

@media (min-width: 576px) {
  .courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .courses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.course {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
}

/* The picture: a grey box with the course's icon until the course has its own picture. */
.course__picture {
  display: grid;
  place-items: center;
  aspect-ratio: var(--account-card-ratio);
  font-size: var(--fs-h3);
  color: var(--c-text-muted);
  background-color: var(--c-surface);
}

.course__body {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
}

.course__tag {
  justify-self: start;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.course__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: var(--lh-heading);
  color: var(--c-heading);
}

.course__text {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}

/* Coming soon: the title greyed too, so the card reads as not open yet. */
.course--soon .course__title {
  color: var(--c-text-muted);
}
