/* ============================================================
   REVERT — Team carousel (photo on top, text below, like the ref)
   ============================================================ */
.team { background: #eef4fb; padding: 20px 0 100px; overflow: hidden; }
.team-inner { position: relative; }
.team-head { text-align: center; margin-bottom: 44px; padding: 0 20px; }
.team-head h2 {
  margin: 0;
  font-family: "Zimula", "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  letter-spacing: -1.8px;
  color: #10243a;
}
.team-head p { margin: 13px 0 0; font-size: 16px; color: #5c6b7a; }
/* green pill on "noastra", same spirit as the h1 rotator word */
.team-hl {
  display: inline-block;
  background: #28CE68;
  color: #10243a;
  padding: 0 .3em;
  border-radius: .24em;
  line-height: 1.12;
}

/* carousel viewport — drag / scroll, centred so neighbours peek */
.team-carousel {
  max-width: 1340px;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: visible;
  cursor: grab;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none; scrollbar-width: none;
}
.team-carousel::-webkit-scrollbar { display: none; }
.team-carousel.is-drag { cursor: grabbing; }
.team-carousel.is-drag * { pointer-events: none; }
.team-row { display: flex; align-items: stretch; gap: 22px; width: max-content; padding: 4px 22px 14px; }

.tm-card {
  position: relative;
  width: 332px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: 0 0 0 1px rgba(16,24,40,.06);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.tm-card:hover { transform: translateY(-5px); }

.tm-photo-wrap { flex: none; height: 372px; overflow: hidden; }
.tm-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  transition: transform .5s ease;
}
.tm-card:hover .tm-photo { transform: scale(1.04); }

.tm-body { flex: 1; display: flex; flex-direction: column; padding: 16px 20px 18px; }
.tm-quote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px; line-height: .6;
  color: #cfd6de; font-weight: 700;
  height: 18px;
}
.tm-desc { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: #3a4654; }

.tm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.tm-id { min-width: 0; }
.tm-id b { display: block; font-size: 15.5px; font-weight: 700; color: #10243a; letter-spacing: -0.2px; }
.tm-id span { display: block; font-size: 13px; color: #8893a0; margin-top: 1px; }

/* square arrow button — same recipe as the header button */
.tm-arrow {
  width: 44px; height: 44px; flex: none;
  border: none; cursor: pointer;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #141414;
  background-image: linear-gradient(198deg, #ffff7a, #fefe46 45%, #e6e62a);
  outline: 1px solid rgba(255,255,255,.6); outline-offset: -1px;
  box-shadow: -3px 3px 5px rgba(70,62,0,.18), -1px 1px 2px rgba(70,62,0,.25), inset 0 -2px 0 rgba(120,110,0,.18);
  transition: transform .2s ease;
}
.tm-arrow:hover { transform: translate(2px, -2px); }
.tm-arrow svg { width: 18px; height: 18px; }

/* carousel navigation — a pair of arrows, side by side, under the subtitle */
.team-nav-row { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.team-nav {
  width: 48px; height: 48px;
  border: none; cursor: pointer;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #10243a;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16,24,40,.12), 0 0 0 1px rgba(16,24,40,.06);
  transition: transform .18s ease, opacity .2s ease, box-shadow .18s ease;
}
.team-nav:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(16,24,40,.18); }
.team-nav svg { width: 20px; height: 20px; }
.team-nav:disabled { opacity: .35; pointer-events: none; }

@media (max-width: 760px) {
  .team { padding-bottom: 76px; }
  .team-head { margin-bottom: 30px; }
  .tm-card { width: 272px; border-radius: 22px; }
  .tm-photo-wrap { height: 300px; }
}
