.elementor-8219 .elementor-element.elementor-element-025d1a1{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}/* Start custom CSS for shortcode, class: .elementor-element-9c893b7 */.top-viewed-dm-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
}

.dm-post-item {
  border-radius: 6px;
  width: calc(25% - 11.25px); 
  border: 1px solid #E5E5E5;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", Sans-serif;
  overflow: hidden;
}

.dm-post-item .image-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.dm-post-item .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dm-post-item .content-type-badge {
  position: absolute;
  top: 120px;
  left: 0;
  background-color: #F5CD54;
  padding: 6px 12px;
  text-align: left;
  font-family: "Poppins", Sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: #000000;
}

.dm-post-item .published-date,
.dm-post-item .post-title,
.dm-post-item .abstract,
.dm-post-item small {
  margin: 10px 15px;
}

.dm-post-item .published-date {
  font-size: 0.8rem;
  font-weight: 400;
  color: #8E8E8E;
  margin-bottom: 3px;
}

.dm-post-item .post-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4em;
  margin-bottom: 6px;
}

.dm-post-item .post-title a {
  color: #000000 !important;
  text-decoration: none;
}

.dm-post-item .abstract {
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.5em;
  color: #000000;
  margin-bottom: 12px;
}

.dm-post-item small {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 12px;
}
.elementor-8219 .elementor-element.elementor-element-9c893b7 .dm-post-item:hover .post-title a{
    color: #0D4688 !important;
}

/* Remove grayscale initially */
.elementor-8219 .elementor-element.elementor-element-9c893b7 .dm-post-item .image-wrapper img{
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

/* Add grayscale on hover */
.elementor-8219 .elementor-element.elementor-element-9c893b7 .dm-post-item:hover .image-wrapper img{
    filter: grayscale(70%);
}
.elementor-8219 .elementor-element.elementor-element-9c893b7 .dm-post-item .abstract {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em;
}



@media (max-width: 1024px) {
  .dm-post-item {
    width: calc(50% - 7.5px); 
  }
}


@media (max-width: 600px) {
  .dm-post-item {
    width: 100%;
  }
}/* End custom CSS */