/* ============================================
   CARDS - NetApp Storage LP
   ============================================ */

.cards {
  position: relative;
  isolation: isolate;
}

.cards__container {
  z-index: 1;
}

.cards__container h2 {
  max-width: 30ch;
}

.cards__container p {
  text-align: center;
  margin-inline: auto;
  max-width: 80ch;
}

.cards__container p + p {
  margin-top: 1.5rem;
}

.cards .swiper {
  margin-top: 2.0625rem;
  padding: 12px;
}

.cards .swiper-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-content: center;
}

.cards .swiper-slide {
  position: relative;
  background-color: #fff;
  display: grid;
  padding-top: 110px;
  box-shadow: 0px 4px 10px 2px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 354px;
  height: 290px;
  margin: 0 auto;
  --base: 300ms;
}

@media (min-width: 600px) {
  .cards .swiper-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .cards .swiper-slide {
    width: 100%;
    max-width: 354px;
    height: 290px;
  }
}

@media (min-width: 1200px) {
  .cards .swiper-wrapper {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .cards .swiper-slide {
    width: 100%;
    max-width: 354px;
    height: 290px;
  }
}

.cards .swiper-slide .red {
  background-color: #b8252e;
  width: 100%;
  height: 110px;
  position: absolute;
  transition: all var(--base) ease-in-out;
}

.cards .swiper-slide p {
  text-align: left;
  margin-inline: unset;
  max-width: unset;
  position: absolute;
  opacity: 0;
  z-index: 1;
  padding: 33px;
  transition: all var(--base) linear;
  color: #fff;
}

.cards .swiper-slide h3 {
  padding: 33px;
  transition: all var(--base) linear;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 120%;
  font-family: var(--font-gotham-bold);
}

.cards .swiper-slide:hover h3 {
  opacity: 0;
  transition: all var(--base) linear;
}

.cards .swiper-slide:hover p {
  opacity: 1;
  transition: all var(--base) linear;
  transition-delay: 150ms;
}

.cards .swiper-slide:hover .red {
  height: 100%;
  transition: all var(--base) ease-in;
}

.cards .buttons {
  display: none;
}

.cards .buttons button {
  cursor: pointer;
  background-color: transparent;
  outline: none;
  border: none;
}

.cards .buttons button.swiper-button-disabled {
  opacity: 0.2;
}

.cards .bg {
  pointer-events: none;
  z-index: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.cards .bg > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.click {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  right: 1.25rem;
  animation: 3s click infinite;
}

@keyframes click {
  0% {
    transform: translate(10px, -10px) scale(1.1);
  }
  50% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(10px, -10px) scale(1.1);
  }
}

@media (max-width: 1000px) {
  .swiper-slide:hover .click,
  .swiper-slide:active .click,
  .swiper-slide:focus .click {
    display: none;
  }
}

@media (min-width: 1000px) {
  .click {
    display: none;
  }
}

@media (min-width: 1000px) {
  .cards .swiper-slide {
    width: 100%;
    max-width: 354px;
    height: 290px;
  }
  .cards .swiper-slide .red {
    height: 90px;
  }
  .cards .swiper-slide h3 {
    padding-top: 0;
  }
}

