.nic-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  padding-block: 24px;
  box-sizing: border-box;
}

@media (max-width:900px) {
  .nic-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:600px) {
  .nic-team-grid {
    grid-template-columns: 1fr;
  }
}

.nic-team-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: none;
  text-align: center;
  padding-bottom: 20px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid #0201011F;
}


.nic-team-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.nic-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: top center;
}

.nic-team-name {
  margin: 18px 16px 4px;
  font-size: 19px;
  font-weight: 700;
  color: var(--nic-navy);
}

.nic-team-title {
  margin: 0 16px 14px;
  font-size: 14px;
  color: var(--nic-gray);
}

.nic-team-link {
  background: none;
  border: none;
  color: var(--nic-orange) !important;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.nic-arrow {
  transition: transform .15s ease;
  font-weight: 700;
}

.nic-team-card:hover .nic-arrow {
  transform: translateX(4px);
}

/* Overlay */
.nic-team-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.nic-team-overlay.is-active {
  display: flex;
}

.nic-team-modal {
  display: none;
  background: #fff;
  border-radius: 8px;
  max-width: 820px;
  width: 100%;
  padding: 42px 24px;
  box-sizing: border-box;
  position: relative;
  gap: 32px;
  max-height: 90vh;
  overflow: auto;
}

.nic-team-modal.is-active {
  display: flex;
}

@media (max-width:767px) {
  .nic-team-modal {
    flex-direction: column;
    padding: 40px 18px;
  }
}

@media (min-width:768px) {
  .nic-team-modal {
    flex-direction: row;
    align-items: center;
  }
}

.nic-team-modal-photo {
  flex: 0 0 260px;
  overflow: unset;
}

.nic-team-modal-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
}

.nic-team-modal-body h3 {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--nic-navy);
}

.nic-team-modal-title {
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--e-global-color-9021371);
}

.nic-team-modal-bio {
  color: #374151;
  line-height: 1.6;
  font-size: 15px;
}

.nic-team-close {
  position: absolute;
  top: 14px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity .15s ease;
}

.nic-team-close:hover {
  opacity: 1;
}

.nic-team-close svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  .nic-team-close {
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
  }

  .nic-team-modal-photo {
    flex: 0 1 100%;
    max-width: 300px;
  }
}