/* Defines the styles for Clients slider. */
/* Applies styling to .logo-slider. */
.logo-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

/* Applies styling to .logo-track. */
.logo-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
}

/* Applies styling to .logo-track img. */
.logo-track img {
  height: 100px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: grayscale(10%);
  opacity: 0.9;
}

/* Applies styling to .slider-btn. */
.slider-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--teal);
  transition: transform 0.2s ease, color 0.2s ease;
  font-size: 1.6rem;
}

/* Applies styling to .role-nav.slider-btn. */
.role-nav.slider-btn {
  border-color: transparent;
  width: 72px;
  height: 72px;
  font-size: 1.6rem;
  background: transparent;
}

/* Applies styling to .testimonial-nav.slider-btn. */
.testimonial-nav.slider-btn {
  width: 72px;
  height: 72px;
  font-size: 1.6rem;
  background: transparent;
}

/* Applies styling to .slider-btn:hover. */
.slider-btn:hover {
  transform: translateX(4px);
}

/* Applies styling to .slider-btn.left:hover. */
.slider-btn.left:hover {
  transform: translateX(-4px);
}

/* Defines the styles for Previous Work + References premium treatment (elements page). */
/* Applies styling to .page-elements .section-previous-work, .page-elements .section-references. */
.page-elements .section-previous-work,
.page-elements .section-references {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Applies styling to .page-elements .section-previous-work::before, .page-elements .section-references::before. */
.page-elements .section-previous-work::before,
.page-elements .section-references::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Applies styling to .page-elements .section-previous-work::before. */
.page-elements .section-previous-work::before {
  background:
    radial-gradient(54% 70% at 8% 22%, rgba(15, 118, 110, 0.1), transparent 74%),
    radial-gradient(38% 48% at 93% 82%, rgba(164, 225, 215, 0.16), transparent 82%);
}

/* Applies styling to .page-elements .section-references::before. */
.page-elements .section-references::before {
  background:
    radial-gradient(42% 56% at 90% 14%, rgba(15, 118, 110, 0.09), transparent 74%),
    radial-gradient(58% 72% at 6% 92%, rgba(164, 225, 215, 0.14), transparent 82%);
}

/* Applies styling to .page-elements .section-previous-work .inner, .page-elements .section-references .inner. */
.page-elements .section-previous-work .inner,
.page-elements .section-references .inner {
  position: relative;
  z-index: 1;
}

/* Defines the styles for Previous work slider. */
/* Applies styling to .role-slider. */
.role-slider {
  margin-top: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  grid-template-columns: auto 1fr auto;
}

/* Applies styling to .role-track. */
.role-track {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 2rem 0 0;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  justify-content: start;
  align-items: start;
}

/* Applies styling to .role-card. */
.role-card {
  border: 0;
  border-radius: 0;
  padding: 1.35rem;
  background: transparent;
  min-height: 280px;
  width: 100%;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: none;
}

/* Applies styling to .role-header h4. */
.role-header h4 {
  margin: 0 0 0.45rem 0;
  font-size: 1.05rem;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
}

/* Applies styling to .role-meta. */
.role-meta {
  margin: 0 0 1rem 0;
  color: #456064;
  font-size: 0.85rem;
}

/* Applies styling to .role-points. */
.role-points {
  list-style: disc;
  padding-left: 1rem;
  color: #000000;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Applies styling to .role-chips. */
.role-chips {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  overflow: visible;
}

/* Applies styling to .role-chip. */
.role-chip {
  background: rgba(15, 118, 110, 0.1);
  color: #0b5f58;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  white-space: nowrap;
}

/* Applies styling to .role-card:hover. */
.role-card:hover {
  transform: none;
  box-shadow: none;
}

/* Defines the styles for Testimonials. */
/* Applies styling to .testimonial-slider. */
.testimonial-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

/* Applies styling to .testimonial-grid. */
.testimonial-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
}

/* Applies styling to .testimonial-card. */
.testimonial-card {
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 1.25rem 1.15rem 1.1rem;
  box-shadow: none;
  border: 0;
  min-width: 280px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: none;
}

/* Applies styling to .page-elements .role-card, .page-elements .testimonial-card. */
.page-elements .role-card,
.page-elements .testimonial-card {
  border: none;
}

/* Applies styling to .page-elements .section-references .testimonial-nav.slider-btn. */
.page-elements .section-references .testimonial-nav.slider-btn {
  background: transparent;
  box-shadow: none;
  border: 0;
}

/* Applies styling to .testimonial-card::after. */
.testimonial-card::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -42%;
  width: 74%;
  height: 92%;
  border-radius: 58% 42% 64% 36% / 46% 56% 44% 54%;
  background: radial-gradient(circle, rgba(164, 225, 215, 0.1) 0%, rgba(164, 225, 215, 0) 72%);
  pointer-events: none;
}

/* Applies styling to .testimonial-quote. */
.testimonial-quote {
  color: var(--teal);
  font-size: 3rem;
  line-height: 1;
  margin-top: 0.2rem;
}

/* Applies styling to .testimonial-body. */
.testimonial-body {
  display: grid;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

/* Applies styling to .testimonial-text. */
.testimonial-text {
  font-size: 0.98rem;
  font-style: italic;
  margin: 0;
  color: #0f172a;
  line-height: 1.72;
}

/* Applies styling to .testimonial-author. */
.testimonial-author {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3f5d61;
  margin: 0;
}

/* Applies styling to .testimonial-card:hover. */
.testimonial-card:hover {
  transform: none;
  box-shadow: none;
}

/* This changes the layout on max-width: 980px screens. */
@media (max-width: 980px) {
/* Applies styling to .role-slider, .testimonial-slider. */
  .role-slider,
  .testimonial-slider {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

/* Applies styling to .role-nav.slider-btn, .testimonial-nav.slider-btn. */
  .role-nav.slider-btn,
  .testimonial-nav.slider-btn {
    display: none;
  }

/* Applies styling to .role-track. */
  .role-track {
    grid-auto-columns: 100%;
    gap: 0.95rem;
    padding-top: 1rem;
    scroll-padding-inline: 0.1rem;
  }

/* Applies styling to .role-card. */
  .role-card {
    min-height: 0;
    padding: 1rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  }

/* Applies styling to .role-header h4. */
  .role-header h4 {
    min-height: 0;
  }

/* Applies styling to .testimonial-grid. */
  .testimonial-grid {
    grid-auto-columns: 100%;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.1rem;
  }

/* Applies styling to .testimonial-card. */
  .testimonial-card {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 1rem 0.95rem 0.92rem;
  }

/* Applies styling to .testimonial-card::after. */
  .testimonial-card::after {
    right: -26%;
    top: -55%;
    width: 92%;
    height: 118%;
  }

/* Applies styling to .testimonial-body. */
  .testimonial-body {
    min-width: 0;
  }

/* Applies styling to .testimonial-quote. */
  .testimonial-quote {
    font-size: clamp(2rem, 7vw, 2.6rem);
    margin-top: 0;
  }

/* Applies styling to .role-meta, .role-points, .testimonial-text, .testimonial-author. */
  .role-meta,
  .role-points,
  .testimonial-text,
  .testimonial-author {
    overflow-wrap: anywhere;
  }

/* Applies styling to .role-card:hover, .testimonial-card:hover. */
  .role-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
}

/* This changes the layout on min-width: 701px screens. */
@media (min-width: 701px) {
/* Applies styling to .role-points. */
  .role-points {
    padding-left: 1.2rem;
  }

/* Applies styling to .testimonial-text. */
  .testimonial-text {
    font-size: 1.05rem;
  }

/* Applies styling to .testimonial-author. */
  .testimonial-author {
    font-size: 0.85rem;
  }
}

/* This changes the layout on min-width: 981px screens. */
@media (min-width: 981px) {
/* Applies styling to .role-slider. */
  .role-slider {
    gap: 1rem;
  }

/* Applies styling to .role-track. */
  .role-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    padding: 3rem 0 0;
    width: auto;
    justify-content: center;
    scroll-snap-type: none;
  }

/* Applies styling to .role-header h4. */
  .role-header h4 {
    font-size: 1.2rem;
  }

/* Applies styling to .role-meta. */
  .role-meta {
    font-size: 0.95rem;
  }

/* Applies styling to .role-points. */
  .role-points {
    font-size: 1.1rem;
    line-height: 1.8;
  }

/* Applies styling to .role-chip. */
  .role-chip {
    font-size: 0.75rem;
  }

/* Applies styling to .testimonial-grid. */
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }
}
