@import url("../tag/style.css");

.c-card-courses {
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--primary-detail);
  width: auto;
  max-width: 282px;
  overflow: hidden;
  position: relative;
}

.c-card-courses__tag {
  position: absolute;
  top: 18px;
  left: 16px;
}

.c-card-courses__img {
  border-radius: 8px 8px 0 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.c-card-courses__figure {
  height: 228px;
  width: 100%;
  transition: height 0.3s var(--move);
  will-change: height;
}

.c-card-courses__title {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 100%;
}

.c-card-courses__content {
  background: var(--bg-radial-gradient-primary);
  padding: 24px;
  height: 175px;
  display: grid;
  gap: 16px;
}

.c-card-courses__action {
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.c-card-courses__action svg {
  transform: rotate(90deg);
  margin-left: 8px;
}

@media screen and (min-width: 1026px) {
  .c-card-courses:hover .c-card-courses__figure {
    height: 184px;
  }
}

@media screen and (max-width: 1026px) {
  .c-card-courses .c-card-courses__figure {
    height: 184px;
  }
}
