.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.hero-card {
    overflow: clip;
    position: relative;
    height: 385px;
    width: 100%;
    transition: all ease-in-out 0.4s;
    padding: 37px;
    padding-top: 48px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
}

.hero-card .card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.hero-card .content {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 8;
  max-width: 400px;
  font-size: 26px;
  line-height: 31px;
  font-weight: 700;
  transition: all ease-in-out: 0.3s;
}

.hero-card .link-arrow {
  margin-top: auto;
  width: 41px;
  height: 32px;
}

.hero-card .link-arrow svg {
  width: 41px;
  height: 32px;
}

.hero-card .image-container {
  display: none;
  position: absolute;
  z-index: 4;
  bottom: 0;
  right: 0;
  width: 399px;
  height: 446px;
  opacity: 0;
  transition: opacity ease-in-out 0.4s;
}

.hero-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media only screen and (min-width: 578px) {
  .hero-cards {
      flex-direction: row;
      gap: 36px;
  }
  
  .hero-card {
      height: 496px;
      width: 50%;
      padding: 60px;
      padding-top: 72px;
  }
  
  .hero-card .content {
      font-size: 28px;
      line-height: 39px;
  }
  
  .hero-card .link-arrow,
  .hero-card .link-arrow svg {
    width: 55px;
    height: 45px;
  }
}

@media only screen and (min-width: 1080px) {
  .hero-cards:has(.hero-card:hover) .hero-card:not(.hero-card:hover) {
    background-color: white !important;
    
  }

  .hero-cards:has(.hero-card:hover) .hero-card:not(.hero-card:hover) .content {
    text-decoration: none;
    color: #414042 !important;
    opacity: 0.5;
  }

  .hero-cards:has(.hero-card:hover) .hero-card:not(.hero-card:hover) svg {
    display: none;
  }
  
  .hero-card:hover {
     width: 65%;
  }

  .hero-cards:has(.hero-card:hover) .hero-card:not(.hero-card:hover) {
    width: 35%;
  }
  
  .hero-card .image-container {
    display: block;
  }
  
  .hero-card:hover .image-container {
    opacity: 1;
  }
  
  .hero-card:hover svg {
      transform: rotate(0deg);
  }
  
  .hero-card:hover .content {
    text-decoration: underline;
  }
  
  .hero-card svg {
      transform: rotate(-45deg);
      transition: all ease-in-out 0.4s;
  }
}