/* Container */
.team-leader-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
}

/* Flip Card Wrapper */
.flip-card {
  perspective: 1000px;       /* enables 3D flip */
  width: 100%;
  height: 450px;             /* fixed height for front/back */
  display: flex;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d;
}

/* Flip effect on hover */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg); 
}

/* Front & Back Base */
.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  backface-visibility: hidden; /* hides backside when flipped */
  overflow: hidden;
}

/* ---------------- FRONT ---------------- */
.flip-card-front {
  z-index: 2;
}

.front-side-team-leader-image {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

/* Gradient Overlay for Text */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0,0,0,0));
  border-radius: 0 0 16px 16px;
  color: #fff;
}

.front-side-team-leader-name {
  margin: 0;
  font-family: 'Public Sans';
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4em;
  color: #ffffff;
}

.front-side-team-leader-designation {
  margin: 4px 0 0 0;
  font-family: 'Public Sans';
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3em;
  color: #dddddd;
}

/* ---------------- BACK ---------------- */
.flip-card-back {
  transform: rotateY(180deg); 
  background: #fff;
  border: 1px solid #0000000F;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: hidden;           
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-image {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.back-side-leader-name {
  font-family: "Public Sans";
  font-weight: 400;
  font-size: 24px;
  line-height: 1.6em;
  margin: 0;
  color: #141219;
  text-align: left;
}

.back-side-leader-designation {
  font-family: "Public Sans";
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3em;
  color: #141219;
  margin-bottom: 10px;
  text-align: left;
}

.back-side-leader-desc {
  font-family: "Public Sans";
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6em;
  color: #14121999;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.divider {
  width: 100%;
  height: 1px;
  background: #eee;
  margin: 10px 0;
}
  .social-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    width: 40px;
    height: 40px;
    margin: 0 8px;
    border-radius: 4px; /* optional: makes it slightly rounded */
    transition: background-color 0.3s ease;
  }

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 12px;

}
.social-icon-box svg {
    fill: #fff;
    width: 20px;
    height: 20px;
    transition: fill 0.3s ease;
  }

.social-link {
  color: #141219;
  transition: color 0.3s;
}

.social-link:hover {
  color: #0073e6;
}


@media (max-width: 768px) {
 .team-leader-container {
  grid-template-columns: 1fr;
 }
 .front-side-team-leader-name {
  font-size: 12x;
}
.back-side-leader-designation {
  font-family: "Public Sans";
  font-weight: 400;
  font-size: 10px;
  line-height: 1.3em;
  color: #141219;
  margin-bottom: 10px;
  text-align: left;
}
.back-side-leader-desc {
  font-size: 8px; 
}
.flip-card-back {
  overflow-y: hidden;
}

}