  .image-card {
      position: relative;
      overflow: hidden;
      border-radius: 10px;
    }

    .image-card img {
      width: 100%;
      height: auto;
      display: block;
      transition: transform 0.3s ease;
    }

    .image-card:hover img {
      transform: scale(1.03); /* slight zoom */
    }

    .image-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(61, 63, 64, 0.85); /* Bootstrap blue with opacity */
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      transition: opacity 0.3s ease-in-out;
      padding: 15px;
      text-align: start;
      font-size: 14px;
      flex-direction: column;
    }

    .image-card:hover .image-overlay {
      opacity: .9;
    }

.mySwiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

/* Image */
.mySwiper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

/* Gradient overlay (hidden by default) */
.mySwiper .swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

/* "View More" button */
.mySwiper .view-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Hover effects */
.mySwiper .swiper-slide:hover img {
  transform: scale(1.08);
  filter: brightness(85%);
}

.mySwiper .swiper-slide:hover::before {
  opacity: 1;
}

.mySwiper .swiper-slide:hover .view-btn {
  opacity: 1;
  pointer-events: auto;
}

.mySwiper .view-btn:hover {
  background-color: #fff;
  color: #000;
  border-color: #fff;
}
