/* ===== TEAM SIDEBAR ===== */

.team-sidebar {
   position: absolute;
  left: 0;
  top: 850px;   /* adjust slightly if needed */
  width: 220px;
  padding: 20px;
  z-index: 9999;
}

.team-sidebar h3 {
  margin-bottom: 15px;
  font-weight: 600;
}

.team-btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  background: #e4572e;
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 500;
  border-radius: 6px;
}

.team-btn:hover {
  background: #c9451f;
  transform: translateX(5px);
}

/* ===== TEAM MODAL ===== */

.team-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.team-modal-content {
  background: #ffffff;
  width: 420px;
  max-width: 90%;
  margin: 8% auto;
  padding: 30px;
  border-radius: 14px;
  position: relative;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-modal-content h2 {
  margin-bottom: 5px;
}

.team-modal-content h4 {
  color: #e4572e;
  margin-bottom: 15px;
}

.team-modal-content p {
  line-height: 1.6;
  font-size: 14px;
}

/* Close (X) */
.team-close {
  position: absolute;
  right: 18px;
  top: 15px;
  font-size: 22px;
  cursor: pointer;
}

/* Buttons */
.modal-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.linkedin-btn {
  background: #0077b5;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.3s ease;
}

.linkedin-btn:hover {
  background: #005f8d;
}

.close-btn-modal {
  background: #555;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.3s ease;
}

.close-btn-modal:hover {
  background: #333;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .team-sidebar {
    position: relative;
    width: 100%;
    top: 0;
    display: flex;
    gap: 10px;
  }

  .team-btn {
    flex: 1;
  }
}