/*=====================*/
/* Case Studies Header */
/*=====================*/
.cs-header {
  background: linear-gradient(
      0deg,
      rgba(66, 102, 154, 0.8),
      rgba(66, 102, 154, 0.8)
    ),
    url(/wp-content/uploads/2023/05/homepage-digital-clock.jpg) no-repeat;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: white;
  text-transform: uppercase;
  padding: 200px 0;
}

.cs-header .title {
  font-weight: 400;
}

/* All Posts Wrapper/Content */

.all-posts-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
  position: relative;
  top: -100px;
}

.all-post-item {
  position: relative;
  width: 100%;
  /* height: 100%; */
  flex: 0 0 calc(100% / 3 - 10px);
  display: flex;
}

.all-post-item a::before {
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  background: #0a394672;
  transition: all 0.5s ease;
}

.all-post-item a:hover::before {
  content: "";
  opacity: 0;
}

.all-post-item a p {
  opacity: 1;
  transition: all 0.5s ease;
}

.all-post-item a:hover p {
  opacity: 0;
}

.all-post-bottom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 500;
  width: calc(100% - 40px);
}

.all-post-bottom span {
    display: block;
}

.all-post-bottom p {
  font-size: 28px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 300;
  line-height: 32px;
}

#blog-fold2 {
  position: relative;
  padding: 10px 0;
}

.all-post-item a {
  width: 100%;
  display: flex;
}

.all-post-item a picture {
    flex: 1 0 100%;
}

.wp-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}