.cards-product-points .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-gap: 16px;
}

.cards-product-points .cards .card {
  padding: 40px 30px;
  border-radius: 0;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  border: 2px solid rgba(112, 184, 255, 0.5); 
  border-bottom: 4px solid #0066CC;
  overflow: visible;
  position: relative;
}
.cards-product-points .cards.even .card {
  padding: 40px 24px 24px;
}

/* Full-width styling only when desktop_layout = 'full' */
.cards-product-points .cards.full .card.full-width {
  grid-column: 1 / -1;
}

/* Force specific grid layouts when using full setting to prevent stacking */
.cards-product-points .cards.full.cards-3 {
  grid-template-columns: 1fr 1fr;
}

.cards-product-points .cards.full.cards-4 {
  grid-template-columns: 1fr 1fr 1fr;
}

.cards-product-points .cards.full.cards-5 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.cards-product-points .cards.full.cards-6 {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.cards-product-points .card a {
  color: #0A376D;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cards-product-points .card .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-grow: 1;
  align-items: flex-start;
}
.cards-product-points .card .icon {
  width: auto;
  height: 40px;
  margin-bottom: 15px;
}
.cards-product-points .card h3 {
  color: #0A376D;
  font-size: 30px;
  font-weight: 500;
  display: block;
  min-height: 164px;
  margin-bottom: 60px;
  line-height: 136%; 
}
.cards-product-points .even.cards-5 .card h3 {
  min-height: 164px
}
.cards-product-points .card ul {
  list-style: none;
  padding: 0;
  font-size: 20px;
  line-height: 1.5;
  min-height: 296px;
  margin-bottom: 60px;
  font-weight: 300;
}
.cards-product-points .card.full-width ul {
  display: grid;
  grid-template-columns: 1fr 2fr;
  min-height: 100px;
  margin-bottom: 72px
}
.cards-product-points .card ul li {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 14px;
  position: relative;
  padding-left: 38px;
}

.cards-product-points .card ul li:before {
  content: '';
  position: absolute;
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('orange-checkmark.svg');
  left: 0;
  top: 5px;
}
.cards-product-points .card p {
  font-size: 16px;
  line-height: 136%;
  max-width: 720px;
  margin-top: auto;
  margin-bottom: 0;
}
.cards-product-points .card .card-link {
  background-color: #0066CC;
  color: #fff;
  font-weight: 500;
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -2px;
  padding: 0px 30px;
  height: 2px;
  transition: height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  opacity: 0;
}
.cards-product-points .card .card-link::after {
  content: '';
  background-image: url('white-arrow.svg');
  background-size: contain;
  background-repeat: no-repeat;
  width: 12px;
  height: 12px;
  display: inline-block;
}
.cards-product-points .card a:hover .card-link {
  padding: 115px 30px 30px 30px;
  height: 165px;
  opacity: 1;
  z-index: 2;
}

@media screen and (max-width: 859px) {
   /* Override grid layout for mobile - use horizontal scroll */
   .cards-product-points .cards {
      display: flex;
      flex-direction: row;
      overflow-x: auto;
      gap: 16px;
      padding-bottom: 20px;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      margin: 0 20px;
   }
   
   .cards-product-points .cards .card {
      width: 300px;
      flex-shrink: 0;
      scroll-snap-align: start;
   }
   
   /* Full layout cards take full width on mobile */
   .cards-product-points .cards.full .card {
      width: 100%;
   }
   
   /* Reset grid properties for mobile */
   .cards-product-points .cards.full,
   .cards-product-points .cards.full .card.full-width {
      grid-column: 1;
   }
  .cards-product-points .card h3 {
    font-size: 24px;
    min-height: 0px;
    margin-bottom: 48px;
  }
  .cards-product-points .card ul {
    min-height: 0;
  }
  .cards-product-points .full .card.full-width ul {
    display: block;
    min-height: 0px;
    margin-bottom: 48px
  }
  .cards-product-points .card p {
    padding-bottom: 48px;
    min-height: 0;
  }
  .cards-product-points .card .card-link {
    padding: 20px 30px 20px 30px;
    opacity: 1;
    z-index: 2;
  }
  .cards-product-points .card a:hover .card-link {
    padding: 20px 30px 20px 30px;
    height: 0;
  }
}


@media screen and (max-width: 859px) {
   /* Override grid layout for mobile - use horizontal scroll */
   .cards-product-points .cards {
      display: flex;
      flex-direction: row;
      overflow-x: auto;
      gap: 16px;
      padding-bottom: 20px;
      -webkit-overflow-scrolling: touch;
   }
   .cards-product-points .cards.even.cards-5 .card:first-of-type {
    margin-left: 20px;
  }
  .cards-product-points .cards.even.cards-5 .card:last-of-type {
    margin-right: 20px;
  }

   .cards-product-points .cards.even .card {
      width: 300px;
      flex-shrink: 0;
      scroll-snap-align: start;
   }
   
   .cards-product-points .cards.full .card {
      width: 100%;
   }
   
   /* Reset grid properties for mobile */
   .cards-product-points .cards.full,
   .cards-product-points .cards.full .card.full-width {
      grid-column: 1;
   }
  .cards-product-points .card h3 {
    font-size: 24px;
    min-height: 0px;
    margin-bottom: 48px;
  }
  .cards-product-points .card ul {
    min-height: 0;
  }
  .cards-product-points .full .card.full-width ul {
    display: block;
    min-height: 0px;
    margin-bottom: 48px
  }
  .cards-product-points .card p {
    padding-bottom: 48px;
    min-height: 0;
  }
  .cards-product-points .card .card-link {
    padding: 20px 30px 20px 30px;
    opacity: 1;
    z-index: 2;
  }
  .cards-product-points .card a:hover .card-link {
    padding: 20px 30px 20px 30px;
    height: 0;
  }
}

@media screen and (max-width: 1200px) {
  /* Override grid layout for mobile - use horizontal scroll */
  .cards-product-points .cards.even.cards-5 {
     display: flex;
     flex-direction: row;
     overflow-x: auto;
     gap: 16px;
     padding-bottom: 20px;
     -webkit-overflow-scrolling: touch;
  }
  .cards-product-points .cards.even.cards-5 .card:first-of-type {
    margin-left: 20px;
  }
  .cards-product-points .cards.even.cards-5 .card:last-of-type {
    margin-right: 20px;
  }
  .cards-product-points .cards.even.cards-5 .card {
     width: 300px;
     flex-shrink: 0;
     scroll-snap-align: start;
  }
}