.hero-container .hero-wrapper {
  max-width: 100%;
  padding: 0;
  height: auto;
  width: 100%;
}

.hero {
  position: relative;
  background-color: rgb(0 66 167 / 60%);
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;

}

.hero h1 {
  max-width: 1224px;
  margin: 0 auto;
  padding: 4rem 24px;
  color: var(--text-color-dark);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;

}

.hero picture {
  position: absolute;
  z-index: -1;
  inset: 0;
  object-fit: cover;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

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

.hero > div:nth-child(2){
  flex:1
}

@media (width >= 900px) {
  .hero {
    padding: 0;
  }
}

@media (width <= 900px) {
  .hero-container .hero-wrapper {
    max-width: 100%;
    padding: 0;
    width: 100%;
    min-height: 180px;
}

  .hero {
    position: relative;
    background-color: rgb(0 66 167 / 60%);
    width: 100%;
    padding: 0;
    min-height: 180px;
  }

  .hero h1 {
    color: var(--text-color-dark);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
    padding: 2.5rem 1.5rem;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .hero picture {
    position: absolute;
    z-index: -1;
    inset: 0;
    object-fit: cover;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
  }
}
