.ec-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
      justify-content: center;
}
.ec-card {
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
    max-width: 310px;
    width: 100%;
}

.ec-card-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px;
}

.ec-card-image {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    position: relative;
}

.ec-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #0030578A;
    
    z-index: 1;
    transition: background 0.3s ease;
}

/* On hover: change gradient and scale image */
.ec-card:hover .ec-card-image {
    transform: scale(1.2);
}

.ec-card:hover .ec-card-image::before {
  background: linear-gradient(180deg, rgba(0, 103, 131, 0) 30.15%, #002A36 100%);

}

.ec-card-content {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 20px;
    z-index: 2;
    color: #fff;
    transition: all 0.4s ease;
}

.ec-card-title {
    margin: 0;
    font-family: "BasisGrotesqueArabicPro", sans-serif;
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.4s ease;
  	color: #fff;
}

.ec-card-description {
    font-family: "BasisGrotesqueArabicPro", sans-serif;
    font-weight: 400;
    font-size: 14px;
    margin: 0px !important;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: none;
 	color: #fff;
}

/* Hover effects */
.ec-card:hover .ec-card-title {
    transform: translateY(-10px);
}

.ec-card:hover .ec-card-description {
    display: block;
    transform: translateY(0);
}

@media (max-width: 1024px) and (min-width: 768px) {
 .ec-card:hover .ec-card-image {
    transform: unset;
}
  .ec-card-description {
    display: block !important;
}
  .ec-card .ec-card-image::before {
  background: linear-gradient(180deg, rgba(0, 103, 131, 0) 30.15%, #002A36 100%);

}
  .ec-card-content {
    bottom: 20px;
}
}

/* Mobile (less than 768px) */
@media (max-width: 767px) {
    .ec-card-content {
    bottom: 20px;
}
   .ec-card:hover .ec-card-image {
    transform: unset;
}
   .ec-card-description {
    display: block !important;
}
  .ec-card .ec-card-image::before {
  background: linear-gradient(180deg, rgba(0, 103, 131, 0) 30.15%, #002A36 100%);

}
}