.moreNewsBlock {
  width: 100%;
  margin: auto;
  padding: 30px; /* Original padding */
  box-sizing: border-box;
  position: relative;
  background-color: var(--Skog);
}

.moreNewsBlock_Block {
  width: 95%;
  margin: auto;
  box-sizing: border-box;
  max-width: 1010px;
  color: #000000;
  text-align: center;
}

.moreNewsBlock_header {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 30px;
}

.moreNewsBlock_header > h2 {
  color: var(--Vit);
  font-family: "Raleway", sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin: 0;
}

.moreNewsBlock_Column {
  max-width: 1010px;
  margin: auto;
  text-align: start;
  position: relative;
  display: grid;
  grid-template-columns: calc(100% / 3 - 25px) calc(100% / 3 - 25px) calc(
      100% / 3 - 25px
    );
  grid-gap: 40px; /* Space between columns and rows */
}

.moreNewsBlock .news-item img {
  width: 100%; /* Make the image fill the column width */
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 5px;
}

.moreNewsBlock .news-item .postTitle {
  color: var(--Vit);
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin: 0;
  margin-top: 20px;
  margin-bottom: 20px;
}

.moreNewsBlock .news-item a {
  color: var(--Vit);
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration: underline;
  text-decoration-color: var(--Hjortron);
  margin: 0;
  margin-top: 20px;
}

.moreNewsBlock .moreNewsBlock_Block button {
  color: var(--Svart, #000);
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  line-height: normal;
  text-decoration: underline;
  text-decoration-color: var(--Hjortron);
  background-color: transparent;
  border: none;
  cursor: pointer;
}

/* Adjust for tablets */
@media (max-width: 1024px) {
  .moreNewsBlock {
    padding: 20px; /* Reduce padding for tablets */
  }

  .moreNewsBlock_Block {
    width: 100%; /* Expand to full width */
    padding: 0 20px; /* Add horizontal padding for better fit */
  }

  .moreNewsBlock_header {
    flex-direction: column; /* Stack header elements vertically */
    align-items: flex-start; /* Align elements to the left */
    gap: 15px; /* Add spacing between elements */
    margin-bottom: 20px; /* Adjust bottom margin */
  }

  .moreNewsBlock_header > h2 {
    font-size: 36px; /* Reduce font size for the header */
  }

  .moreNewsBlock_Column {
    grid-template-columns: repeat(
      2,
      calc(50% - 20px)
    ); /* Switch to two columns */
    grid-gap: 30px; /* Reduce gap for compact layout */
  }

  .moreNewsBlock .news-item .postTitle {
    font-size: 14px; /* Adjust font size for title */
    margin-top: 15px; /* Adjust spacing */
    margin-bottom: 15px;
  }

  .moreNewsBlock .news-item a {
    font-size: 14px; /* Adjust font size for links */
    margin-top: 10px; /* Adjust spacing */
  }
}

/* Adjust for mobile screens */
@media (max-width: 768px) {
  .moreNewsBlock {
    padding: 15px; /* Further reduce padding for mobile */
  }

  .moreNewsBlock_Block {
    padding: 0 10px; /* Add smaller horizontal padding */
  }

  .moreNewsBlock_header {
    align-items: center; /* Center-align elements */
    gap: 10px; /* Reduce spacing between elements */
  }

  .moreNewsBlock_header > h2 {
    font-size: 28px; /* Further reduce font size */
  }

  .moreNewsBlock_Column {
    grid-template-columns: 1fr; /* Switch to single column layout */
    grid-gap: 20px; /* Reduce gap further */
  }

  .moreNewsBlock .news-item img {
    aspect-ratio: auto; /* Remove fixed aspect ratio for flexibility */
    height: auto; /* Ensure images fit the container */
  }

  .moreNewsBlock .news-item .postTitle {
    font-size: 12px; /* Reduce font size further */
    margin-top: 10px; /* Adjust spacing */
    margin-bottom: 10px;
  }

  .moreNewsBlock .news-item a {
    font-size: 12px; /* Reduce font size for links */
    margin-top: 5px; /* Adjust spacing */
  }

  .moreNewsBlock .moreNewsBlock_Block button {
    font-size: 14px; /* Adjust font size for button text */
  }
}
