/* People page styles */

/* Center team members when there's only one in a category */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

/* Center one-person categories (like faculty) */
.team-category:has(.team-grid:nth-child(1)) {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-category .team-grid:has(.team-member:only-child) {
    width: 350px;
    margin: 0 auto;
}

/* Team member card */
.team-member {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-photo {
    height: 100%;
    width: 100%;
    background-color: var(--light-bg);
    background-size: cover;
    background-position: center top;
    position: relative;
    transition: filter 0.4s ease;
}

/* Gradient overlay for text visibility */
.member-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.member-info-minimal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    text-align: left;
    transition: opacity 0.4s ease;
}

.member-info-minimal h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.member-role-minimal {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Detailed info overlay (appears on hover) */
.member-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    text-align: left;
}

/* Website tag styles */
.website-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.website-tag:hover {
    opacity: 1;
}

.website-tag a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.website-tag svg {
    width: 12px;
    height: 12px;
}

.team-member:hover .member-photo {
    filter: blur(8px);
}

.team-member:hover .member-info-minimal {
    opacity: 0;
}

.team-member:hover .member-details {
    opacity: 1;
}

.team-member:hover .website-tag {
    opacity: 0;
}

.member-details h3 {
    margin-bottom: 8px;
    color: white;
}

.member-role-detailed {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.member-bio {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    flex-grow: 1;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Style the scrollbar for the bio section */
.member-bio::-webkit-scrollbar {
    width: 4px;
}

.member-bio::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.member-bio::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.member-bio::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.member-research {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.member-email {
    margin-top: auto;
}

.member-email a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.member-email a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.member-website {
    margin-top: 8px;
}

.member-website a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.member-website a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.team-category {
    margin-bottom: 50px;
}

/* View details indicator */
.view-details {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    opacity: 0.7;
    z-index: 2;
}

.team-member:hover .view-details {
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .team-category .team-grid:has(.team-member:only-child) {
        width: 280px;
    }
}

/* Add this at the end of your people.css file */

/* Alumni Table Styles */
.alumni-section {
    margin-top: 60px;
}

.alumni-container {
    width: 100%;
    overflow-x: auto;
}
/* Make sure alumni table is always visible */
.alumni-table-wrapper {
    opacity: 1 !important; /* Force visibility */
    transform: none !important; /* Prevent any transform */
    transition: none; /* Disable transitions that might affect visibility */
}

/* Add a smoother entry animation for the table that doesn't affect visibility */
.alumni-table {
    animation: tableAppear 0.6s ease-out;
}

@keyframes tableAppear {
    from {
        opacity: 0.8;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alumni-table thead {
    background-color: var(--primary);
    color: white;
}

.alumni-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 500;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
}

.alumni-table td {
    padding: 12px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: top;
}

.alumni-table tr:last-child td {
    border-bottom: none;
}

.alumni-table tr:hover td {
    background-color: rgba(0, 115, 187, 0.05);
}

/* Year markers to group alumni by year */
.year-marker {
    background-color: var(--darker-bg);
}

.year-marker td {
    padding: 8px 20px;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--darker-bg) !important;
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid var(--border);
}

.year-marker span {
    display: inline-block;
    position: relative;
}

/* Column widths */
.alumni-table th:nth-child(1),
.alumni-table td:nth-child(1) {
    width: 20%;
}

.alumni-table th:nth-child(2),
.alumni-table td:nth-child(2) {
    width: 10%;
}

.alumni-table th:nth-child(3),
.alumni-table td:nth-child(3) {
    width: 10%;
}

.alumni-table th:nth-child(4),
.alumni-table td:nth-child(4) {
    width: 40%;
}

.alumni-table th:nth-child(5),
.alumni-table td:nth-child(5) {
    width: 20%;
}

/* Responsive adjustments for alumni table */
@media (max-width: 1200px) {
    .alumni-table th, 
    .alumni-table td {
        padding: 10px 15px;
    }
    
    .alumni-table th:nth-child(4),
    .alumni-table td:nth-child(4) {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .alumni-table {
        font-size: 0.85rem;
    }
    
    .alumni-table th, 
    .alumni-table td {
        padding: 8px 10px;
    }
    
    /* For smaller screens, we'll hide the thesis column */
    .alumni-table th:nth-child(4),
    .alumni-table td:nth-child(4) {
        display: none;
    }
    
    .alumni-table th:nth-child(1),
    .alumni-table td:nth-child(1) {
        width: 30%;
    }
    
    .alumni-table th:nth-child(5),
    .alumni-table td:nth-child(5) {
        width: 30%;
    }
}

/* Loading state for alumni data */
.alumni-loading tbody tr td {
    animation: pulse 1.5s infinite;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

@keyframes pulse {
    0% { background-color: rgba(0, 0, 0, 0.03); }
    50% { background-color: rgba(0, 0, 0, 0.07); }
    100% { background-color: rgba(0, 0, 0, 0.03); }
}

/* Error message for alumni loading */
.alumni-error {
    padding: 20px;
    margin: 20px 0;
    background-color: rgba(255, 235, 235, 0.7);
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}