.employee-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: baseline;
}

.employee-item {
    max-width: 400px;
    width: 100%;
    background: #223338;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    padding: 0 0 30px 0;
 	min-height: 415px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.employee-item:hover{
  z-index: 1;
  transform: scaleY(1.1) translateY(-5%);
}

.employee-image-sec {
    padding: 9px 9px 22px 9px;
}

.employee-description p {
    font-family: "BasisGrotesqueArabicPro", Sans-serif;
    margin: 0px !important;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px !important;
    text-align: justify;
  	background: linear-gradient(to right, #FFFFFF, #999999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.employee-head h3, h5 {
    font-family: "BasisGrotesqueArabicPro", Sans-serif;
    margin: 0px !important;
    text-align: center;
    color: #fff !important;
}

.employee-head h3 {
    font-family: "BasisGrotesqueArabicPro", Sans-serif;
    font-weight: 900;
    font-size: 20px;
    line-height: 20px;
  	background: linear-gradient(to right, #FFFFFF, #999999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.employee-head h5 {
    font-family: "BasisGrotesqueArabicPro", Sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 18px;
    padding: 8px 0 4px 0;
    background: linear-gradient(to right, #FFFFFF, #999999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



.employee-head {
    padding: 0 9px 0px 9px;
}

.employee-description {
    padding: 20px;
    display: none;
    transform: translateY(100%);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.employee-item:hover .employee-description {
    display: block;
    transform: translateY(0);
}

/* For tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .employee-list {
        grid-template-columns: repeat(2, 1fr); /* Show 2 columns */
        gap: 15px;
    }
  
  .employee-description {
    display: block;
    transform: unset;
}
  .employee-item:hover{
  z-index: unset;
  transform: unset;
}
}

/* For mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .employee-list {
        grid-template-columns: repeat(1, 1fr); /* Show 1 column */
        gap: 10px;
    }
  .employee-description {
    display: block;
    transform: unset;
}
}
