/* =========================================================
   Public Team Page — Final Clean Version
   B2B LeadBazz
   Desktop: 360px cards with square 360px images
   ========================================================= */

.team-page-360 {
  position: relative;
  overflow: hidden;
  padding: 4.6rem 1.5rem 5rem;
  background:
    radial-gradient(
      circle at 92% 0%,
      color-mix(in srgb, var(--brand-accent, #06b6d4) 13%, transparent),
      transparent 26rem
    ),
    linear-gradient(180deg, #f8faff 0%, #ffffff 72%);
}

.team-page-360__inner {
  position: relative;
  width: min(76rem, 100%);
  margin: 0 auto;
}

.team-page-360__heading {
  max-width: 52rem;
  margin: 0 auto;
  color: var(--brand-midnight, #0f172a);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-align: center;
}

.team-page-360__intro {
  max-width: 48rem;
  margin: 0.85rem auto 0;
  color: var(--brand-muted, #64748b);
  font-size: 0.97rem;
  line-height: 1.7;
  text-align: center;
}

.team-page-360__grid {
  display: grid;
  grid-template-columns: repeat(2, 360px);
  justify-content: center;
  align-items: stretch;
  gap: 1.4rem;
  width: 100%;
  margin: 2.5rem auto 0;
}

.team-page-360__card {
  display: flex;
  width: 360px;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--brand-line, #e2e8f0);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.team-page-360__card:hover {
  transform: translateY(-4px);
  border-color: color-mix(
    in srgb,
    var(--brand-secondary, #7c3aed) 40%,
    #ffffff
  );
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
}

.team-page-360__photo,
.team-page-360__card > img,
.team-page-360__card img.team-page-360__photo {
  display: block;
  width: 360px;
  min-width: 360px;
  max-width: 360px;
  height: 360px;
  min-height: 360px;
  max-height: 360px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(145deg, #f6f4ff, #effafd);
}

.team-page-360__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  padding: 1.15rem 1.2rem 1.25rem;
}

.team-page-360__name {
  margin: 0;
  color: var(--brand-midnight, #0f172a);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.3;
}

.team-page-360__title {
  margin: 0.32rem 0 0;
  color: var(--brand-secondary, #7c3aed);
  font-size: 0.75rem;
  font-weight: 760;
  line-height: 1.45;
}

.team-page-360__bio {
  display: -webkit-box;
  margin: 0.62rem 0 0;
  overflow: hidden;
  color: var(--brand-muted, #64748b);
  font-size: 0.76rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.team-page-360__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.9rem;
}

.team-page-360__links:empty {
  display: none;
}

.team-page-360__link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.68rem;
  border: 1px solid #ddd9f3;
  border-radius: 0.58rem;
  color: #40358f;
  background: #faf9ff;
  font-size: 0.72rem;
  font-weight: 760;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.team-page-360__link:hover {
  transform: translateY(-1px);
  border-color: #c9c1ef;
  background: #f2efff;
}

.team-page-360__empty {
  max-width: 48rem;
  margin: 2.5rem auto 0;
  padding: 1.7rem;
  border: 1px solid var(--brand-line, #e2e8f0);
  border-radius: 1rem;
  color: var(--brand-muted, #64748b);
  background: #ffffff;
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.055);
  text-align: center;
}

@media (max-width: 820px) {
  .team-page-360 {
    padding: 4rem 1rem 4.5rem;
  }

  .team-page-360__grid {
    grid-template-columns: 340px;
    gap: 1.1rem;
    margin-top: 2rem;
  }

  .team-page-360__card {
    width: 340px;
  }

  .team-page-360__photo,
  .team-page-360__card > img,
  .team-page-360__card img.team-page-360__photo {
    width: 340px;
    min-width: 340px;
    max-width: 340px;
    height: 340px;
    min-height: 340px;
    max-height: 340px;
  }
}

@media (max-width: 420px) {
  .team-page-360 {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .team-page-360__heading {
    font-size: 2rem;
  }

  .team-page-360__intro {
    font-size: 0.9rem;
  }

  .team-page-360__grid {
    grid-template-columns: minmax(0, 100%);
  }

  .team-page-360__card {
    width: 100%;
  }

  .team-page-360__photo,
  .team-page-360__card > img,
  .team-page-360__card img.team-page-360__photo {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1;
  }

  .team-page-360__body {
    padding: 1rem;
  }
}
