:root {
  --team-green-dark: #004d00;
  --team-green-accent: #004d00;
  --team-green-light: #eafbe4;
  --team-ink: #16241a;
  --team-white: #ffffff;
}

.team_container {
  padding: 30px 6vw 100px;
  background: var(--team-green-light);
  text-align: center;
}

/* .team_container h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--team-ink);
  margin-bottom: 18px;
} */

.team_container h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 18px;
  background: linear-gradient(
    90deg,
    var(--team-ink),
    var(--team-green-accent),
    #9fe6ac,
    var(--team-green-dark),
    var(--team-ink)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: teamGradientFlow 5s linear infinite;
}

@keyframes teamGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

.team_container h2 span {
  color: var(--team-green-accent);
}

.team_container > p {
  font-family: "Roboto", sans-serif;
  max-width: 780px;
  margin: 0 auto 50px;
  color: #3a4a3d;
  line-height: 1.7;
  font-size: 1.05rem;
}

.team-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.team-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.team-track {
  /* display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); */
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-arrow {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--team-green-dark);
  color: var(--team-white);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.team-arrow:hover {
  background: var(--team-green-accent);
  transform: scale(1.08);
}

.team-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.team-card {
  /* flex: 0 0 calc((100% - 2 * 30px) / 3); */
  flex: 0 0 calc((100% - 3 * 24px) / 4);
  background: var(--team-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(13, 61, 22, 0.08);
  text-align: center;
}

.team-photo {
  /* position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden; */
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.06);
}

.team-socials {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 14px 0;
  background: linear-gradient(to top, rgba(13, 61, 22, 0.85), transparent);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.team-card:hover .team-socials {
  transform: translateY(0);
  opacity: 1;
}

.team-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--team-white);
  color: var(--team-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.team-socials a:hover {
  background: var(--team-green-accent);
  color: var(--team-white);
}

/* .team-info {
  padding: 24px 20px 30px;
}

.team-name {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--team-ink);
  margin: 0 0 4px;
}

.team-role {
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--team-green-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-info .divider {
  width: 40px;
  height: 3px;
  background: var(--team-green-accent);
  margin: 14px auto 16px;
  border-radius: 2px;
}

.team-bio {
  font-family: "Roboto", sans-serif;
  font-size: 0.92rem;
  color: #4a5a4d;
  line-height: 1.55;
} */

.team-info {
  padding: 16px 14px 20px;
}

.team-name {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--team-ink);
  margin: 0 0 3px;
}

.team-role {
  font-family: "Roboto", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--team-green-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-info .divider {
  width: 32px;
  height: 2px;
  background: var(--team-green-accent);
  margin: 10px auto 12px;
  border-radius: 2px;
}

.team-bio {
  font-family: "Roboto", sans-serif;
  font-size: 0.82rem;
  color: #4a5a4d;
  line-height: 1.5;
}

.team-card-dark {
  background: var(--team-green-dark);
}

.team-card-dark .team-name,
.team-card-dark .team-bio {
  color: var(--team-white);
}

.team-card-dark .team-role {
  color: #9fe6ac;
}

.team-card-dark .team-info .divider {
  background: #9fe6ac;
}

.team-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.team-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c6ddc9;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.team-dot.active {
  background: var(--team-green-accent);
  transform: scale(1.3);
}

/* @media (max-width: 1024px) {
  .team-card {
    flex: 0 0 calc((100% - 30px) / 2);
  }
} */
 @media (max-width: 1024px) {
  .team-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 640px) {
  .team-card {
    flex: 0 0 100%;
  }
  .team_container h2 {
    font-size: 1.9rem;
  }
  .team-arrow {
    width: 40px;
    height: 40px;
  }
}
