.next-gen-cards {
  position: relative;
}

.next-gen-cards .ng-frame {
  max-width: var(--frame-width);
  margin: 0 auto;
}

/* Header */
.next-gen-cards__header {
  text-align: center;
  max-width: 730rem;
  margin: 0 auto 24rem;
}

.next-gen-cards__eyebrow-icon {
  width: 110rem;
  height: 110rem;
  margin: 0 auto 28rem;
}

.next-gen-cards__eyebrow-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.next-gen-cards__headline {
  color: var(--blue);
  margin: 0;
  font-weight: 600;
  display: block;
}

.next-gen-cards__subheadline {
  margin-top: 18rem;
  font-weight: 600;
}

/* Grid */
.next-gen-cards__grid {
  display: grid;
  gap: 18rem;
  padding: 20rem 0;
}

.next-gen-cards[data-count="3"] .next-gen-cards__grid {
  grid-template-columns: repeat(3, 1fr);
}

.next-gen-cards[data-count="4"] .next-gen-cards__grid {
  grid-template-columns: repeat(4, 1fr);
}

.next-gen-cards[data-count="5"] .next-gen-cards__grid {
  grid-template-columns: repeat(5, 1fr);
}

.next-gen-cards__card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease-in-out;
}

.next-gen-cards__card:hover {
  transform: translateY(-3rem);
}

/* Style: Icon Row */

.next-gen-cards[data-style="icon-row"] .ng-frame {
  padding-left: 10rem;
  padding-right: 10rem;
  padding-bottom: 20rem;
}


.next-gen-cards[data-style="icon-row"] .next-gen-cards__header {
  text-align: left;
  max-width: none;
  margin: 0 0 32rem;
  display: flex;
  align-items: center;
  gap: 24rem;
}

.next-gen-cards[data-style="icon-row"] .next-gen-cards__eyebrow-icon {
  width: 52rem;
  height: 52rem;
  margin: 0;
  flex: 0 0 auto;
}

.next-gen-cards[data-style="icon-row"] .next-gen-cards__headline {
  font-size: 28rem;
  margin-bottom:0rem;
}

.next-gen-cards[data-style="icon-row"] .next-gen-cards__subheadline {
  display: none;
}

.next-gen-cards[data-style="icon-row"] .next-gen-cards__grid {
  min-height: 70rem;
  align-items: center;
  padding: 54rem 50rem;
  border-radius: 18rem;
  background: linear-gradient(180deg, var(--blue) 0%, #416785 100%);
  box-shadow: 0 6rem 8rem rgba(0, 0, 0, 0.25);
}

.next-gen-cards[data-style="icon-row"] .next-gen-cards__card {
  display: flex;
  align-items: center;
  gap: 16rem;
  color: var(--white);
  transition: transform 0.3s ease-in-out;
}

.next-gen-cards[data-style="icon-row"] .next-gen-cards__card:hover {
transform: translateY(-3rem);
}

.next-gen-cards__check {
  width: 33rem;
  height: 33rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.next-gen-cards__check img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.next-gen-cards[data-style="icon-row"] .next-gen-cards__card-title {
  font-size: 15rem;
  line-height: 1.2;
  max-width: 70%;
  font-weight: 500;
  display: block;
}

/* Style: Animated Blocks */
.next-gen-cards[data-style="animated-blocks"] .next-gen-cards__card {
  background: var(--cream);
  border-radius: 20px !important;
  overflow: hidden;
}

.next-gen-cards[data-style="animated-blocks"] .next-gen-cards__card {
  overflow: hidden;
}

.next-gen-cards[data-style="animated-blocks"] .next-gen-cards__media {
  width: 100%;
  height: 240rem;
  min-height: 240rem;
  max-height: 240rem;
  overflow: hidden;
}

.next-gen-cards[data-style="animated-blocks"] .next-gen-cards__media img,
.next-gen-cards[data-style="animated-blocks"] .next-gen-cards__media video,
.next-gen-cards[data-style="animated-blocks"] .next-gen-cards__media lottie-player,
.next-gen-cards[data-style="animated-blocks"] .next-gen-cards__media .next-gen-animation__media {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.next-gen-cards__media {
  max-height:200px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.next-gen-cards__media img {
  width: 100%;
  max-width: 100%;
  max-height: 290px;
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
  border-radius: 20px 20px 0px 0px;
}

.next-gen-cards[data-style="animated-blocks"] .next-gen-cards__media {
  min-height: 240rem;
  max-height: none;
}

.next-gen-cards[data-style="animated-blocks"] .next-gen-cards__media img {
  width: 100%;
  height: 240rem;
  object-fit: cover;
  object-position: top center;
}



.next-gen-cards__footer {
  min-height: 36rem;
  display: flex;
  align-items: center;
  padding: 20rem 24rem;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0rem 4rem 4rem 0rem rgba(0,0,0,0.25);
  border-radius: 0 0 20rem 20rem;
}

.next-gen-cards[data-style="animated-blocks"] .next-gen-cards__card-title {
  font-size: 16rem;
  font-weight: 700;
  display: block;
}

/* Style: Icon Blocks */

.next-gen-cards[data-style="icon-blocks"] .ng-frame {
  padding-left: 0px;
    padding-right: 0px;
}

.next-gen-cards[data-style="icon-blocks"] .next-gen-cards__card {
  min-height: 220rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25rem;
  border-radius: 16rem;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4rem 8rem rgba(0, 0, 0, 0.25);
  gap: 20rem;
}

.next-gen-cards[data-style="icon-blocks"] .next-gen-cards__card-title {
  margin: 0 0 8rem;
  color: var(--white);
  font-size: 22rem;
  font-weight: 600;
  display: block;
}

.next-gen-cards__card-text p {
  margin: 0;
}

.next-gen-cards__icon {
  width: 78rem;
  height: 78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.next-gen-cards__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.next-gen-cards__icon--placeholder span {
  font-size: 20rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 960px) {
  .next-gen-cards[data-count] .next-gen-cards__grid {
    grid-template-columns: 1fr;
  }

  .next-gen-cards[data-style="icon-blocks"] .next-gen-cards__card {
    min-height: 200rem;
  }

  .next-gen-cards[data-style="animated-blocks"] .next-gen-cards__card {
    width: 100%;
    max-width: 360rem;
}

.next-gen-cards__media {
    max-height: 210px;
  }

  .next-gen-cards__grid {
  gap: 24rem;
}


  .next-gen-cards[data-style="icon-row"] .next-gen-cards__grid {
    grid-template-columns: 1fr;
    padding: 36rem 28rem;
  }
  .next-gen-cards[data-style="icon-row"] .next-gen-cards__card-title {
  max-width: 100%;
  display: block;
}

.next-gen-cards[data-style="animated-blocks"] .next-gen-cards__card-title {
  font-size: 15rem;
  display: block;
}

.next-gen-cards[data-style="animated-blocks"] .next-gen-cards__grid {
        justify-items: center;
    }
    .next-gen-cards[data-style="animated-blocks"] .next-gen-cards__media {
  min-height: 230rem;
}

.next-gen-cards[data-style="animated-blocks"] .next-gen-cards__media img {
  height: 230rem;
}

}

@media (max-width: 767px) {
  .next-gen-cards[data-count] .next-gen-cards__grid {
    grid-template-columns: 1fr;
  }

  .next-gen-cards__header,
  .next-gen-cards[data-style="icon-row"] .next-gen-cards__header {
    text-align: center;
    display: block;
  }

  .next-gen-cards[data-style="icon-row"] .next-gen-cards__eyebrow-icon {
    margin: 0 auto 18rem;
  }

  .next-gen-cards__media {
    min-height: 210rem;
  }
}

/* Overrides for Lottie */ 

  .next-gen-cards[data-style="animated-blocks"] .next-gen-cards__media {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .next-gen-cards[data-style="animated-blocks"] .next-gen-cards__media .next-gen-animation__media,
  .next-gen-cards[data-style="animated-blocks"] .next-gen-cards__media .next-gen-animation__lottie,
  .next-gen-cards[data-style="animated-blocks"] .next-gen-cards__media svg {
    height: auto !important;
    min-height: 0;
  }
