.hero {
    display: flex;
    margin: auto auto 3rem;
    max-width: 1500px;
    position: relative;
  }
  
  .hero-card {
    top: -2.5rem;
    left: -5rem;
    max-width: 61%;
    padding: 4rem 6rem 6rem 4rem;
    position: absolute;
  }
  
  .hero-card:after {
    content: "";
    height: 80%;
    left: 0;
    position: absolute;
    top: 0;
    width: 95%;
    z-index: -1;
  }
  
  .hero-card-text {
    z-index: 2;
  }
  
  .hero-image {
    height: 70vh;
    margin: auto;
    max-width: 1440px;
    min-height: 750px;
    object-fit: cover;
    width: 100%;
    z-index: -2;
  }
  
  .hero-card h1,
  .hero-card p {
    margin-left: auto;
    max-width: 90%;
    text-align: left;
    z-index: 3;
  }
  
  .hero-card p {
    font-size: var(--step-2);
  }
  
  @media (max-width: 1024px) {
    .hero-image {
      min-height: 550px;
    }
  
    .hero-card {
      align-items: center;
      bottom: 0;
      display: flex;
      left: 0;
      padding: 1rem;
    }
  
    .hero-card,
    .hero-card h1,
    .hero-card p {
      max-width: 100%;
    }
  }
  