.clients-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px 30px; /* 40px vertical, 30px horizontal */
  justify-content: center;
  padding: 100px 20px;
  box-sizing: border-box;
}

.client-item {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 24px;
  max-width: 360px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.client-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.client-item p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgb(10, 38, 90);
}


/* Image wrapper */
.c-img-container {
  width: 100%;
  height: 200px;
  margin-bottom: 20px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
}

/* Responsive - tablet */
@media (max-width: 1100px) {
  .clients-list {
    padding: 80px 20px;
  }
  .c-img-container {
    height: 180px;
  }
}

/* Responsive - mobile */
@media (max-width: 768px) {
  .clients-list {
    flex-direction: column;
    align-items: center;
    padding: 60px 16px;
  }
  .client-item {
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
  }
  .c-img-container {
    height: auto;
    aspect-ratio: 16 / 9;
  }
/* === Fix spacing between rows of client items === */
.row-fluid .span4 {
  margin-bottom: 30px;
}

/* Optional: Remove bottom margin from last row if 3 columns per row */
@media (min-width: 769px) {
  .row-fluid .span4:nth-last-child(-n+3) {
    margin-bottom: 0;
  }
}

  /* Fix spacing between rows by adding vertical margin */
.row-fluid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px; /* row + column spacing */
}

.span4 {
  flex: 0 0 calc(33.333% - 30px); /* 3 per row with gap */
  box-sizing: border-box;
}