.blog_cards {
}

.blog_cards .blog-section {
  background: none;
  padding-top: 30px;
}
.blog_cards .blog-card {
  position: relative;
  width: 100%;
  height: 100%;
  /* border-radius: 6px; */
  overflow: hidden;
  cursor: pointer;
}
.blog_cards .blog-section .section-header {
  margin-bottom: 25px;
}
.blog_cards .blog-section .section-header .section-title {
  font-size: 16px;
  font-weight: 600;
  color: #343434;
}
.blog_cards .blog-card .image_wrapper {
  width: 100%;
  height: 400px;
}
.blog_cards .blog-card .blog_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog_cards .blog-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  padding: 20px;
  display: flex;
  align-items: flex-end;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.2),
    transparent
  );

  transition: all 0.5s ease;
}

.blog_cards .blog-card .overlay h4 {
  color: #fff;
  font-size: 18px;
  margin: 0;
}

/* Hover Effects */
.blog_cards .blog-card:hover .blog_img {
  transform: scale(1.1);
}

.blog_cards.blog-card:hover .overlay {
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(9, 12, 20, 0.4) 40%,
    rgba(17, 23, 37, 0.7) 65%,
    rgba(5, 9, 16, 0.95) 100%
  );
}

@media (min-width: 0px) and (max-width: 574px) {
  .blog_cards .blog-card .overlay h4 {
    font-size: 15px;
  }
  .blog_cards .blog-card .image_wrapper {
    width: 100%;
    height: 300px;
  }
  .blog_cards .blog-section .section-header .section-title {
    font-size: 14px;
  }
}
@media (min-width: 575px) and (max-width: 767.98px) {
  .blog_cards .blog-card .overlay h4 {
    font-size: 15px;
  }
  .blog_cards .blog-card .image_wrapper {
    width: 100%;
    height: 300px;
  }
  .blog_cards .blog-section .section-header .section-title {
    font-size: 15px;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .blog_cards .blog-card .overlay h4 {
    font-size: 15px;
  }
  .blog_cards .blog-card .image_wrapper {
    width: 100%;
    height: 250px;
  }
  .blog_cards .blog-section .section-header .section-title {
    font-size: 16px;
  }
  .blog_by_category .sidebar ul {
    padding: 5px 9px 15px;
  }
}
@media (min-width: 991px) and (max-width: 1199px) {
  .blog_cards .blog-card .overlay h4 {
    font-size: 16px;
  }
  .blog_cards .blog-card .image_wrapper {
    width: 100%;
    height: 250px;
  }
  .blog_cards .blog-section .section-header .section-title {
    font-size: 16px;
  }
}
