/* Team Page Styles - Clean Circular Design */

.team-card-modern {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4ebf2 100%);
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
}

.team-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(39, 170, 225, 0.2);
    background: linear-gradient(135deg, #d4ebf2 0%, #c0e4ef 100%);
}

.team-image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    background: white;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
}

.team-card-modern:hover .team-image-wrapper {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(39, 170, 225, 0.25);
}

.team-image {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.team-card-modern:hover .team-image {
    transform: scale(1.08);
}

.team-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(39, 170, 225, 0.92) 0%, rgba(29, 138, 184, 0.92) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.team-card-modern:hover .team-hover-overlay {
    opacity: 1;
}

.btn-view-profile {
    background: white;
    color: #27aae1;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-view-profile:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.team-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0;
    line-height: 1.3;
}

.team-position {
    color: #27aae1;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.team-bio-short {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
    max-width: 100%;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Remove the pattern overlay for cleaner look */
.team-card-modern::after {
    display: none;
}

.board-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(243, 156, 18, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(243, 156, 18, 0.03) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 24px;
}

.board-card-modern {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    height: 100%;
    position: relative;
    border: 1px solid rgba(243, 156, 18, 0.1);
}

.board-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.board-card-modern:hover::before {
    transform: scaleX(1);
}

.board-card-modern:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 24px 60px rgba(243, 156, 18, 0.2);
    border-color: rgba(243, 156, 18, 0.3);
}

.board-image-container {
    flex-shrink: 0;
    width: 220px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.board-image {
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease, filter 0.3s ease;
    margin-bottom: 1rem;
}

.board-card-modern:hover .board-image {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.board-socials-under-image {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.board-content {
    padding: 2rem 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.board-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0;
    line-height: 1.3;
}

.board-position {
    color: #f39c12;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.board-bio-short {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.8;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.board-socials {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.board-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
    font-size: 0.9rem;
}

.board-social-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.4);
    color: white;
}

.btn-read-more {
    background: transparent;
    border: 2px solid #f39c12;
    color: #f39c12;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-read-more:hover {
    background: #f39c12;
    color: white;
    transform: translateX(5px);
    border-color: #f39c12;
}

@media (max-width: 991px) {
    .board-card-modern {
        flex-direction: column;
    }
    
    .board-image-container {
        width: 100%;
        height: 280px;
    }
    
    .team-image-wrapper {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 767px) {
    .team-card-modern {
        max-width: 380px;
        margin: 0 auto;
        padding: 2rem 1.25rem 1.75rem;
    }
    
    .team-image-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .team-name {
        font-size: 1.15rem;
    }
    
    .team-position {
        font-size: 0.85rem;
    }
    
    .team-bio-short {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
    
    .board-image-container {
        height: 250px;
    }
}

.card-animate {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
