/* Main card component */
.popular-courses-card {
  display: flex;
  flex-direction: column;
  min-height: 251px;
  /* height: fit-content; */
  padding: 24px;
  border-radius: 0px 20px;
  position: relative;
  background: var(--white);
  overflow: hidden;
  z-index: 1;
  outline: 1px solid transparent;
  transition: outline 0.5s ease;
}
.popular-courses-card:hover {
  cursor: pointer;
}
.popular-courses-card::after {
  content: "";
  display: block;
  background-image: url(../../icons/course-card.svg);
  background-position: center;
  background-repeat: no-repeat;
  width: 150px;
  height: 106px;
  position: absolute;
  top: -10px;
  right: -36px;
  z-index: -1;
}
.popular-courses-card .flag {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.popular-courses-card .flag img {
  height: 14px;
  width: 19px;
}
.popular-courses-card .caption-2 {
  color: var(--dark-blue-1);
}
.popular-courses-card .h6 {
  position: relative;
  font-weight: 700 !important;
  margin-bottom: 32px;
}
.popular-courses-card .h6::before {
  content: "";
  display: block;
  height: 1px;
  width: 150px;
  background-color: var(--blue-1);
  pointer-events: none;
  position: absolute;
  bottom: -16px;
}
.popular-courses-card .salary-from {
  margin-bottom: 8px;
}

.popular-courses-card:hover {
  outline: 1px solid var(--blue-1);
}
.popular-courses-card .body-3 {
  color: var(--grey-1);
}
.popular-courses-card .caption-3 {
  padding-bottom: 16px;
  font-weight: 100 !important;
}
.check {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.popular-courses-card .responsibilities {
  margin: 16px 0 8px;
}
/* Button component inside card */
.btn-component.course {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  height: 45px;
  border: 1px solid var(--blue-1);
  border-radius: 8px;
  text-transform: uppercase;
  color: var(--dark-blue-1);
  background-color: inherit;
  width: 100%;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.popular-courses-cont .btn-component.course {
  padding: 8px 16px;
}

.btn-component.course::after {
  content: "";
  display: block;
  background-image: url(../../icons/Arrow.svg);
  background-position: center;
  background-repeat: no-repeat;
  color: var(--dark-blue-1);
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease, background-image 0.3s ease;
}

.btn-component.course:hover {
  color: var(--white);
  background-color: var(--blue-1);
  opacity: 1;
}

.btn-component.course:hover::after {
  background-image: url(../../icons/Arrow-white.svg);
  transform: rotate(45deg);
}
.btn-component.course.disabled {
  user-select: none;
  pointer-events: none;
  background: var(--grey-2);
  border-color: var(--grey-2);
  color: var(--grey-1);
  cursor: not-allowed;
}
.btn-component.course.disabled::after {
    content: "";
    display: block;
    background-image: url(../../icons/Arrow-grey.svg);
    background-position: center;
    background-repeat: no-repeat;
    width: 22px;
    height: 22px;
}

.btn-component.course:disabled {
  color: var(--grey-1);
  background-color: var(--grey-2);
  border: none;
}
.btn-component.course:disabled::after {
  color: var(--grey-1);
  background-color: var(--grey-2);
  transform: none;
}