* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


.main-container {
  padding: 0;
}

/* HEADING */

.heading {
  text-align: center;
}

.heading__title {
  font-weight: 600;
}

.heading__credits {
  margin: 10px 0px;
  color: #12010D;
  font-size: 25px;
  transition: all 0.5s;
}

.heading__link {
  text-decoration: none;
}

.heading__credits .heading__link {
  color: inherit;
}

/* CARDS */

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;0
  color: #12010D;
  padding: 0;
  margin: 0;
}

.card {
  position: relative;
  margin: 0 0 20px 0;
  padding: 20px 20px 20px 20px;
  width: 416px;
  height: 270px;
  min-height: 100px;
  display: grid;
  grid-template-rows: 20px 0 1fr 0;
  transition: all 0.2s;
  background: #fff;
  color: #12010D;
  border-radius: 24px;
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card:hover {
  background: linear-gradient(270deg, #BA258A 13.74%, #8B258A 63.58%);
  box-shadow: 0px 10px 24px rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  transform: scale(1.03);
  color: #fff !important;
}

.card__exit,
.card__icon {
  position: relative;
  text-decoration: none;
  color: #12010D;
}

a.card__link:link, a.card__link:visited {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 37px;
  height: 37px;
  border: 1px solid #eee;
  border-radius: 50%;
  text-decoration: none;
  background-color: transparent;
  background-image: url(../images/arrow_right_blue.svg);
  background-repeat: no-repeat;
  background-size: 15px 12.5px;
  background-position: center;
}

a.card__link:hover, a.card__link:active,
.card:hover a.card__link:link, .card:hover a.card__link:visited  {
  border: 1px solid #fff;
  background-image: url(../images/arrow_right_white.svg);
}

.card__exit {
  grid-row: 1/2;
  justify-self: end;
}

.card__icon {
  grid-row: 1/3;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #fff;
  width: 56px;
  height: 56px;
  background-color: transparent;
  background-image: url(../images/card_icon.svg);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 8px;
  text-align: center;
  margin: 5px 0 0 5px;
}

.card:hover .card__icon {
  background-image: url(../images/card_icon_over.svg);
  color: #fff;
}

.card__icon.round {
  padding: 16px 8px 8px 8px;
  border-radius: 50%;
  background: var(--gradient-purple, linear-gradient(270deg, #BA258A 0%, #8B258A 59.90%));
}

h2.card__title {
  position: absolute;
  top: 95px;
  left: 25px;
  grid-row: 3/4;
  font-weight: 400;
  color: #12010D;
  padding: 0;
  margin: 0;
  background-color: transparent;
  width: calc(100% - 40px);
  height: 40px;
  z-index: 1;
}

.card:hover h2.card__title { color: #fff; }

.card__apply {
  position: absolute;
  top: -65px;
  left: 25px;
  margin: 0;
  padding: 0;
  grid-row: 4/5;
  width: calc(100% - 40px);
  font-size: 17px;
  line-height: 1.4;
  align-self: center;
  z-index: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cards {
    justify-content: center;
  }
}
