/* Client Carousel Enhanced Styles */

.tj-client-section {
  padding: 25px 0;
  position: relative;
  overflow: hidden;
}

.client-feature-box {
  background: #ffffff;
  padding: 14px 20px;
  border-radius: 50px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid #e8ecef;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  height: auto;
  min-height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: fit-content;
  max-width: 280px;
}

/* Simple border highlight on hover */
.client-feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--tj-color-theme-primary) 0%, var(--tj-color-theme-secondary) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.client-feature-box:hover::before {
  opacity: 1;
}

.client-feature-box:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--tj-color-theme-primary);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafa 100%);
}

.feature-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #0c663819 0%, #4a9b6f26 100%);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.client-feature-box:hover .feature-icon {
  background: linear-gradient(135deg, #0c663826 0%, #4a9b6f40 100%);
  transform: scale(1.1);
}


.feature-icon i {
  font-size: 20px;
  color: var(--tj-color-theme-primary);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.client-feature-box:hover .feature-icon i {
  color: var(--tj-color-theme-secondary);
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.feature-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--tj-color-heading-primary);
  margin: 0;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.client-feature-box:hover .feature-title {
  color: var(--tj-color-theme-primary);
}

.feature-desc {
  font-size: 10px;
  line-height: 1.3;
  color: var(--tj-color-text-body);
  margin: 0;
  position: relative;
  z-index: 2;
  opacity: 0.7;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-feature-box:hover .feature-desc {
  opacity: 0.9;
}

/* Swiper customization for smoother animation */
.client-slider-1 .swiper-wrapper {
  transition-timing-function: linear !important;
}

.client-slider-1 .swiper-slide {
  width: auto !important;
  margin-right: 30px;
}

/* Shimmer effect on load */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.client-feature-box.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .client-feature-box {
    padding: 12px 18px;
    max-width: 260px;
  }

  .feature-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .feature-icon i {
    font-size: 18px;
  }

  .feature-title {
    font-size: 11px;
  }

  .feature-desc {
    font-size: 9px;
  }
}

@media (max-width: 767px) {
  .tj-client-section {
    padding: 20px 0;
  }

  .client-feature-box {
    padding: 10px 16px;
    max-width: 240px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .feature-icon i {
    font-size: 16px;
  }

  .feature-title {
    font-size: 10px;
  }

  .feature-desc {
    font-size: 8px;
  }
}

