.team-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 0px 20px;
}

.main-photo-wrapper {
  position: relative;
  z-index: 1;
}

.main-photo-wrapper img {
  width: 100%;
  max-width: 850px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.team-details-row {
  display: flex;
  justify-content: center;
  gap: 5rem;

  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.member-card,
.member-card2 {
  flex: 0 1 350px;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--primary-color);
  position: relative;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.5s;
}

.member-card::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 70%;
  transform: translateX(-50%);
  width: 2px;
  height: 150px;
  background: linear-gradient(
    to top,
    var(--primary-color),
    rgba(212, 163, 115, 0.2)
  );
  z-index: 11;
}

.member-card::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 150px);
  left: 70%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  z-index: 12;
  box-shadow: 0 0 10px rgba(212, 163, 115, 0.8);
}

.member-card2::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 30%;
  transform: translateX(-50%);
  width: 2px;
  height: 150px;
  background: linear-gradient(
    to top,
    var(--primary-color),
    rgba(212, 163, 115, 0.2)
  );
  z-index: 11;
}

.member-card2::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 150px);
  left: 30%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  z-index: 12;
  box-shadow: 0 0 10px rgba(212, 163, 115, 0.8);
}

.team-footer-text {
  max-width: 700px;
  margin: 100px auto 40px;
  padding: 0 20px;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 1.5s;
}

.team-footer-text h2 {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.team-footer-text p {
  font-size: 1.1rem;
  color: #555;
  font-style: italic;
  line-height: 1.8;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.member-card h3,
.member-card2 h3 {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.member-card .role,
.member-card2 .role {
  display: block;
  color: var(--primary-color);
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.header-tekst {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.header-tekst h1 {
  margin-top: 100px;
  font-family: "Playfair Display", serif;
  color: var(--primary-color);
}

.header-tekst hr {
  width: 50px;
  border: 1px solid var(--primary-color);
  margin: 20px auto;
}

.header-tekst h1,
.header-tekst hr {
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobiele versie */
@media (max-width: 768px) {
  .team-details-row {
    flex-direction: column;
    margin-top: 20px;
    gap: 20px;
    align-items: center;
  }
  .member-card::before,
  .member-card::after,
  .member-card2::before,
  .member-card2::after {
    display: none;
  }
  .member-card,
  .member-card2 {
    opacity: 1;
    animation: none;
    width: 90%;
  }
  .team-footer-text {
    opacity: 1;
    animation: none;
    margin-top: 40px;
  }
  .member-card,
  .member-card2 {
    flex: none;
    width: 90%;
    padding: 1.2rem;
    min-height: auto;
  }
  .main-photo-wrapper img {
    height: 300px;
    object-fit: cover;
    object-position: center;
  }
}
