/* ================================================================
   Sync Inn Digital — Proven Impact Section
   Global section; content via Theme Settings → Proven Impact.

   Layout:
     Header    — constrained (1400px); label + heading + desc.
     Nav row   — full-width; prev/next arrows pinned to the right.
     Slider    — full-width, 20px left/right padding, overflow hidden.
                 Track moves via translateX (set by JS).
     Columns   — flex row; 6 visible at once on desktop.
     Cards     — each column has a top card + bottom card.
                 Cards size to their content (not stretched).

   Card types:
     Testimonial — white bg; quote, name, designation.
     Stat        — coloured bg (inline); large number, heading, desc.

   All colours use var(--sid-*) global CSS custom properties.
   ================================================================ */

/* ── Section wrapper ─────────────────────────────────────────── */

.sid-pi {
 background-color: var(--sid-light-grayish-blue-bg, #F5F6FA);
  padding: 110px 0;
  overflow: hidden;
}

/* ── Constrained header (label + heading + desc only) ────────── */

.sid-pi__wrap {
  max-width: var(--sid-site-width, 1400px);
  margin: 0 auto;
  padding: 0 20px;
  
}

/* ── Main heading ────────────────────────────────────────────── */

.sid-pi__heading {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--sid-black, #000);
  margin: 0 0 24px;
  max-width: 70%;
}

.sid-pi__heading-muted {
  color: #7E7E81;
}

/* ── Description ─────────────────────────────────────────────── */

.sid-pi__desc {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--sid-black, #000);
  margin: 0;
  max-width: 50%;
}

/* ── Nav row — full-width strip with arrows on the far right ─── */

.sid-pi__nav-row {
  display: flex;
  justify-content: flex-end;
  padding: 0 20px;
  margin-bottom: 10px;
}

.sid-pi__nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sid-pi__nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--sid-light-blue, #E8ECF3);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  color: var(--sid-black, #000);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.sid-pi__nav-btn:hover:not(:disabled) {
  background-color: var(--sid-primary-blue, #4f9cf9);
  border-color: var(--sid-primary-blue, #4f9cf9);
  color: var(--sid-white, #fff);
}

.sid-pi__nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.sid-pi__nav-arrow {
  width: 20px;
  height: 17px;
  fill: currentColor;
  display: block;
}

.sid-pi__prev .sid-pi__nav-arrow {
  transform: rotate(180deg);
}

/* ── Full-width slider area ──────────────────────────────────── */

.sid-pi__slider-outer {
  padding: 0 20px;
  overflow: hidden;
}

.sid-pi__track {
    display: flex;
    gap: 16px;
    will-change: transform;
    flex-direction: row;
    align-content: center;
    align-items: center;
    transition: transform 0.45s ease;
}

/* ── Column ──────────────────────────────────────────────────── */

.sid-pi__col {
  flex-shrink: 0;
  /* JS sets explicit width; CSS fallback for 6-up at ~1400px */
  width: calc((100vw - 40px - 5 * 16px) / 6);
  display: flex;
  flex-direction: column;
  align-items: center; /* cards centred horizontally, not stretched */
  gap: 16px;
}

/* ── Base card ───────────────────────────────────────────────── */

.sid-pi__card {
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%; /* fill full column width even with align-items: center on parent */
  box-sizing: border-box;
}

/* ── Testimonial card ────────────────────────────────────────── */

.sid-pi__card--testimonial {
  background-color: var(--sid-white, #fff);
}

.sid-pi__card-quote {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--sid-black, #000);
  margin: 0 0 24px;
  flex: 1;
}

.sid-pi__card-name {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--sid-black, #000);
  margin: 0 0 4px;
}

.sid-pi__card-designation {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--sid-icon-dark, #6B7280);
  margin: 0;
}

/* ── Stat card ───────────────────────────────────────────────── */

/* Background colour is set inline via style="background-color:…" */
.sid-pi__card--stat {
  justify-content: flex-start;
}

.sid-pi__card-number {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 84px;
  font-weight: 500;
  line-height: 1;
  color: var(--sid-white, #fff);
  margin: 0 0 10px;
}

.sid-pi__card-stat-heading {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--sid-white, #fff);
  margin: 0 0 6px;
}

.sid-pi__card-stat-desc {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--sid-white, #fff);
  margin: 0;
  opacity: 0.85;
}

/* ── Disclaimer ──────────────────────────────────────────────── */

.sid-pi__disclaimer {
  max-width: var(--sid-site-width, 1400px);
  margin: 0 auto;
  padding: 10px 20px 0;
}

.sid-pi__disclaimer p {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: var(--sid-black, #000);
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1280px) {
  .sid-pi__heading {
    font-size: 44px;
  }

  .sid-pi__card-number {
    font-size: 64px;
  }
}

@media (max-width: 1023px) {
  .sid-pi {
    padding: 80px 0;
  }

  .sid-pi__heading {
    font-size: 36px;
    max-width: 100%;
  }

  .sid-pi__desc {
    max-width: 100%;
  }

  .sid-pi__card-quote {
    font-size: 17px;
  }

  .sid-pi__card-number {
    font-size: 52px;
  }
}

@media (max-width: 767px) {
  .sid-pi {
    padding: 60px 0;
  }

  .sid-pi__wrap {
    margin-bottom: 20px;
  }

  .sid-pi__nav-row {
    margin-bottom: 24px;
  }

  .sid-pi__heading {
    font-size: 30px;
  }

  /* 2-column slider — tighten padding and fonts to fit narrow screens */
  .sid-pi__track {
    gap: 10px;
  }

  .sid-pi__slider-outer {
    padding: 0 20px;
  }

  .sid-pi__col {
    gap: 10px;
  }

  .sid-pi__card {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .sid-pi__card-quote {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .sid-pi__card-name {
    font-size: 13px;
  }

  .sid-pi__card-designation {
    font-size: 11px;
  }

  .sid-pi__card-number {
    font-size: 36px;
    margin-bottom: 6px;
  }

  .sid-pi__card-stat-heading {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .sid-pi__card-stat-desc {
    font-size: 11px;
  }

  .sid-pi__disclaimer p {
    font-size: 12px;
  }
}

@media (max-width: 479px) {
  .sid-pi__heading {
    font-size: 30px;
    line-height: 30px;
  }

  .sid-pi__desc {
    font-size: 16px;
  }
}
