/* Standalone variables
========================================================================== */
/*
==========================================================================
    Mixins - typography - body
========================================================================== */
.c-course-simple-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  overflow: hidden;
  transition: color 0.3s ease;
  cursor: pointer;
  border-radius: 0.25rem;
}
@media (min-width: 1025px) {
  .c-course-simple-card {
    height: 16.75rem;
    padding: 6.625rem 2rem;
  }
}

.c-course-simple-card__link {
  /* Link is now hidden and used only for JavaScript reference */
  position: absolute;
  top: -9999px;
  left: -9999px;
  z-index: -1;
}

@media (min-width: 1025px) {
  .c-course-simple-card:hover .c-course-simple-card__heading {
    text-decoration: underline;
  }
}

.c-course-simple-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  height: 100%;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.c-course-simple-card__label {
  height: 1.5rem;
  font-size: 1rem;
}

.c-course-simple-card__heading {
  height: 6.75rem;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: center;
}
@media (min-width: 1025px) {
  .c-course-simple-card__heading {
    height: 6rem;
  }
}

.c-course-simple-card__action {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  justify-content: center;
  align-items: stretch;
  position: relative;
  z-index: 20;
}
@media (min-width: 1025px) {
  .c-course-simple-card__action {
    align-items: center;
    gap: 1.25rem;
  }
}
.c-course-simple-card__action a {
  position: relative;
  z-index: 21;
  cursor: pointer;
}

/* Hover colors with animated background */
.c-course-simple-card--hover-bg-blue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CAF5FF;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1;
}
@media (min-width: 1025px) {
  .c-course-simple-card--hover-bg-blue:hover {
    color: #204D51;
  }
  .c-course-simple-card--hover-bg-blue:hover::before {
    transform: translateY(0%);
    z-index: 1;
  }
  .c-course-simple-card--hover-bg-blue:hover .c-button--transparent {
    border-color: #204D51;
    color: #204D51;
  }
  .c-course-simple-card--hover-bg-blue:hover .c-button--tertiary {
    background-color: #204D51;
    color: #CAF5FF;
  }
}

.c-course-simple-card--hover-bg-sky::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #AECFFF;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1;
}
@media (min-width: 1025px) {
  .c-course-simple-card--hover-bg-sky:hover {
    color: #204D51;
  }
  .c-course-simple-card--hover-bg-sky:hover::before {
    transform: translateY(0%);
    z-index: 1;
  }
  .c-course-simple-card--hover-bg-sky:hover .c-button--transparent {
    border-color: #204D51;
    color: #204D51;
  }
  .c-course-simple-card--hover-bg-sky:hover .c-button--tertiary {
    background-color: #204D51;
    color: #AECFFF;
  }
}

.c-course-simple-card--hover-bg-violet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #C9C5FF;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1;
}
@media (min-width: 1025px) {
  .c-course-simple-card--hover-bg-violet:hover {
    color: #204D51;
  }
  .c-course-simple-card--hover-bg-violet:hover::before {
    transform: translateY(0%);
    z-index: 1;
  }
  .c-course-simple-card--hover-bg-violet:hover .c-button--transparent {
    border-color: #204D51;
    color: #204D51;
  }
  .c-course-simple-card--hover-bg-violet:hover .c-button--tertiary {
    background-color: #204D51;
    color: #C9C5FF;
  }
}

.c-course-simple-card--hover-bg-pink::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FFC9FF;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1;
}
@media (min-width: 1025px) {
  .c-course-simple-card--hover-bg-pink:hover {
    color: #204D51;
  }
  .c-course-simple-card--hover-bg-pink:hover::before {
    transform: translateY(0%);
    z-index: 1;
  }
  .c-course-simple-card--hover-bg-pink:hover .c-button--transparent {
    border-color: #204D51;
    color: #204D51;
  }
  .c-course-simple-card--hover-bg-pink:hover .c-button--tertiary {
    background-color: #204D51;
    color: #FFC9FF;
  }
}

.c-course-simple-card--hover-bg-orange::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FFD7A6;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1;
}
@media (min-width: 1025px) {
  .c-course-simple-card--hover-bg-orange:hover {
    color: #204D51;
  }
  .c-course-simple-card--hover-bg-orange:hover::before {
    transform: translateY(0%);
    z-index: 1;
  }
  .c-course-simple-card--hover-bg-orange:hover .c-button--transparent {
    border-color: #204D51;
    color: #204D51;
  }
  .c-course-simple-card--hover-bg-orange:hover .c-button--tertiary {
    background-color: #204D51;
    color: #FFE2D2;
  }
}

.c-course-simple-card--hover-bg-peach::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FFE2D2;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1;
}
@media (min-width: 1025px) {
  .c-course-simple-card--hover-bg-peach:hover {
    color: #204D51;
  }
  .c-course-simple-card--hover-bg-peach:hover::before {
    transform: translateY(0%);
    z-index: 1;
  }
  .c-course-simple-card--hover-bg-peach:hover .c-button--transparent {
    border-color: #204D51;
    color: #204D51;
  }
  .c-course-simple-card--hover-bg-peach:hover .c-button--tertiary {
    background-color: #204D51;
    color: #FFE2D2;
  }
}

.c-course-simple-card .c-button--transparent {
  border-color: #B4F6D0;
  color: #B4F6D0;
}
