/* KAI Website v19 — Team carousel, matching the client-logo slider behaviour. */
.kai-team-section > .container {
  width: min(1410px, calc(100% - 48px)) !important;
  max-width: none !important;
}
.kai-team-section .team-carousel {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
}
.kai-team-section .team-carousel-arrow {
  position: relative;
  z-index: 2;
  appearance: none;
  border: 1px solid #b5d5d5;
  border-radius: 50%;
  background: #fff;
  color: #17666e;
  width: 46px;
  height: 46px;
  font: 500 31px/1 Arial, sans-serif;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 12px rgba(16, 59, 65, .08);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.kai-team-section .team-carousel-arrow:hover:not(:disabled),
.kai-team-section .team-carousel-arrow:focus-visible {
  background: #178f98;
  color: #fff;
  transform: translateY(-2px);
}
.kai-team-section .team-carousel-arrow:disabled {opacity:.32;cursor:default;}
.kai-team-section .team-carousel-viewport {
  min-width:0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #a5cfcd transparent;
  padding: 8px 2px 15px;
  border-radius: 11px;
}
.kai-team-section .team-carousel-viewport:focus-visible {
  outline: 3px solid #1d989d;
  outline-offset: 3px;
}
.kai-team-section .team-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  grid-auto-flow: unset !important;
  grid-auto-columns: unset !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  column-gap: 22px !important;
  gap: 22px !important;
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
}
.kai-team-section .team-card,
.kai-team-section .team-card:last-child {
  flex: 0 0 286px !important;
  display: flex !important;
  flex-direction: column !important;
  width: 286px !important;
  min-width: 286px !important;
  max-width: 286px !important;
  min-height: 430px !important;
  height: auto !important;
  grid-column: auto !important;
  justify-self: auto !important;
  border: 1px solid #d5e5e4;
  border-radius: 12px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(13, 55, 62, .045);
}
.kai-team-section .team-photo {
  position: relative;
  flex: 0 0 274px !important;
  height: 274px !important;
  min-height: 274px !important;
  max-height: 274px !important;
  width: 100% !important;
  overflow: hidden;
}
.kai-team-section .team-photo img {
  display: block;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  width: 100% !important;
  object-fit: cover;
  object-position: center 22%;
}
.kai-team-section .team-info {
  flex: 1 1 auto !important;
  padding: 19px 21px 24px !important;
  min-width: 0;
  justify-content: flex-start !important;
}
.kai-team-section .team-info h3 {
  margin: 0 0 6px !important;
  font-size: 21px !important;
  line-height: 1.25 !important;
}
.kai-team-section .team-role {
  font-size: 12px !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}
.kai-team-section .team-info p {
  margin-top: 10px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
.kai-team-section .team-photo-note {font-size: 10px !important;}
.kai-team-section .team-carousel-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 10px 65px 0;
  color: #4b777b;
  font-size: 13px;
  letter-spacing: .02em;
}
.kai-team-section #kai-team-position {font-weight: 800; color: #188d96; font-variant-numeric:tabular-nums;}
@media(max-width: 650px){
  .kai-team-section > .container{width:calc(100% - 28px) !important;}
  .kai-team-section .team-carousel{grid-template-columns:34px minmax(0,1fr) 34px;gap:6px;}
  .kai-team-section .team-carousel-arrow{width:34px;height:38px;border-radius:11px;font-size:27px;}
  .kai-team-section .team-grid{gap:14px !important;}
  .kai-team-section .team-card,
  .kai-team-section .team-card:last-child{
    width: min(270px, calc(100vw - 126px)) !important;
    min-width: min(270px, calc(100vw - 126px)) !important;
    max-width: min(270px, calc(100vw - 126px)) !important;
    flex-basis: min(270px, calc(100vw - 126px)) !important;
  }
  .kai-team-section .team-photo{height:240px !important;min-height:240px !important;flex-basis:240px !important;}
  .kai-team-section .team-info{padding:17px 17px 22px !important;}
  .kai-team-section .team-info h3{font-size:19px !important;}
  .kai-team-section .team-carousel-footer{padding: 8px 42px 0;}
}
@media (prefers-reduced-motion: reduce){
  .kai-team-section .team-carousel-viewport {scroll-behavior: auto;}
  .kai-team-section .team-carousel-arrow{transition:none;}
}
