/* Team Section - Modern Styling */

/* Team Card */
.team-card-modern {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.team-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: 0;
}

.team-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Team Photo */
.team-photo {
    position: relative;
    z-index: 1;
    margin-bottom: 1.2rem;
}

.team-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 5px solid #fff;
    image-rendering: auto;
    -webkit-image-rendering: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: #f0f0f0;
}

.team-card-modern:hover .team-photo img {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Team Info */
.team-info {
    position: relative;
    z-index: 1;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.team-research-title {
    font-size: 0.78rem;
    color: #555;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0.7rem;
    background: rgba(139, 195, 74, 0.08);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.team-research-title i {
    color: var(--primary-color);
}

.team-department {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
}

/* Contact Info (Email & Phone with text) */
.team-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0.8rem;
}

.team-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #555;
    text-decoration: none;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 20px;
}

.team-contact a:hover {
    color: var(--primary-color);
}

.team-contact a i {
    font-size: 0.8rem;
}

/* Social Links */
.team-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.team-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-social a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Icon-specific colors on hover */
.team-social a[title="Google Scholar"]:hover {
    background: #4285f4;
}

.team-social a[title="ResearchGate"]:hover {
    background: #00ccbb;
}

.team-social a[title="ORCID"]:hover {
    background: #a6ce39;
}

.team-social a[title="LinkedIn"]:hover {
    background: #0077b5;
}

/* Alternative Style - Minimal Card */
.team-card-minimal {
    text-align: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.team-card-minimal:hover {
    transform: translateY(-5px);
}

.team-card-minimal .team-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(139, 195, 74, 0.3);
    transition: all 0.4s ease;
}

.team-card-minimal:hover .team-photo img {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(139, 195, 74, 0.4);
}

.team-card-minimal .team-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}

.team-card-minimal .team-role {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}

/* Specialist Title */
.team-specialist-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-align: left;
    padding-left: 5px;
}

/* Specialist Tags */
.team-specialist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.2rem;
    padding: 10px;
    background: linear-gradient(135deg, #f8fdf5 0%, #f0f7eb 100%);
    border-radius: 12px;
    border: 1px solid rgba(139, 195, 74, 0.2);
}

.specialist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #444;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.specialist-item i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.specialist-item:nth-child(1) i {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.specialist-item:nth-child(2) i {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.specialist-item:nth-child(3) i {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.specialist-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.2);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.specialist-item:hover i {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Team Slider */
.team-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.team-slider {
    overflow: hidden;
}

.team-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.team-slide {
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
}

.team-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.team-slider-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.team-slider-prev {
    left: 0;
}

.team-slider-next {
    right: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .team-slide {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }
}

@media (max-width: 992px) {
    .team-slide {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    .team-slider-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .team-card-modern {
        padding: 1.5rem 1rem;
    }

    .team-photo img {
        width: 100px;
        height: 100px;
    }

    .team-contact a {
        font-size: 0.65rem;
        padding: 5px 10px;
    }

    .team-social a {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .team-card-minimal .team-photo img {
        width: 120px;
        height: 120px;
    }

    .team-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .team-slider-wrapper {
        padding: 0 35px;
    }

    .team-slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .specialist-tag {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
}


/* Team Page Filter */
.team-filter-wrapper {
    display: flex;
    justify-content: center;
}

.team-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: #fff;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.filter-btn:hover {
    color: var(--primary-color);
    background: rgba(139, 195, 74, 0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 5px 20px rgba(139, 195, 74, 0.4);
}

/* Team Photo Placeholder */
.team-photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 5px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-photo-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.5;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.15) 0%, rgba(104, 159, 56, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.empty-state h4 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #888;
    margin-bottom: 1.5rem;
}

/* Responsive Filter */
@media (max-width: 768px) {
    .team-filter {
        padding: 8px;
        border-radius: 20px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .team-photo-placeholder {
        width: 100px;
        height: 100px;
    }

    .team-photo-placeholder i {
        font-size: 2.5rem;
    }
}

/* Team Bio Excerpt */
.team-bio {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    text-align: left;
    padding: 0 0.5rem;
}

/* View Profile Button */
.view-profile-btn {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.view-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.3);
}

/* Member Modal */
#memberModal .modal-content {
    border: none;
    border-radius: 20px;
}

#memberModal .modal-body {
    padding: 2rem;
}

#memberModal #modalBio {
    white-space: pre-line;
    line-height: 1.7;
}
