.card-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  column-gap: 75px;
  row-gap: 72px;
  margin-top: 50px;
}

.card-grid .card {
  display: block;
  flex: 0 0 350px;
  background-color: white;
  border-radius: 35px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 8px 24px rgba(74, 68, 89, 0.5);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.card-grid .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 58, 241, 0);
  transition: background-color 0.3s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: 35px;
}

.card-grid .card:hover::before {
  background-color: rgba(0, 58, 241, 0.8);
}

.card-grid .card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-navigation {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 113px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  background-color: #ffffff;
  color: #625b71;
  font-size: 24px;
  font-weight: 600;
}

.card-navigation span {
  flex: 0.7;
  text-align: center;
}

.card-navigation img {
  width: 33px;
  height: 45px;
  flex-shrink: 0;
}

.card-navigation img:first-child {
  z-index: 2;
}

.card-navigation .arrow-left-icon {
  width: 26px;
  height: 26px;
}

.card-grid .card:hover .card-navigation img:first-child {
  position: absolute;
  left: 50%;
  bottom: 145px;
  transform: translateX(-50%);
  width: 80px;
  height: 82px;
  z-index: 10;
  filter: brightness(0) invert(1);
}

.card-grid .card:hover .card-navigation::before {
  content: "";
  width: 33px;
  height: 45px;
  flex-shrink: 0;
}

.card-grid .card:hover .card-navigation span {
  color: #ffffff;
  z-index: 3;
  position: relative;
}

.card-grid .card:hover .card-navigation .arrow-left-icon {
  filter: brightness(0) invert(1);
  z-index: 3;
  position: relative;
}

.card-grid .reffer-link {
  position: relative;
  align-self: flex-end;
  margin-left: auto;
}
