.masonry-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.masonry-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.masonry-card .overlay {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2));
  color: #fff;
}

.masonry-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.masonry-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.carousel {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  background-color: #010a0e;
}

.carousel-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scroll 30s linear infinite;
  will-change: transform;
}

.logo {
  min-width: 180px; /* controls visible logos */
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

/* Animation */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.team-slide:nth-child(odd) {
  margin-bottom: 40px;
}

.team-slide:nth-child(even) {
  margin-top: 40px;
}
