.stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat-card {
  /*border-left: 2px solid white;*/
  padding-left: 20px;
}

.stat-card h3 {
  font-size: 2.5rem;
  color: #00c2a8; /* fresh grønn som matcher investeringsprofil */
  margin-bottom: 5px;
}

.stat-card p {
  font-size: 1rem;
  color: #9b9a9a;
}

.medlem_container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 600px;
  padding: 10px;
  border-radius: 5px;
  padding: 0px;
  text-align: center;
}

.medlem_cover img {
  width: 100%;
  height: 200px; /* juster høyde på banner */
  object-fit: cover;
  display: block;
}

/* Profilbildet */
.profile-pic {
  position: relative;
  margin-top: -60px; /* flytter profilbildet oppå cover */
}
.profile-pic img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #fff; /* gir "ramme" rundt bildet */
  object-fit: cover;
}

.medlem_container img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.medlem_container h3 {
  font-size: 1.5rem;
  color: rgb(16, 66, 66);
  margin-bottom: 10px;
  margin: 4px 0 4px;
  font-size: clamp(1.1rem, 1.2vw + 0.9rem, 1.5rem);

  font-weight: 700;
  letter-spacing: 0.2px;
}
.medlem_container p {
  font-size: 1rem;
  color: black;
  text-align: center;
  margin-bottom: 20px;
}
.medlem_social {
  display: flex;
  flex-direction: row;
  height: 25px;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: #fff;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke-width: 2;
}

@media (prefers-reduced-motion: reduce) {
  .member-card,
  .icon-btn {
    transition: none;
  }

  .image-content {
    padding: 0%;
    max-height: 200px;
    margin-top: 0px;
    margin-bottom: 0px;
  }
  .image-content img {
    height: 200px;
  }
}
