/* =============================================================
   TESTIMONIALS — Sliding card carousel
   ============================================================= */

.testimonials {
  background: var(--bg-alt);
  overflow: hidden;
}

/* ── Section header overrides ── */
.testimonials .section-header { margin-bottom: 48px; }

/* ── Slider wrapper ── */
.testi-slider-wrap {
  position: relative;
  padding: 0 56px;          /* room for arrows */
}

/* ── Outer clip ── */
.testi-track-outer {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* ── Scrolling track ── */
.testi-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ── Individual card ── */
.testi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px 24px;
  flex: 0 0 calc(33.333% - 16px);   /* 3 visible at once */
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Quote icon */
.testi-quote{
  display:flex;
  gap: 4px;
  align-items: center;
}

.testi-quote-icon {
  width: 40px;
  height: 40px;
  /* background: linear-gradient(135deg, var(--primary), var(--primary-light)); */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* color: #fff; */
  font-size: 1rem;
  flex-shrink: 0;
}

.testi-quote-title{
  font-size: 1rem;
  
}

/* Comment text */
.testi-comment {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.70;
  flex: 1;
  font-style: italic;
}

/* Stars */
.testi-stars {
  display: flex;
  gap: 3px;
}

.testi-stars i {
  color: #f59e0b;
  font-size: 0.85rem;
}

/* Author row */
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Avatar circle with initials */
.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid rgba(26,79,160,0.15);
}

/* If a real photo is used */
.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testi-avatar span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.testi-info strong {
  display: block;
  font-size: 0.9rem;
  /* font-weight: 700; */
  color: var(--text);
  margin: 0;
  /* line-height: 1.4; */
}

.testi-info span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.1;
  margin: 0;
}

/* ── Arrow buttons ── */
.testi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.testi-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.testi-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.testi-prev { left: 0; }
.testi-next { right: 0; }

/* ── Dot indicators ── */
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.testi-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .testi-card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 640px) {
  .testi-slider-wrap { padding: 0 40px; }
  .testi-card        { flex: 0 0 100%; padding: 28px 22px 22px; }
  .testi-arrow       { width: 36px; height: 36px; font-size: 0.8rem; }
}


/* --------------    Clients Details Slider  -----------------  */


.slider-section{
    width:100%;
    overflow:hidden;
    padding:10px 0;
    /* background:#f5f5f5; */
}

.slider-track{
    display:flex;
    gap:20px;
    width:max-content;
    animation:scroll 40s linear infinite;
}

.slide{
    width:220px;
    flex-shrink:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px; /* Space between image and title */
    padding:15px;
    background:#fff;
    border-radius:12px;
    /* box-shadow:0 4px 10px rgba(0,0,0,0.1); */
}

.slide img{
    width:100px;
    height:100px;
    object-fit:fill; /* Keeps logo/image fully visible */
    border-radius:10px;
    /* background:#fff; */
}

.slide h3{
    font-size:12px;
    text-align:center;
    line-height:1.3;
    color:#333;
    /* min-height:50px; */
    display:flex;
    align-items:center;
    justify-content:center;
}

@keyframes scroll{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-50%);
    }
}

.slider-track:hover{
    animation-play-state:paused;
}