.view-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3vw;
  padding: 0 var(--padding-section);
}

.news-events-wrapper {
  width: calc((100vw - 8vw - 2 * var(--padding-section)) / 3);
  border-radius: 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 50px;
}

.news-events-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow:hidden;
    position: relative;
    margin-bottom: 20px;
    
}

.news-events-image img {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.views-field-title a{
    font-size: clamp(28px, 2.51vw, 38px);
    line-height: clamp(32px, 2.77vw, 42px);
  color: var(--color-green);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-events-body {
overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
 font-size: 16px;
  line-height: 20px;
  color: var(--color-gray);
}

.views-field-field-news-type {
    display: none;
}

.views-field-view-node {
    align-self: flex-end;
    margin-bottom: 25px;
    padding: 15px 20px;
    border: 1px solid white;
    border-radius: 40px;
    margin-right: 25px;
}

.news-events-link a{
   display: flex;
   flex-direction:row;
   gap: 5px;
}

.filters {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 50px;
  padding: 0 var(--padding-section);
}

.no-previews-heading {
    display: none;
    padding: 0 var(--padding-section);
}

.filter {
  width: 300px;
  position: relative;
  z-index: 2;
}

.filter-header {
  padding: 10px 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-text-main);
  cursor: pointer;
}

.filter-title {
  font-size: 24px;
  line-height: 26px;
}

.arrow-down {
  width: 24px;
  height: 24px;
}

.filter-options {
  display: none;
  width: 100%;
  position: absolute;
  left: 0;
  top: 50px;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(100px);
  border-radius: 20px;
  overflow: scroll;
  max-height: 40vh;
  z-index: 3;
}

.filter-option {
  font-size: 24px;
  line-height: 24px;
  padding: 20px 20px;
  cursor: pointer;
}

.clear-filters-button {
  padding: 23px;
  border: 1px solid white;
  border-radius: 45px;
  color: white;
}

@media only screen and (max-width: 1024px) {
  .view-news .view-content {
   justify-content: space-between;
  }
  .filters {
    gap: 30px;
  }
  .filter-header {
    padding: 8px 15px;
  }
  .filter-title {
    font-size: 18px;
    line-height: 20px;
  }
  .arrow-down {
    width: 18px;
    height: 18px;
  }
   .news-events-wrapper {
      width: calc((100vw - 3vw - 2 * var(--padding-section)) / 2);
    }
}

@media only screen and (max-width: 769px) {
  .filters {
    flex-wrap: wrap;
  }
  .filter {
      width: 60%;
  }
  .news-events-wrapper {
    width: calc(100vw - 2 * var(--padding-section));
  }
}
