.heroBlock {
  position: relative;
  width: 100%;
  height: 85vh; /* Full height of viewport */
  max-height: 790px;
  overflow: hidden; /* Ensure nothing overflows */
}

/* Background Div */
.hero-background {
  position: absolute; /* Only need absolute here, remove the redundant 'relative' */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover; /* Ensure the background covers the entire block */
  background-position: center top; /* Center the background image */
  background-repeat: no-repeat;
  z-index: 1; /* Keep it behind the header */
}

/* SVG inside the background div */
#movingSvg {
  position: absolute; /* Ensure it is free to move */
  top: 0;
  right: 0;
  max-height: 85vh;
  z-index: 4; /* Ensure it is above both header and sideMenu */
  pointer-events: none;
}

.heroBlock_Block {
  height: 100%;
  position: relative; /* Ensure the content stays in front */
}

.heroBlock_Column {
  position: relative;
  width: 95%;
  margin: auto;
  max-width: 1280px;
  height: calc(100% - 150px);
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding-top: 150px;
}
.heroBlock_Column {
  z-index: 5;
}

.heroBlock_Column h1 {
  margin: 0;
  margin-bottom: 20px;
  width: 100%;
  color: var(--Hittarp-vit);
  font-family: Anton;
  font-size: 90px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  z-index: 1;
}

.heroBlock_Column h2 {
  display: inline-block;
  margin: 0;
  width: auto;
  max-width: 70%;
  color: var(--Hittarp-vit);
  font-family: Anton;
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: 44px; /* 122.222% */
  text-transform: uppercase;
  border-bottom: 2px solid var(--Hittarp-red1);
  padding-right: 10px;
}

.heroBlock_Column .hero_buttons {
  z-index: 1;
}

.heroBlock_Column h1.header_length {
  max-width: 1280px;
}

.hero_buttons button {
  display: inline-flex;
  padding: 10px 24px;
  justify-content: center;
  align-items: center;
  border-radius: 2px;
  font-family: "Glacial indifference";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  border: 1px solid var(--Hittarp-vit);
  margin-top: 30px;
  text-transform: uppercase;  
}

.hero_buttons .hero_first_button {
  background: var(--Hittarp-red1);
  color: var(--Hittarp-vit);
  margin-right: 30px;
}

.hero_buttons .hero_second_button {
  background: var(--Hittarp-svart);
  color: var(--Hittarp-vit);
}

@media (max-width: 768px) {
  .heroBlock {
    max-height: 500px;
  }
  .heroBlock_Column {
    padding-top: 120px;
  }

  .heroBlock_Column h1 {
    font-size: 34px;
  }
  .heroBlock_Column p {
    max-width: none;
  }
}
