/* KS Testimonials — Elementor widget */

.ks-el-root.ks-el-testimonials {
  --ks-tst-black: #00321f;
  --ks-tst-muted: #4a6b5c;
  --ks-tst-harbor: #014c65;
  --ks-tst-growth: #29612a;
  --ks-tst-white: #ffffff;
  --ks-tst-bg: #ffffff;
  --ks-tst-side: clamp(1rem, 8vw, 7.5rem);
  --ks-tst-card-w: 240px;
  --ks-tst-card-h: 280px;
  --ks-tst-card-radius: 20px;
  --ks-tst-arrow-bg: #00321f;
  --ks-tst-arrow-color: #ffffff;
  --ks-tst-duration: 0.6s;
  --ks-tst-ease: power2.inOut;
  --ks-tst-font: "Familjen Grotesk", sans-serif;

  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--ks-tst-font);
  background: var(--ks-tst-bg);
  color: var(--ks-tst-black);
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

.ks-el-root.ks-el-testimonials *,
.ks-el-root.ks-el-testimonials *::before,
.ks-el-root.ks-el-testimonials *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ks-el-root.ks-el-testimonials h2,
.ks-el-root.ks-el-testimonials p {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  text-transform: inherit;
}

.ks-el-root.ks-el-testimonials a {
  font-family: inherit;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ks-el-root.ks-el-testimonials button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  font-family: inherit;
}

.ks-el-root.ks-el-testimonials [role="button"] {
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.ks-el-root.ks-el-testimonials svg {
  display: block;
  fill: none;
  stroke: currentColor;
}

.ks-el-root.ks-el-testimonials img {
  border: none;
  box-shadow: none;
  vertical-align: middle;
  display: block;
}

.ks-el-root.ks-el-testimonials .tst {
  width: 100%;
  position: relative;
}

.ks-el-root.ks-el-testimonials .tst__outer,
.ks-el-root.ks-el-testimonials .tst__animation {
  width: 100%;
  height: auto;
  position: relative;
}

.ks-el-root.ks-el-testimonials .tst__section {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  padding: 0 var(--ks-tst-side);
  overflow-x: clip;
}

.ks-el-root.ks-el-testimonials .tst__container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1400px;
  min-height: 0;
  margin: 0 auto;
}

.ks-el-root.ks-el-testimonials .tst__content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(17rem, 0.92fr);
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: clamp(1.25rem, 4vw, 3.25rem);
  row-gap: 1.25rem;
  align-items: center;
  min-height: 0;
  padding: 2rem 0 1.75rem;
}

.ks-el-root.ks-el-testimonials .tst__title-wrap {
  grid-column: 1 / -1;
  flex: none;
  max-width: none;
  width: 100%;
  margin: 0;
  text-align: left;
}

.ks-el-root.ks-el-testimonials .tst__title {
  font-size: 40px;
  line-height: 1em;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--ks-tst-black);
}

.ks-el-root.ks-el-testimonials .tst__visual-wrap {
  grid-column: 1;
  grid-row: 2;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--ks-tst-card-h);
}

.ks-el-root.ks-el-testimonials .tst__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(calc(var(--ks-tst-card-w) * 1.65), 100%);
  max-width: 100%;
  height: var(--ks-tst-card-h);
  position: relative;
  flex-shrink: 1;
  min-width: 0;
}

.ks-el-root.ks-el-testimonials .tst__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ks-tst-card-w);
  height: var(--ks-tst-card-h);
  margin: calc(var(--ks-tst-card-h) / -2) 0 0 calc(var(--ks-tst-card-w) / -2);
  border-radius: var(--ks-tst-card-radius);
  overflow: hidden;
  transform-origin: center center;
}

.ks-el-root.ks-el-testimonials .tst__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--ks-tst-card-radius);
}

.ks-el-root.ks-el-testimonials .tst__card--1 { z-index: 10; transform: scale(1) translate(0); }
.ks-el-root.ks-el-testimonials .tst__card--2 { z-index: 5; transform: translate(25%) scale(0.95); }
.ks-el-root.ks-el-testimonials .tst__card--3 { z-index: 2; transform: translate(50%) scale(0.85); }
.ks-el-root.ks-el-testimonials .tst__card--4 { z-index: 2; transform: translate(-50%) scale(0.85); }
.ks-el-root.ks-el-testimonials .tst__card--5 { z-index: 5; transform: translate(-25%) scale(0.95); }

.ks-el-root.ks-el-testimonials .tst__bottom {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  flex: none;
  justify-content: center;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
}

.ks-el-root.ks-el-testimonials .tst__stars {
  display: flex;
  justify-content: flex-start;
}

.ks-el-root.ks-el-testimonials .tst__star {
  width: 24px;
  height: 24px;
}

.ks-el-root.ks-el-testimonials .tst__star img {
  width: 24px;
  height: 24px;
}

.ks-el-root.ks-el-testimonials .tst__quotes {
  max-width: none;
  width: 100%;
  color: var(--ks-tst-muted);
  text-align: left;
  margin: 0;
  position: relative;
}

.ks-el-root.ks-el-testimonials .tst__quote {
  font-size: 18px;
  line-height: 1.4em;
  font-weight: 400;
  color: var(--ks-tst-muted);
  position: relative;
}

.ks-el-root.ks-el-testimonials .tst__quote:not(.tst__quote--first) {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.ks-el-root.ks-el-testimonials .tst__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  width: 100%;
  margin-top: 0.35rem;
  position: relative;
}

.ks-el-root.ks-el-testimonials .tst__count {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 5px;
  width: 100px;
  flex: none;
}

.ks-el-root.ks-el-testimonials .tst__nums {
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.ks-el-root.ks-el-testimonials .tst__num,
.ks-el-root.ks-el-testimonials .tst__total {
  font-size: 14px;
  line-height: 1.4em;
  font-weight: 500;
  color: var(--ks-tst-black);
}

.ks-el-root.ks-el-testimonials .tst__num {
  position: relative;
}

.ks-el-root.ks-el-testimonials .tst__num:not(.tst__num--first) {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.ks-el-root.ks-el-testimonials .tst__names {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  text-transform: uppercase;
  max-width: none;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  position: relative;
  inset: auto;
}

.ks-el-root.ks-el-testimonials .tst__name {
  font-size: 18px;
  line-height: 1.4em;
  font-weight: 500;
  color: var(--ks-tst-black);
  text-transform: uppercase;
  position: relative;
}

.ks-el-root.ks-el-testimonials .tst__name:not(.tst__name--first) {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.ks-el-root.ks-el-testimonials .tst__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.ks-el-root.ks-el-testimonials .tst__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--ks-tst-muted);
  font-size: 16px;
  line-height: 1.4em;
  font-weight: 400;
  text-transform: uppercase;
  padding: 8px 4px;
  cursor: pointer;
}

.ks-el-root.ks-el-testimonials .tst__btn:hover {
  color: var(--ks-tst-black);
}

.ks-el-root.ks-el-testimonials .tst__arrow:hover {
  opacity: 0.85;
}

.ks-el-root.ks-el-testimonials.is-busy .tst__btn,
.ks-el-root.ks-el-testimonials.is-busy .tst__arrow {
  pointer-events: none;
}

.ks-el-root.ks-el-testimonials .tst__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 100px;
  background: var(--ks-tst-arrow-bg);
  color: var(--ks-tst-arrow-color);
  cursor: pointer;
  z-index: 20;
  padding: 0;
}

.ks-el-root.ks-el-testimonials .tst__arrow--prev {
  left: 0;
}

.ks-el-root.ks-el-testimonials .tst__arrow--next {
  right: 0;
}

.ks-el-root.ks-el-testimonials .tst__arrow svg {
  width: 18px;
  height: 18px;
  color: var(--ks-tst-arrow-color);
  stroke: var(--ks-tst-arrow-color);
  pointer-events: none;
}

.ks-el-root.ks-el-testimonials .tst__arrow--prev svg {
  transform: rotate(180deg);
}

.ks-el-root.ks-el-testimonials.is-static .tst__section,
.ks-el-root.ks-el-testimonials.is-static .tst__container,
.ks-el-root.ks-el-testimonials.is-static .tst__content {
  min-height: 0;
  height: auto;
}

.ks-el-root.ks-el-testimonials.is-static .tst__quote:not(.tst__quote--first),
.ks-el-root.ks-el-testimonials.is-static .tst__num:not(.tst__num--first),
.ks-el-root.ks-el-testimonials.is-static .tst__name:not(.tst__name--first) {
  position: relative;
  opacity: 1;
  inset: auto;
}

.ks-el-root.ks-el-testimonials.is-static .tst__card {
  position: relative;
  left: auto;
  top: auto;
  margin: 8px auto;
  transform: none;
}

.elementor-editor-active .ks-el-root.ks-el-testimonials .tst__section,
.elementor-editor-active .ks-el-root.ks-el-testimonials .tst__container,
.elementor-editor-active .ks-el-root.ks-el-testimonials .tst__content {
  min-height: 0 !important;
  height: auto !important;
}

.elementor-editor-active .ks-el-root.ks-el-testimonials .tst__visual-wrap {
  min-height: calc(var(--ks-tst-card-h) + 24px);
}

@media (max-width: 899px) {
  .ks-el-root.ks-el-testimonials .tst__title-wrap {
    max-width: none;
  }

  .ks-el-root.ks-el-testimonials .tst__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 1rem;
    align-items: stretch;
  }

  .ks-el-root.ks-el-testimonials .tst__visual-wrap {
    grid-column: 1;
    grid-row: 2;
  }

  .ks-el-root.ks-el-testimonials .tst__bottom {
    grid-column: 1;
    grid-row: 3;
  }
}

@media (max-width: 767px) {
  .ks-el-root.ks-el-testimonials {
    --ks-tst-card-w: min(186px, 42vw);
    --ks-tst-card-h: min(214px, 46vw);
  }

  .ks-el-root.ks-el-testimonials .tst__section {
    padding-left: max(min(var(--ks-tst-side), 2.5rem), env(safe-area-inset-left, 0px));
    padding-right: max(min(var(--ks-tst-side), 2.5rem), env(safe-area-inset-right, 0px));
  }

  .ks-el-root.ks-el-testimonials .tst__visual {
    width: min(calc(var(--ks-tst-card-w) * 1.85), 100%);
  }

  .ks-el-root.ks-el-testimonials .tst__arrow {
    display: none;
  }
}

@media (max-width: 479px) {
  .ks-el-root.ks-el-testimonials {
    --ks-tst-card-w: min(146px, 40vw);
    --ks-tst-card-h: min(190px, 52vw);
  }

  .ks-el-root.ks-el-testimonials .tst__section {
    padding-left: max(min(var(--ks-tst-side), 1.875rem), env(safe-area-inset-left, 0px));
    padding-right: max(min(var(--ks-tst-side), 1.875rem), env(safe-area-inset-right, 0px));
  }

  .ks-el-root.ks-el-testimonials .tst__title {
    font-size: 20px;
  }

  .ks-el-root.ks-el-testimonials .tst__bar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .ks-el-root.ks-el-testimonials .tst__names {
    order: -1;
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    inset: auto;
  }

  .ks-el-root.ks-el-testimonials .tst__count {
    width: auto;
  }

  .ks-el-root.ks-el-testimonials .tst__nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ks-el-root.ks-el-testimonials.is-respect-motion .tst__section,
  .ks-el-root.ks-el-testimonials.is-respect-motion .tst__container,
  .ks-el-root.ks-el-testimonials.is-respect-motion .tst__content {
    min-height: 0;
    height: auto;
  }
}
