.swiper {
  width: 100%;
  height: 100%;
}

.mySwiper2 {
  max-width: 350px;
  height: 260px;
}

.npl-blog-figure-content h2 {
  font-size: var(--thirty);
  font-family: var(--libre);
  /* padding-left: 5px; */
  width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-y: clip;
  color: black;
}

.swiper-slide {
  font-size: 18px;
  background: var(--df);
  display: flex;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mySwiper2 {
  cursor: pointer;
}

.npl-blog-p {
  font-size: var(--eighteen);
  font-family: var(--barlow);
  line-height: var(--barlowHeight);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow-y: clip;
  font-weight: var(--normalWeight);
}

.npl-blog-figure-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: clip;
  justify-content: space-around;
}

.npl-blog-figure-content div:nth-child(1) {
  width: 100%;
  display: flex;
  gap: 5px;
  position: relative;
  align-items: center;
}

.npl-blog-author-lines {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-y: clip;
  margin-top: 20px;
}

.npl-blog-figure-content div:nth-child(1) p {
  font-size: var(--sixteen);
  font-style: italic;
  font-family: var(--libre);
  color: var(--be9);
  margin-left: -10px;
}

.npl-blog-line {
  display: inline-block;
  width: 100%;
  height: 1px;
  background-color: var(--be9);
}

.npl-blog-figure,
.npl-blog-figure-hover {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  justify-content: start;
  align-items: center;
  transition: 0.5s ease-in-out;
}

.npl-blog-figure {
  align-items: start;
}

.npl-blog-figure-content,
.npl-blog-caption-hover {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.npl-blog-figure-hover {
  position: absolute;
  transform: translateY(100%);
}

.mySwiper2 .swiper-slide-active:hover .npl-blog-figure {
  transform: translateY(-100%);
  transition: 0.5s ease-in-out;
}

.mySwiper2 .swiper-slide-active:hover .npl-blog-figure-hover {
  transform: translateY(0);
  transition: 0.5s ease-in-out;
}

p {
  margin: 0;
}

.mySwiper2 .swiper-slide {
  transition: opacity 0s !important; /* Removes transition delay */
}

/* .swiper-slide-active {
  opacity: 1;
  transform: translateY(0%);
  transition: all 0.5s ease-in-out;
  transition-delay: 1s;
} */

.npl-blog-date {
  position: absolute;
  bottom: 22px;
  width: 83%;
}

.npl-blog-figure-date {
  position: relative;
  margin-bottom: 10px;
  font-size: var(--fifteen);
  font-family: var(--barlow);
  font-weight: var(--normalWeight);
  pointer-events: none;
  color: black;
}

.npl-blog-figure-date span {
  color: var(--7b);
  position: absolute;
  right: 0px;
  font-size: var(--fifteen);
  font-family: var(--libre);
  font-style: italic;
  pointer-events: auto;
}

.npl-blog-date-line {
  position: absolute;
  width: 0%;
  bottom: 0;
  height: 1px;
  background-color: var(--7b);
}

.swiper-slide-active:hover .npl-blog-date-line {
  animation: blogLine 0.3s ease-in-out forwards;
  animation-delay: 0.4s;
}

@keyframes blogLine {
  0% {
    width: 0;
  }
  100% {
    width: 87.5%;
  }
}

.npl-blog-figure-content-p {
  font-weight: var(--authorWeight);
}

/* read-dummy start */

.npl-read-dummy {
  position: absolute;
  bottom: -24px;
  right: 0;
  width: 35px;
  height: 25px;
  overflow: clip;
  transform: translateY(100%);
  opacity: 0;
}

.npl-blog-original {
  transform: translateY(110%);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.npl-show-original {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

.npl-blog-dummy {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

.npl-hide-dummy {
  transform: translateY(-110%);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.mySwiper2 .swiper-slide-active:hover .npl-read-dummy {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.3s ease-in-out;
  transition-delay: 0.45s;
}
/* read-dummy end */

@media screen and (max-width: 500px) {
  .mySwiper2 {
    height: auto !important;
  }

  .mySwiper2 .swiper-slide {
    aspect-ratio: auto;
  }
}

@media screen and (max-width: 1024px) {
  .npl-blog-figure-content,
  .npl-blog-caption-hover {
    padding: 0;
  }

  .npl-blog-figure-content-p {
    margin: 15px 0 0 0;
  }

  .npl-blog-p {
    padding: 0 20px !important;
  }

  .npl-blog-figure {
    justify-content: space-between;
    align-items: start;
    padding: 22px !important;
  }

  .npl-blog-figure-container {
    justify-content: space-between;
    gap: 30px;
  }

  .npl-blog-figure-caption {
    width: 100%;
  }

  .npl-blog-figure-hover {
    position: absolute;
    display: none;
  }

  .mySwiper2 .swiper-slide-active:hover .npl-blog-figure {
    transform: translateY(0%);
  }
}

@media screen and (max-width: 768px) {
  .mySwiper2 {
    width: 100% !important;
    max-width: 540px !important;
    margin: 0px auto !important;
    height: fit-content !important;
    /* padding: 22px; */
  }
}

@media screen and (max-width: 1450px) {
  .mySwiper2 {
    width: 320px;
    height: 240px;
  }
}
