.heading {
  display: flex;
  justify-content: center;
  padding: 50px 0 50px 0;
}

.management-team {
  display: flex;
  flex-wrap: wrap;
  justify-self: center;
  justify-content: center;
  margin-bottom: 70px;
}

.team-details {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
}

.team-img {
  display: flex;
  justify-content: center;
}

.team-img img {
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
  width: 60%;
  border-radius: 10px;
}

.description {
  background-color: #918e8e;
  width: 80%;
  height: 15vh;
}

.description h6 {
  text-align: center;
  padding-top: 10px;
}

.description p {
  text-align: center;
  color: white;
}

.emp-team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 100px;
  margin-bottom: 100px;
}

.emp-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}

.emp-details {
  text-align: center;
  transition: transform 0.3s ease-in-out;
}



.emp-details:hover img {
  transform: translateY(-10px);
}



/* ✅ Fix horizontal overflow and alignment issues on mobile/tablet */
@media screen and (max-width: 991px) {
  html, body {
    overflow-x: hidden !important;
  }

  .management-team,
  .emp-team {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    gap: 50px; /* reduced gap for better fit */
  }

  .team-details,
  .emp-img {
    width: 100% !important;
    max-width: 400px; /* keeps layout centered */
    margin: 20px auto;
  }

  .description {
    width: 100% !important;
    max-width: 400px;
    height: auto;
  }

  .team-img img {
    width: 100%;
    max-width: 300px;
  }

  .emp-details img {
    width: 120px;
    height: 120px;
  }
}

/* Even tighter layout on very small screens */
@media screen and (max-width: 500px) {
  .management-team,
  .emp-team {
    gap: 30px;
  }

  .team-details,
  .emp-img {
    width: 100% !important;
    max-width: 320px;
    margin: 10px auto;
  }

  .description {
    width: 90% !important;
  }

  .team-img img {
    width: 90%;
  }
}




/* ================================
   TEAM SECTION – CARD SIZE CONTROL
================================ */



/* Card container */
.single-team {
    max-width: 300px;        /* Controls card width */
    margin: 0 auto 30px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

/* Team image */
.single-team img {
    width: 100%;
    height: 300px;           /* Controls image height */
    object-fit: cover;
    display: block;
}

/* Content section */
.team-content {
    padding: 15px 10px;      /* Reduce padding */
    text-align: center;
}

/* Name */
.team-content h3 {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 5px;
}

/* Role */
.team-content span {
    font-size: 13px;
    color: #6c757d;
    display: block;
}

/* Social icons */
.team-content ul {
    padding: 0;
    margin-top: 10px;
}

.team-content ul li {
    list-style: none;
    display: inline-block;
}


/* Hover effect (subtle modern look) */
.single-team:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Reduce vertical gap between cards */
.team-area .row > div {
    margin-bottom: 25px;
}

/* ================================
   MOBILE OPTIMIZATION
================================ */

@media (max-width: 767px) {
    .single-team {
        max-width: 100%;
    }

    .single-team img {
        height: 220px;
    }

    .team-content h3 {
        font-size: 15px;
    }

    .team-content span {
        font-size: 12px;
    }
}


/* ================================
   FIX LINKEDIN ICON VISIBILITY
================================ */

/* Ensure icon stays above hover overlay */
.team-content {
    position: relative;
    z-index: 2;
}

/* LinkedIn icon container */
.team-content ul li a {
    background: #ffffff;          /* visible on dark overlay */
    width: 36px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0d6efd !important;    /* LinkedIn blue */
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* Hover effect on icon */
.team-content ul li a:hover {
    background: #0d6efd;
    color: #ffffff !important;
    transform: scale(1.3);
}

/* Make sure hover overlay doesn't hide icon */
.single-team::before {
    z-index: 2;
}

.single-team:hover::before {
    opacity: 0.6;   /* was probably 0.85 or 1 */
}
