/* Faculty Modal Styles */
.faculty-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.faculty-modal.active {
    display: block;
}

.faculty-modal-content {
    background-color: #fff;
    margin: 1% auto;
    width: 99%;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 35px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 40px;
    border-radius: 8px 8px 0 0;
    position: relative;
    min-height: 200px;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0px, transparent 1px, transparent 40px, rgba(255, 255, 255, 0.03) 41px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, transparent 1px, transparent 40px, rgba(255, 255, 255, 0.03) 41px);
    opacity: 0.5;
}

.modal-profile-section {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.modal-photo-wrapper {
    flex-shrink: 0;
}

.modal-photo {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-contact-info {
    flex-grow: 1;
    color: #fff;
}

.modal-faculty-name {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-designation {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.modal-designation i {
    font-size: 18px;
}

.modal-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.modal-detail-item i {
    font-size: 16px;
    width: 20px;
}

.modal-campus-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.modal-research-interest {
    margin-top: 15px;
}

.modal-research-interest h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.modal-body {
    padding: 0;
}

.modal-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f9fa;
    overflow-x: auto;
}

.modal-tab {
    padding: 15px 25px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

.modal-tab:hover {
    color: #0C4DA2;
    background: rgba(12, 77, 162, 0.05);
}

.modal-tab.active {
    color: #0C4DA2;
    background: #fff;
}

.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #0C4DA2;
}

.modal-tab-content {
    display: none;
    padding: 30px 40px;
    min-height: 300px;
}

.modal-tab-content.active {
    display: block;
    overflow-x: auto;
}

.education-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.education-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    color: #333;
}

.education-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #666;
}

.education-table tr:hover {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .modal-faculty-name {
        font-size: 24px;
    }

    .modal-profile-section {
        flex-direction: column;
    }

    .modal-photo {
        width: 150px;
        height: 150px;
    }

    .modal-tabs {
        flex-wrap: nowrap;
    }

    .modal-tab {
        font-size: 13px;
        padding: 12px 15px;
    }

    .modal-tab-content {
        padding: 20px;
    }

    .faculty-modal-content {
        margin: 10% auto;
        width: 95%;
    }
}