/* =========================
BESTUUR WEERGAVE
========================= */
.team {
  padding: 80px 0;
  background: #f9f9f9;
}

.team h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 8px;
  color: #1b2845;
}

.team-subtitle {
  text-align: center;
  color: #5f6f82;
  margin-bottom: 50px;
  font-size: 14px;
  font-style: italic;
}

/* =========================
GRID
========================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /*250px*/
  gap: 20px;
  justify-items: center;
  max-width: 1200px; /*900*/
  margin: 0 auto;
}

/* =========================
TEAM ITEM
========================= */
.team-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(12,102,168,0.12);
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  width: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.team-item:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

/* IMAGE */
.team-item img {
  width: 150px; /* 70 */
  height: 150px; /* 70 */
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* TEXT */
.team-item h3 {
  font-size: 16px;
  margin: 0;
  color: #1b2845;
  font-weight: 600;
}

.team-item p {
  font-size: 13px;
  color: #0c66a8;
  margin: 0;
}

/* OVERLAY */
.team-item::after {
  content: "Contact informatie";
  position: absolute;
  inset: 0;
  background: rgba(12,102,168,0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  opacity: 0;
  border-radius: 16px;
  transition: opacity 0.3s ease;
}

.team-item:hover::after {
  opacity: 1;
}

/* =========================
MODAL
========================= */
.modal {
  display: none;
  opacity: 0;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  transition: opacity 0.3s ease;
  z-index: 10000;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  background: #f3f6fa;
  margin: 80px auto;
  padding: 30px;
  border-radius: 22px;
  max-width: 900px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  position: relative;
  animation: fadeIn 0.3s ease forwards;
}

/* =========================
MODAL HEADER
========================= */
.modal-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(12,102,168,0.15);
}

/* GROTE FOTO */
.modal-header img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 5px solid #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* NAAM + FUNCTIE */
.modal-header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* NAAM */
.modal-header-text h2 {
  font-size: 26px;
  margin: 0;
  color: #1b2845;
  font-weight: 700;
  white-space: nowrap;
}

/* FUNCTIE */
.modal-header-text p {
  margin-top: 6px;
  font-size: 16px;
  color: #0c66a8;
  opacity: 0.9;
}

/* =========================
MODAL CONTENT
========================= */
.modal-content p {
  font-size: 15px;
  color: #1b2845;
  margin: 10px 0;
}

.modal-content strong {
  color: #0c66a8;
}

.modal-content a {
  color: #0c66a8;
  font-weight: 600;
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}

/* CLOSE BUTTON */
.modal .close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 22px;
  font-weight: bold;
  color: #1b2845;
  cursor: pointer;
}

.modal .close:hover {
  color: #0c66a8;
}

/* ANIMATION */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 768px) {
  .modal-content {
    width: 92%;
    padding: 20px;
  }

  .modal-header {
    flex-direction: column;
    text-align: center;
  }

  .modal-header img {
    width: 110px;
    height: 110px;
  }

  .modal-header-text h2 {
    white-space: normal;
    font-size: 22px;
  }
}