.category-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.category-posts-grid__item {
  width: calc(100% / 3 - 20px);
  background: #003f83;
  border: 1px solid #003f83;
  transition: all ease 0.5s;
  position: relative;
}
.category-posts-grid__content {
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.category-posts-grid__title {
  color: #fff !important;
  font-size: 25px !important;
  font-weight: 700;
  font-family: "Be Vietnam Pro", Sans-serif;
  text-decoration: none !important;
  line-height: 140%;
  transition: all ease 0.5s;
  margin: 0;
}
.category-posts-grid__excerpt {
  color: #fff;
  font-size: 20px;
  font-weight: 200;
  font-family: "Be Vietnam Pro", Sans-serif;
  transition: all ease 0.5s;
  line-height: 140%;
}
.category-posts-grid__top {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.category-posts-grid__top svg path {
  transition: all ease 0.5s;
}
.category-posts-grid__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.category-posts-grid__item:hover {
  background: #fff;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.category-posts-grid__item:hover .category-posts-grid__title,
.category-posts-grid__item:hover .category-posts-grid__excerpt {
  color: #003f83 !important;
}
.category-posts-grid__item:hover .category-posts-grid__top svg path {
  fill: #003f83;
}

@media screen and (max-width: 1024px) {
  .category-posts-grid__title {
    font-size: 19px;
  }
  .category-posts-grid__excerpt {
    font-size: 17px;
  }
}

@media screen and (max-width: 900px) {
  .category-posts-grid__item {
    width: calc(50% - 15px);
  }
}

@media screen and (max-width: 600px) {
  .category-posts-grid__title {
    font-size: 17px !important;
  }
  .category-posts-grid {
    gap: 20px;
  }
  .category-posts-grid__item {
    width: calc(50% - 10px);
  }
  .category-posts-grid__excerpt {
    font-size: 15px;
  }
  .category-posts-grid__content {
    gap: 10px;
  }
}

@media screen and (max-width: 500px) {
  .category-posts-grid__item {
    width: 100%;
  }
}
