.news-masonry {
  width: 100%;
  max-width: 1800px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 0.5rem;
  margin: auto;
}

#news-container {
  min-height: 40vh;
}

.news-masonry .grid-column {
  height: 400px;
  position: relative;
  overflow: hidden;
}

.news-masonry .grid-column:hover .column-hover {
  opacity: 1;
}

.news-masonry .grid-column:hover .column-title {
  transform: translateY(100%);
}

.column-hover {
  width: 100%;
  height: 100%;
  background-color: rgba(200, 79, 25, 0.9);
  position: relative;
  z-index: 15;
  opacity: 0;
  transition: 300ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
  color: white;
  box-sizing: border-box;
}

.column-meta {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 16px;
  align-items: center;
}

.column-meta span {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.news-masonry .featuredcontent {
  grid-column: span 2;
}

.column-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.column-title {
  position: absolute;
  z-index: 10;
  width: 100%;
  height: auto;
  bottom: 0;
  left: 0;
  font-size: 18px;
  margin: 0;
  padding: 1rem;
  color: white;
  text-shadow: 0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1),
    0px 4px 8px rgb(0 0 0 / 0.1);
  background-color: rgba(29, 51, 65, 0.8);
  transition: 300ms;
  box-sizing: border-box;
}

.column-title-main {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.column-content {
  height: 100%;
  width: 100%;
}

.column-hover a {
  max-width: 180px;
  color: white;
  text-decoration: none;
  border: solid 2px white;
  border-radius: 5px;
  padding: 1rem;
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 18px;
  justify-content: space-between;
  transition: 300ms;
  margin-top: 1rem;
}

.column-hover a:hover {
  background-color: #1d3341;
  border-color: #1d3341;
}

.news-filter {
  margin-bottom: 18px;
}

.news-filter label {
  font-weight: bold;
}

#news-category {
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  display: inline-block;
  margin: 0 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  outline: none;
}

#news-category option {
  font-weight: 500;
}

#news-container.loading {
  opacity: 0.6;
}

.pagination-numbers {
  text-align: center;
  margin: 18px 0;
}
.pagination-numbers a {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}
.pagination-numbers a.active {
  background: #333;
  color: #fff;
  border-color: #333;
}
.pagination-numbers a.disabled {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 1199px) {
  .news-masonry {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .news-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  .featuredcontent {
    grid-column: unset !important;
  }
}

@media (max-width: 568px) {
  .news-masonry {
    grid-template-columns: 1fr;
  }
}
