﻿/* ---------- Faculty card ---------- */
.published-researches .faculty-card {
    margin-bottom: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 45, 88, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        height: auto;
}

    .faculty-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 45, 88, 0.1);
        border-color: rgba(243, 178, 0, 0.5);
    }

/* ---------- Card head ---------- */
.faculty-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.faculty-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 18px;
    backdrop-filter: blur(6px);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.faculty-head-text {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

    .faculty-head-text h2 {
        font-size: 17px;
        font-weight: 700;
        color: var(--white);
        margin: 0;
        letter-spacing: 0.2px;
        line-height: 1.3;
    }

.faculty-count {
    position: relative;
    z-index: 1;
    background: var(--accent);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(243, 178, 0, 0.3);
}

/* ---------- Member list ---------- */
.faculty-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .faculty-list li {
        margin: 0;
        padding: 0;
    }

.faculty-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary);
    font-size: 14.5px;
    font-weight: 500;
    position: relative;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

    .faculty-member::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 3px;
        height: 60%;
        background: var(--accent);
        border-radius: 0 3px 3px 0;
        transform: translateY(-50%) scaleY(0);
        transform-origin: center;
        transition: transform 0.25s ease;
    }

    .faculty-member:hover {
        background: rgba(0, 45, 88, 0.05);
        color: var(--secondary-blue);
        transform: translateX(3px);
    }

        .faculty-member:hover::before {
            transform: translateY(-50%) scaleY(1);
        }

/* ---------- Member avatar ---------- */
.member-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 45, 88, 0.08), rgba(0, 45, 88, 0.03));
    border: 1px solid var(--border);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.faculty-member:hover .member-avatar {
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    border-color: var(--primary);
    color: var(--accent);
    transform: scale(1.06);
}

/* ---------- Member name + arrow ---------- */
.member-name {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.member-arrow {
    margin-left: auto;
    font-size: 12px;
    color: var(--gray);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.faculty-member:hover .member-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .faculty-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .faculty-card-head {
        padding: 14px 16px;
        gap: 12px;
    }

    .faculty-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .faculty-head-text h2 {
        font-size: 16px;
    }

    .faculty-list {
        padding: 8px;
    }

    .faculty-member {
        padding: 10px;
        font-size: 14px;
    }

    .member-avatar {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
