.newsBlock {
  width: 100%;
  margin: auto;
  padding: 20px; /* Original padding */
  padding-bottom: 120px;
  box-sizing: border-box;
  background: var(--White);
}

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

.newsBlock_Block > h2 {
  color: var(--Black);
  text-align: center;
  font-family: "Work Sans", sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin: 0;
  margin-bottom: 50px;
}

.newsBlock_Column {
  text-align: start;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Creates three equal columns */
  grid-gap: 40px; /* Space between columns and rows */
  justify-content: center;
  align-items: stretch;
}

.category-filter {
  margin-top: 80px;
  margin-bottom: 50px;
  text-align: end;
}

.category-filter button {
  color: var(--Blue, #003c4b);
  font-family: "Work Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  border: none;
  background-color: transparent;
  margin-left: 20px;
  cursor: pointer;
}

.category-filter button:hover {
  font-weight: 600;
}

.news-item img {
  width: 100%; /* Make the image fill the column width */
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: top;
}

.news-item .postDate {
  color: var(--Lime-Green);
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin: 0;
  margin-top: 20px;
}

.news-item .postTitle {
  color: var(--Black);
  font-family: "Work Sans", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin: 0;
  margin-top: 10px;
}

.news-item p {
  color: var(--Black);
  font-family: "Work Sans", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
  margin-top: 20px;
}

.news-item a {
  color: var(--Black);
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  text-transform: uppercase;
  margin: 0;
  margin-top: 30px;
  position: relative; /* Ensure it's positioned */
  z-index: 10; /* Bring the link on top of any other overlapping elements */
}

.news-item a svg {
  margin-left: 10px;
}

.pagination {
  text-align: center;
  width: 100%;
  margin-bottom: 120px;
  grid-column: 1 / -1; /* Make pagination span across all columns */
}

.pagination a {
  margin-left: 5px;
  margin-right: 5px;
  color: var(--Blue, #003c4b);
  font-family: "Work Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  display: inline-block;
}

/* Class to indicate the active page */
.pagination a.active {
  color: var(--White);
  background-color: var(--Blue);
  border-radius: 1000px;
  padding: 2px;
  padding-left: 7px;
  padding-right: 7px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .newsBlock_Column {
    grid-template-columns: 1fr 1fr; /* Two columns for medium screens */
    grid-gap: 30px; /* Reduce gap for medium screens */
  }
}

@media (max-width: 768px) {
  .category-filter {
    text-align: center; /* Center align the filter on small screens */
    margin-bottom: 30px; /* Adjust margin */
  }

  .newsBlock_Column {
    grid-template-columns: 1fr; /* Single column for small screens */
    grid-gap: 20px; /* Further reduce gap */
    row-gap: 30px;
  }

  .newsBlock_Block > h2 {
    font-size: 32px; /* Adjust font size */
  }
}

@media (max-width: 480px) {
  .newsBlock {
    padding: 10px; /* Reduce padding for extra small screens */
    padding-top: 0px; /* Adjust padding top */
    padding-bottom: 20px; /* Adjust padding bottom */
  }

  .newsBlock_Block > h2 {
    font-size: 28px; /* Further adjust font size */
    margin-bottom: 30px; /* Adjust margin bottom */
  }

  .news-item .postTitle {
    font-size: 20px; /* Adjust title font size */
  }

  .news-item p {
    font-size: 14px; /* Adjust paragraph font size */
  }

  .pagination {
    margin-bottom: 80px; /* Adjust pagination margin */
    grid-column: 1 / -1; /* Ensure pagination spans all columns on small screens */
  }
}
