/* Our Team - Hope Verify International */

.team-hero-mesh {
  background-color: #0f172a;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(30, 64, 175, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.team-filter-btn {
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.team-filter-btn.is-active {
  background: #1e40af;
  color: #fff;
  border-color: #1e40af;
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.35);
}

.team-section-anchor {
  scroll-margin-top: 6rem;
}

/* Cards */
.team-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
}

.team-card:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  transform: translateY(-3px);
}

.team-card-photo {
  position: relative;
  width: 100%;
  height: 220px;
  max-height: 220px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  overflow: hidden;
}

.team-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center top;
}

.team-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-role-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.team-card-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.team-card-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e40af;
  margin: 0 0 0.75rem;
}

.team-card-bio {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-card-open {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e40af;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.team-card-open:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

/* Featured founder row */
.team-card-featured {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .team-card-featured {
    flex-direction: row;
    align-items: stretch;
  }

  .team-card-featured .team-card-photo {
    width: 260px;
    max-width: 260px;
    height: auto;
    min-height: 240px;
    max-height: 280px;
  }

  .team-card-featured .team-card-photo img {
    max-height: 280px;
  }

  .team-card-featured .team-card-body {
    padding: 1.75rem 2rem;
  }
}

/* Profile modal */
.team-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.team-modal-backdrop.is-open {
  display: flex;
}

.team-modal-panel {
  width: 100%;
  max-width: 440px;
  max-height: min(85vh, 520px);
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: teamModalIn 0.3s ease-out;
}

@keyframes teamModalIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.team-modal-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.team-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 9999px;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.team-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.team-modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.team-modal-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 480px) {
  .team-modal-profile {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem;
  }
}

.team-modal-avatar {
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  max-width: 88px;
  max-height: 88px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}

.team-modal-avatar img {
  display: block;
  width: 88px;
  height: 88px;
  max-width: 88px;
  max-height: 88px;
  object-fit: cover;
  object-position: center top;
}

.team-modal-meta {
  flex: 1;
  min-width: 0;
}

.team-modal-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.team-modal-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e40af;
  margin: 0 0 0.5rem;
}

.team-modal-group {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.75rem;
}

.team-modal-bio {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

.team-modal-bio-full {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

@media (min-width: 480px) {
  .team-modal-bio-full {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}
