.aptly-values-section .aptly-gradient-text {
  background: linear-gradient(
    90deg,
    #8918d2 29.81%,
    #486ad2 49.04%,
    #08bbd2 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent !important;
  font-weight: 600;
}

.aptly-values-section .aptly-values-heading-wrapper h2 {
  color: #000677;
}

.aptly-values-section .aptly-values-inner {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.aptly-values-section .aptly-values-heading-wrapper {
  margin-bottom: clamp(2rem, 4vw, 4rem);
  text-align: left;
}

/* Flex layout: 3 columns → 2 → 1; borders only between cells, not on outer edge */
.aptly-values-section .aptly-values-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.aptly-values-section .aptly-value-item {
  box-sizing: border-box;
  position: relative;
  flex: 0 0 33.333333%;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: left;
}

/* Vertical divider (between columns): separate pseudo-element with inset = padding from top/bottom */
.aptly-values-section .aptly-value-item:not(:nth-child(3n))::after {
  content: "";
  position: absolute;
  top: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  right: 0;
  width: 1px;
  background: #e0e0e0;
}

/* Horizontal divider (between rows): separate pseudo-element with inset = padding from left/right */
.aptly-values-section .aptly-value-item:nth-child(n + 4)::before {
  content: "";
  position: absolute;
  left: clamp(1rem, 2vw, 2rem);
  right: clamp(1rem, 2vw, 2rem);
  top: 0;
  height: 1px;
  background: #e0e0e0;
}

/* First in each row: no left padding (items 1, 4, 7...) */
.aptly-values-section .aptly-value-item:nth-child(3n + 1) {
  padding-left: 0;
}

/* Last in each row: no right padding (items 3, 6, 9...) */
.aptly-values-section .aptly-value-item:nth-child(3n) {
  padding-right: 0;
}

.aptly-values-section .aptly-value-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.aptly-values-section .aptly-value-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aptly-values-section .aptly-value-title {
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.aptly-values-section .aptly-value-desc {
  font-size: clamp(14px, 1vw, 16px);
  color: #757575;
  line-height: 1.6;
  font-weight: 400;
}

@media (max-width: 1024px) {
  .aptly-values-section .aptly-value-item {
    flex: 0 0 50%;
    padding: clamp(1.25rem, 2.5vw, 2.5rem) clamp(1rem, 1.5vw, 1.5rem);
  }
  /* First in each row: no left padding, keep right padding (items 1, 3, 5...) – overrides desktop 3n which would remove item 3’s right padding */
  .aptly-values-section .aptly-value-item:nth-child(2n + 1) {
    padding-left: 0;
    padding-right: clamp(2rem, 1.5vw, 1.5rem);
  }
  /* Last in each row: no right padding, keep left padding (items 2, 4, 6...) – overrides desktop 3n+1 which would remove item 4’s left padding */
  .aptly-values-section .aptly-value-item:nth-child(2n) {
    padding-right: 0;
    padding-left: clamp(2rem, 1.5vw, 1.5rem);
  }
  /* Vertical divider: only between 2 columns (not after 2nd item in each row) */
  .aptly-values-section .aptly-value-item:nth-child(2n)::after {
    display: none;
  }
  .aptly-values-section .aptly-value-item:nth-child(3n)::after {
    content: "";
    position: absolute;
    top: clamp(1rem, 2vw, 2rem);
    bottom: clamp(1rem, 2vw, 2rem);
    right: 0;
    width: 1px;
    background: #e0e0e0;
  }
  /* Horizontal divider: 2nd row onwards (items 3, 4, 5...) */
  .aptly-values-section .aptly-value-item:nth-child(n + 3)::before {
    content: "";
    position: absolute;
    left: clamp(1rem, 1.5vw, 1.5rem);
    right: clamp(1rem, 1.5vw, 1.5rem);
    top: 0;
    height: 1px;
    background: #e0e0e0;
  }
}

@media (max-width: 768px) {
  .aptly-values-section .aptly-values-inner {
    padding-top: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: clamp(1.5rem, 4vw, 3rem);
    padding-left: 0;
    padding-right: 0;
  }

  .aptly-values-section .aptly-values-heading-wrapper {
    text-align: left;
    margin-bottom: clamp(2rem, 5vw, 3rem);
  }

  .aptly-values-section .aptly-values-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 6vw, 4rem);
    border: none;
    border-radius: 0;
  }

  .aptly-values-section .aptly-value-item {
    padding: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
    background-color: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }

  .aptly-values-section .aptly-value-item::before,
  .aptly-values-section .aptly-value-item::after {
    display: none;
  }

  .aptly-values-section .aptly-value-item:nth-child(2n) {
    padding-left: 0;
    padding-right: 0;
  }

  /* Icon centered, text stays left-aligned */
  .aptly-values-section .aptly-value-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .aptly-values-section .aptly-value-title {
    font-size: clamp(17px, 4vw, 18px);
    margin-bottom: 0.5rem;
  }

  .aptly-values-section .aptly-value-desc {
    font-size: clamp(13px, 3vw, 14px);
  }
}
