.team-container-st {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.team-grid-st {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
    gap: 20px; /* Space between grid items */
}

.team-member-st {
    position: relative;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    padding: 0;
    border-radius: 14px;
    box-shadow: 0 5px 6px #0000000f;
    background: #16332a; /* Card background spans the whole card */
    overflow: hidden;
}

.image-container-st {
    position: relative;
    display: block;
    overflow:hidden;
    border-radius: 14px; /* Rounded on all corners since the image now sits inset from the card edge */
}

.image-container-st img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4; /* Portrait photo proportions */
    object-fit: cover; /* Ensures the image covers the entire container without stretching */
    transition: all ease 0.5s;
}

.team-member-st:hover .image-container-st img {
    transform: scale(1.05);
  }

.team-member-info-st {
    background: transparent; /* Card background now shows through from .team-member-st */
    padding: 20px;
}

.text-content-st h3 {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 24px;
    font-weight: 600;
    text-align:left;
}

.text-content-st h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 400;
    text-align:left;
}

.team-member-info-st h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    text-align: left;
    color: #ffffff;
}

.team-member-info-bottom-st {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.team-member-info-st h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    text-align: left;
    color: #ffffff;
}

.linkedin-link-st {
    flex-shrink: 0;
    display: inline-flex;
    line-height: 0;
}

.linkedin-link-st img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    display: block;
    transition: opacity ease 0.2s;
}

.linkedin-link-st:hover img {
    opacity: 0.8;
}


  .team-member-detail-st {
    display: none;
    width: 100%;
    grid-column: 1 / -1;
    margin-top: 20px;
    margin-bottom: 20px;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px); 
}

.team-member-detail-st.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.team-member-content-st {
    display: flex;
    align-items: flex-start;
    padding: 0;
    border: none;
    position: relative;
    box-shadow: 0 5px 8px #00000017;
    border-radius: 14px;
    background:white;
    overflow:hidden;
}

.img-cont {
    width: 80%;
    display: flex;
    align-self: stretch;
    background-position: center;
    background-size: cover;
    border-radius: 14px 0 0 14px;
  }


.text-content-st {
    width: 100%;
    padding:40px;
}

.text-content-heading-st {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.text-content-heading-st h3 {
    margin-bottom: 0;
}

.linkedin-link-detail-st img {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
}

.close-btn-st {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.close-btn-st img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    display: block;
}

.close-btn-st:hover, .close-btn-st:focus {
    background-color: transparent !important;
}

@media (min-width:1026px) {

.team-member-content-st {
  min-height: 600px;
}
}

@media (min-width:768px) and (max-width:1025px) {

.team-member-content-st {
  min-height: 440px;
}
}

@media (max-width: 767px) {
    .team-grid-st {
        grid-template-columns: 1fr;
    }
    
    .img-cont {
        display:none;
    }
    
    
}

