/* ================================================
   TESTIMONIALS.CSS — Iskustva učenika (carousel)
   ================================================ */

#testimonials {
  overflow: hidden;
}

/* ── Carousel wrapper ── */
.testi-carousel {
  position: relative;
  margin-top: 1rem;
}

.testi-track-wrap {
  overflow: hidden;
}

.testi-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Each slide shows one card at full width ── */
.testi-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 2rem;
}

/* ── The card itself — large, editorial ── */
.testi-card {
  background: var(--cream2);
  border: 1px solid var(--light);
  border-radius: 12px;
  padding: 3.5rem 4rem;
  max-width: 820px;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem;
}

/* ── Decorative large quote ── */
.testi-bigquote {
  font-family: var(--serif);
  font-size: 9rem;
  font-weight: 300;
  color: rgba(201, 168, 130, 0.18);
  position: absolute;
  top: -1.5rem;
  left: 2rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* ── Stars ── */
.testi-stars {
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  position: relative;
  z-index: 1;
}

/* ── Quote text — large and italic ── */
.testi-text {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-style: italic;
  color: var(--ink2);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* ── Author row ── */
.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
  padding-top: 1.2rem;
  border-top: 1px solid var(--light);
}

.testi-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light), var(--cream));
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--warm);
  flex-shrink: 0;
}

.testi-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.testi-role {
  font-size: 0.78rem;
  color: var(--warm);
}

/* ── Navigation ── */
.testi-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.testi-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--light);
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.testi-arrow:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
  transform: scale(1.08);
}

.testi-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.testi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--light);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, width 0.25s;
}

.testi-dot.active {
  background: var(--rose);
  transform: scale(1.3);
  width: 20px;
  border-radius: 10px;
}

/* ── Counter ── */
.testi-counter {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--warm);
  min-width: 40px;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .testi-card {
    padding: 2.5rem 1.8rem;
  }

  .testi-bigquote {
    font-size: 6rem;
  }
}
