/* ============================================================
   CAROUSEL — clean version, no conflicting mobile styles
   Replace your entire carousel.css with this
   ============================================================ */

.klijenti {
  padding: 90px 0 80px;
  background: var(--navy, #0f1628);
  overflow: hidden;
  padding-bottom: 60px;
}

.klijenti__header {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 52px;
}

.klijenti__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #c8962a);
  margin-bottom: 12px;
}

.klijenti__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #fdf9f2;
  line-height: 1.15;
  margin-bottom: 12px;
}

.klijenti__title span {
  color: var(--gold, #c8962a);
}

.klijenti__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: rgba(242,237,226,0.5);
  font-weight: 300;
}

/* ── Track wrapper ───────────────────────────── */
.klijenti__track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* soft fade edges — desktop only */
.klijenti__fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.klijenti__fade--left  { left:  0; background: linear-gradient(to right, var(--navy, #0f1628), transparent); }
.klijenti__fade--right { right: 0; background: linear-gradient(to left,  var(--navy, #0f1628), transparent); }

/* ── DESKTOP: scrolling track ────────────────── */
.klijenti__track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 16px 24px 24px;
  animation: scrollTrack 32s linear infinite;
  cursor: grab;
}
.klijenti__track:active { cursor: grabbing; }
.klijenti__track:hover  { animation-play-state: paused; }

@keyframes scrollTrack {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Individual card ─────────────────────────── */
.k-card {
  flex-shrink: 0;
  width: 300px;
  background: #162040;
  border: 1px solid rgba(200,150,42,0.2);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
              border-color 0.3s,
              box-shadow 0.3s;
}
.k-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,150,42,0.55);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35), 0 0 24px rgba(200,150,42,0.07);
}

.k-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.k-card__initials {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ic, #c8962a) 20%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--ic, #c8962a) 60%, transparent);
  color: var(--ic, #c8962a);
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}

.k-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.k-card__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fdf9f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.k-card__url {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: rgba(200,150,42,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.k-card__url:hover { color: #f0c45a; }

.k-card__tag {
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
}
.k-card__tag--web  { background: rgba(200,150,42,0.15); color: #f0c45a;  border: 1px solid rgba(200,150,42,0.35); }
.k-card__tag--ai   { background: rgba(42,108,200,0.15); color: #7ab4f5;  border: 1px solid rgba(42,108,200,0.35); }
.k-card__tag--soft { background: rgba(200,42,108,0.15); color: #f57ab4;  border: 1px solid rgba(200,42,108,0.35); }

.k-card__comment {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(242,237,226,0.65);
  font-weight: 300;
  font-style: italic;
  flex: 1;
}

.k-card__stars {
  font-size: 0.8rem;
  color: var(--gold, #c8962a);
  letter-spacing: 2px;
}

/* ── Controls — hidden on desktop ────────────── */
.klijenti__controls {
  display: none;
}

/* ── Kontakt button ──────────────────────────── */
.kontakt-btn {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  padding: 14px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0c45a;
  background: transparent;
  border: 1.5px solid rgba(200, 150, 42, 0.5);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.kontakt-btn:hover {
  background: #C9A24D;
  border-color: #C9A24D;
  color: #0b1125;
  transform: scale(1.04);
}

/* ── MOBILE ──────────────────────────────────── */
@media (max-width: 768px) {

  /* hide desktop fades and clones */
  .klijenti__fade { display: none; }
  .k-card--clone  { display: none; }

  /* wrapper clips the sliding track */
  .klijenti__track-wrapper {
    overflow: hidden;
    padding: 0;
  }

  /* track becomes a flex row controlled by JS translateX */
  .klijenti__track {
    animation: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    padding: 16px 0 8px;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    transform: translateX(0);
  }

  /* each card is exactly 100% of the wrapper width */
  .k-card {
    min-width: calc(100vw - 40px);
    width: calc(100vw - 40px);
    flex-shrink: 0;
    box-sizing: border-box;
    margin: 0 20px;
  }

  /* show controls */
  .klijenti__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0 8px;
  }

  .klijenti__btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(200, 150, 42, 0.4);
    background: rgba(200, 150, 42, 0.08);
    color: #f0c45a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    flex-shrink: 0;
  }
  .klijenti__btn svg { width: 18px; height: 18px; }
  .klijenti__btn:hover {
    background: rgba(200, 150, 42, 0.2);
    border-color: rgba(200, 150, 42, 0.7);
    transform: scale(1.08);
  }
  .klijenti__btn:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
  }

  .klijenti__dots {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .k-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(200, 150, 42, 0.3);
    border: 1px solid rgba(200, 150, 42, 0.4);
    transition: background 0.25s, transform 0.25s;
    cursor: pointer;
  }
  .k-dot--active {
    background: #f0c45a;
    transform: scale(1.3);
  }
}