/* ============================================
   FACULTY LIST & DETAIL PAGES STYLES
   ============================================ */

/* Faculty List Hero Section */
.faculty-page-header {
    background: linear-gradient(135deg, #2d9374 0%, #88493d 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faculty-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="100" height="100" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.faculty-hero {
    position: relative;
    z-index: 1;
}

.hero-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.faculty-hero h1 {
    font-size: 3.5em;
    color: white;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.faculty-subtitle {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* Faculty List Section */
.faculty-list-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 60vh;
}

.faculty-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Faculty Card */
.faculty-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out;
}

.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2d9374, #88493d);
    z-index: 1;
}

.faculty-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.faculty-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faculty-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block !important;
    min-height: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Placeholder for missing images */
.faculty-image-wrapper::before {
    content: '👤';
    position: absolute;
    font-size: 4em;
    color: #ccc;
    z-index: 0;
    display: none;
}

.faculty-image-wrapper:has(img[src=""])::before,
.faculty-image-wrapper:not(:has(img))::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.faculty-card:hover .faculty-image-wrapper img {
    transform: scale(1.1);
}

.faculty-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.faculty-info h3 {
    font-size: 1.4em;
    color: #88493d;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
    font-weight: 600;
}

.faculty-designation {
    font-size: 1em;
    color: #2d9374;
    margin-bottom: 15px;
    font-weight: 500;
}

.faculty-bio-preview {
    font-size: 0.95em;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.view-details-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #2d9374, #88493d);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 147, 116, 0.3);
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 147, 116, 0.4);
}

/* Empty State */
.empty-faculty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.empty-faculty-state svg {
    color: #ddd;
    margin-bottom: 30px;
}

.empty-faculty-state h3 {
    font-size: 2.5em;
    color: #88493d;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
}

.empty-faculty-state p {
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
}

/* Faculty Detail Page */
.faculty-detail-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 80vh;
}

.faculty-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Back Button */
.back-button-wrapper {
    margin-bottom: 30px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    color: #2d9374;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background: #2d9374;
    color: white;
    transform: translateX(-5px);
}

/* Faculty Profile Card */
.faculty-profile-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faculty-profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.faculty-image-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #2d9374;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.faculty-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-header-info {
    flex-grow: 1;
}

.faculty-header-info h1 {
    font-size: 2.5em;
    color: #88493d;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
}

.faculty-designation-large {
    font-size: 1.3em;
    color: #2d9374;
    font-weight: 500;
}

/* Bio Section */
.faculty-bio-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.faculty-bio-section h2 {
    font-size: 1.8em;
    color: #88493d;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

.faculty-bio-section p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.8;
}

/* Documents Section */
.faculty-documents-section h2 {
    font-size: 1.8em;
    color: #88493d;
    margin-bottom: 30px;
    font-family: 'Georgia', serif;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.document-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.document-card:hover {
    transform: translateY(-5px);
    border-color: #2d9374;
    box-shadow: 0 10px 30px rgba(45, 147, 116, 0.2);
}

.document-icon {
    color: #2d9374;
    margin-bottom: 20px;
}

.document-card h3 {
    font-size: 1.4em;
    color: #88493d;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
}

.document-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #2d9374, #88493d);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 147, 116, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 147, 116, 0.4);
}

.no-documents {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .faculty-page-header {
        padding: 60px 20px;
    }
    
    .faculty-hero h1 {
        font-size: 2.2em;
    }
    
    .faculty-subtitle {
        font-size: 1em;
    }
    
    .faculty-list-section {
        padding: 40px 15px;
    }
    
    .faculty-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faculty-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .faculty-image-large {
        width: 150px;
        height: 150px;
    }
    
    .faculty-header-info h1 {
        font-size: 1.8em;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .faculty-profile-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .faculty-page-header {
        padding: 40px 15px;
    }
    
    .faculty-hero h1 {
        font-size: 1.8em;
    }
    
    .faculty-list-section {
        padding: 30px 10px;
    }
    
    .faculty-image-large {
        width: 120px;
        height: 120px;
    }
    
    .faculty-header-info h1 {
        font-size: 1.5em;
    }
}

