.our-team {
  margin-top: 8rem;
  padding: 40px 20px;
  text-align: center;
}

.team-container {
  display: flex;
  margin-top: 2rem;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.team-member {
  width: 500px;
  cursor: pointer;
  text-align: center;
}

.team-member img {
  width: 300px;
  height: 360px;
  object-fit: cover;
  border-radius: 10%;
  border: 4px solid #8c4c4c;
  transition: transform 0.3s;
}

.team-member:hover img {
  transform: scale(1.05);
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 1000;
}

.popup-content {
  background: white;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 10px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  width: 40px;
  border-radius: 10px;
  background: #8c4c4c;
  border: none;
  cursor: pointer;
}

.team-container p{
    margin-top: 1rem;
    font-size: 22px;
    color: aliceblue;
}

.popup-image {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #8c4c4c;
  margin: 0 auto 20px;
  display: block;
}


/* Responsive Design */
@media (max-width: 768px) {
  .team-container {
    flex-direction: column;
    align-items: center;
  }
  .our-team {
    margin-top: 16rem;
    padding: 0;
  }
  .team-member {
    width: auto;
  }
}
