.textWithButtons {
  width: 100%;
  margin: auto;
  box-sizing: border-box;
  padding-bottom: 30px;
}

.textWithButtons_Block {
  display: grid;
  grid-template-rows: auto;
  /* Two columns by default */
  gap: 35px;
  /* Add gap between items */
  width: 95%;
  margin: auto;
  box-sizing: border-box;
  max-width: 1280px;
  color: #000000;
}

.textWithButtons_Column {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Arrange children in a column */
  justify-content: center;
  /* Center children vertically */
  align-items: flex-start;
  /* Align children to the left horizontally */
  height: 100%;
}

.textWithButtons_Column>h2 {
  margin: 0;
  color: var(--Svart);
  font-family: "Inter";
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.textWithButtons_Column p {
  color: var(--Svart);
  font-family: "Inter";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 0;
}

.textWithButtons_Buttons {
  display: inline-flex;
  align-items: flex-start;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 20px;
  margin-top: 30px;
}

.textWithButtons_Buttons button {
  padding: 16px 42px;
  justify-content: center;
  align-items: center;
  border-radius: 26px;
  line-height: normal;
  border: none;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
  /* 88.889% */
  letter-spacing: 0.5px;
}

.textWithButtons_Buttons .first_button {
  background: var(--Protekta-gray);
  color: var(--Vit);
}

.textWithButtons_Buttons .first_button:hover {
  background: #394357;
}

.textWithButtons_Buttons .second_button {
  background: transparent;
  border: solid var(--Protekta-gray) 1px;
  color: var(--Svart);
}

.textWithButtons_Buttons .second_button:hover {
  background: #eaeff8;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .textWithButtons_Block {
    gap: 20px;
    /* Reduce gap for medium screens */
  }

  .textWithButtons_Column>h2 {
    font-size: 36px;
    /* Adjust font size */
  }

  .textWithButtons_Buttons {
    justify-content: start;
  }

  .textWithButtons_Buttons button:first-child {
    margin-left: 0;
  }
}

@media screen and (max-width: 1024px) {
  .textWithButtons_Block {
    grid-template-columns: 1fr;
    /* Stack columns on smaller screens */
    gap: 50px;
  }

  .textWithButtons_Column--left,
  .textWithButtons_Column--right {
    grid-area: unset;
  }

  .textWithButtons_image {
    order: -1;
    /* Ensure images are on top */
  }

  .textWithButtons_Column>h2 {
    font-size: 36px;
  }

  .textWithButtons_Column p {
    font-size: 16px;
  }

  .textWithButtons_Column h3 {
    font-size: 20px;
  }

  .textWithButtons_Column button {
    font-size: 16px;

  }

  .textWithButtons_image img {
    max-height: 350px;
  }
}

@media screen and (max-width: 768px) {
  .textWithButtons_Block {
    gap: 30px;
    max-width: 90%;
  }

  .textWithButtons_Column>h2 {
    font-size: 28px;
  }

  .textWithButtons_Column p {
    font-size: 18px;
  }

  .textWithButtons_Column h3 {
    font-size: 20px;
  }

  .textWithButtons_Column button {
    font-size: 18px;
  }

  .textWithButtons_image img {
    max-height: 300px;
  }
}

@media screen and (max-width: 480px) {
  .textWithButtons {
    padding: 15px;
    padding-top: 50px;
  }

  .textWithButtons_Column>h2 {
    font-size: 24px;
  }

  .textWithButtons_Column p {
    font-size: 12px;
  }

  .textWithButtons_Column h3 {
    font-size: 16px;
  }

  .textWithButtons_Column button {
    font-size: 12px;
    padding: 4px 10px;
  }

  .textWithButtons_image img {
    max-height: 250px;
  }
}