/* ==============================
   Team Card Base
============================== */
.pqcew-team-box.pqcew-style-2 {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

/* .pqcew-team-box.pqcew-style-2:hover {
  transform: translateY(-6px);
} */

/* ==============================
   Team Image
============================== */
.pqcew-team-box.pqcew-style-2 .pqcew-team-media {
  position: relative;
}

.pqcew-team-box.pqcew-style-2 .pqcew-team-media::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,   /* Strong dark at bottom */
    rgba(0, 0, 0, 0.4) 40%,  /* Softer fade upward */
    rgba(0, 0, 0, 0) 70%     /* Fully transparent higher */
  );
    z-index: 1;
}

.pqcew-team-box.pqcew-style-2 .pqcew-team-media .pqcew-team-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* .pqcew-team-box.pqcew-style-2 .pqcew-team-media:hover .pqcew-team-img {
  transform: scale(1.05);
} */

/* ==============================
   Social Icons (Vertical Sidebar)
============================== */
.pqcew-team-box.pqcew-style-2 .pqcew-team-media .pqcew-team-social {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  transition: all 0.3s ease;
    align-items: center;
}

/* Main button (share style icon) */
.pqcew-team-box.pqcew-style-2 .pqcew-team-media .pqcew-team-social .pqcew-social-icon {
background: #1a73e8;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.pqcew-team-box.pqcew-style-2 .pqcew-team-media .pqcew-team-social .pqcew-social-icon:hover {
  background: #0c5fc0;
}

/* Hidden icons initially */
.pqcew-team-box.pqcew-style-2 .pqcew-team-media .pqcew-team-social .pqcew-social-icon-wrap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;

  /* Start hidden */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px); /* slight slide up */
  
  /* Smooth animation */
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.pqcew-team-box.pqcew-style-2 .pqcew-team-media .pqcew-team-social .pqcew-social-icon-wrap li a {
  background: #fff;
  color: #333;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.pqcew-team-box.pqcew-style-2 .pqcew-team-media .pqcew-team-social .pqcew-social-icon-wrap li a:hover {
  background: #1a73e8;
  color: #fff;
}

/* Show icons on hover */
.pqcew-team-box.pqcew-style-2 .pqcew-team-media .pqcew-team-social:hover .pqcew-social-icon-wrap {
  max-height: 500px; /* enough space */
  opacity: 1;
  transform: translateY(0); /* slide back to position */
}

/* ==============================
   Team Info
============================== */
.pqcew-team-box.pqcew-style-2 .pqcew-team-detail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
  color: #fff;
  z-index: 9;
}

.pqcew-team-box.pqcew-style-2 .pqcew-team-name {
    font-size: 22px;
    line-height: 30px;
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.pqcew-team-box.pqcew-style-2 .pqcew-team-role {
  font-size: 14px;
  opacity: 0.85;
  margin: 4px 0 0;
}
