/* Team Section */
.team-section {
    background: linear-gradient(to bottom, #f4d4f7 0%, #f6dcb0 50%, #7aecbb 100%);
    position: relative;
    overflow: hidden;
}

.team-tabs {
    background:linear-gradient(to left, #d3ebef 0%, #a4ecfb 50%, #65dcea 100%);
    border-radius: 50px;
    padding: 8px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: fit-content;
    margin: 0 auto 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.team-tabs .nav-link {
    font-weight: 600;
    color: #50637e;
    border: none;
    padding: 8px 24px;
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
    border-radius: 30px;
    background-color: rgba(150,150,150,0.3);
}

.team-tabs .nav-link:hover {
    color: #1e40af;
    background: rgba(255,255,255,0.8);
}

.team-tabs .nav-link.active {
    color: white;
    background: #1e40af;
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.3);
}

.team-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 24px;
    height: 100%;
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, #d2ebf5 0%, #ffffff 50%, #ffffff 100%);
}

.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.15);
}

.team-img-container {
    height: 280px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.6s ease;
    transform-origin: center center;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-overlay-text {
    color: white;
    font-size: 0.9rem;
    line-height: 1.5;
}

.team-card-body {
    padding: 24px;
    position: relative;
}

.team-name {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    font-size: 0.9rem;
}

.team-bio-container {
    position: relative;
    overflow: hidden;
}

.team-bio {
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    transition: max-height 0.5s ease;
    max-height: 4.8em;
    overflow: hidden;
}

.team-bio.expanded {
    max-height: 1000px;
}

.team-bio::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.6em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), white 80%);
    transition: opacity 0.3s ease;
    opacity: 1;
}

.team-bio.expanded::after {
    opacity: 0;
}

.read-more-btn {
    color: #1e40af;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.read-more-btn:hover {
    color: #1e3a8a;
}

.read-more-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more-btn.expanded i {
    transform: rotate(180deg);
}



.team-card:hover .team-social {
    opacity: 1;
    transform: translateY(0);
}



@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}





@media (max-width: 768px) {
    .team-img-container {
        height: 220px;
    }
    
    .team-tabs {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .team-tabs .nav-link {
        padding: 10px 16px;
        font-size: 0.9rem;
        background-color: rgba(255,255,255,0.8);
        width: 100%;
        text-align: center;
    }
    
    .team-overlay {
        opacity: 1;
    }
    
    .team-bio {
        -webkit-line-clamp: 4;
    }
    
    .team-img {
        width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
    }
    

}

@media (min-width: 769px) {
    .team-img-container {
        height: 280px;
    }
    .team-img {
        height: 100%;
        width: auto;
    }
}

/* Hero Team Styles */
.hero-team {
    position: relative;
    overflow: hidden;
}

.dot-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.15);
    transform: translate(-50%, -50%);
}

.line {
    position: absolute;
    background-color: rgba(255,255,255,0.1);
    height: 1px;
    transform-origin: left center;
}

.team-bio-container {
    position: relative;
    overflow: hidden;
    transition: height 0.4s ease;
}

.team-bio {
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.4s ease;
}

.team-bio.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-bio.expanded {
    display: block;
}

.team-bio::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.6em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), white 80%);
    transition: opacity 0.3s ease;
    opacity: 1;
}

.team-bio.expanded::after {
    opacity: 0;
}

/* Enhanced Read More/Less Transition Effects */
.team-bio-container {
    position: relative;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-bio {
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    transform-origin: top;
    transition: all 0.4s ease;
}

.team-bio.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
    transform: scaleY(0.98);
}

.team-bio.expanded {
    display: block;
    opacity: 1;
    transform: scaleY(1);
}

.team-bio::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.6em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), white 80%);
    transition: opacity 0.3s ease;
    opacity: 1;
}

.team-bio.expanded::after {
    opacity: 0;
}

.read-more-btn {
    color: #1e40af;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.read-more-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #1e40af;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.read-more-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.read-more-btn i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.read-more-btn.expanded i {
    transform: rotate(180deg);
}

/* Fade-in effect for newly revealed content */
@keyframes fadeInExpand {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-bio.expanded {
    animation: fadeInExpand 0.4s ease forwards;
}

.team-qualification,
.team-experience {
  color: #475569;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
