/* postdoc.css */

.profile-card.postdoc {
  background: linear-gradient(to right, rgba(45, 40, 90, 0.7), rgba(20, 20, 60, 0.5));
  border-left: 6px solid rgba(120, 130, 255, 0.4);
  color: #f0f2ff;
  box-shadow: 0 10px 20px rgba(50, 50, 120, 0.3);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  height: 200px;
  width: 550px; /* Same fixed width as faculty */
  margin: 20px auto;
  padding: 0;
}

.profile-card.postdoc .profile-content {
  display: flex;
  width: 100%;
}

.profile-card.postdoc .photo-wrapper {
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  padding-left: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
}

.profile-card.postdoc .photo-wrapper img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 2px solid rgba(120, 130, 255, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card.postdoc .photo-wrapper:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.profile-card.postdoc .profile-details {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-card.postdoc h3 {
  color: #dce5ff;
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 6px;
}

.profile-card.postdoc p {
  color: #d0d8f5;
  margin: 4px 0;
  font-size: 0.95em;
}

.profile-card.postdoc .research-link {
  display: inline-block;
  color: #a5baff;
  font-weight: bold;
  margin-top: 10px;
  text-decoration: none;
  position: relative;
}

.profile-card.postdoc .research-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Tooltip */
.profile-card.postdoc .hover-text {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 60, 0.95);
  color: #eef3ff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85em;
  max-width: 240px;
  margin-top: 10px;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  white-space: normal;
  pointer-events: none;
  text-align: center;
  font-style: italic;
}

.profile-card.postdoc .hover-text::before {
  content: "Take to the fascinating research work of this scholar.";
  font-style: normal;
  color: #a3d8ff;
  display: block;
}

/* Show hover text */
.photo-wrapper:hover .hover-text,
.research-link:hover .hover-text {
  display: block;
}

.hidden-card {
  display: none !important;
}

/* Responsive design */
@media (max-width: 900px) {
  .profile-card.postdoc {
    width: 95%;
    flex-direction: column;
    height: auto;
    padding: 16px 12px;
  }

  .profile-card.postdoc .profile-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-card.postdoc .photo-wrapper {
    width: 100%;
    max-width: 120px; /* Reduced image size */
    padding: 8px 0;
    margin: 0 auto;
    justify-content: center;
  }

  .profile-card.postdoc .photo-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
  }

  .profile-card.postdoc .profile-details {
    padding: 12px 8px;
    width: 100%;
  }

  .profile-card.postdoc h3 {
    font-size: 1.1em;
  }

  .profile-card.postdoc p {
    font-size: 0.9em;
  }

  .profile-card.postdoc .research-link {
    font-size: 0.9em;
    margin-top: 6px;
  }
}
