﻿/* Container for the entire directory */
.staff-directory-container {
    padding: 30px 15px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
}

/* Header section styling */
.directory-header {
    text-align: center;
    margin-bottom: 40px;
}
.directory-header h1 {
    color: #0f172a;
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.directory-header p {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

/* Grid layout for the staff cards */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Individual Staff Card Design */
.staff-profile-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.staff-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Profile Header banner inside card */
.card-profile-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.profile-image-frame {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    background: #cbd5e1;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.profile-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-meta-text {
    flex-grow: 1;
}

.staff-name {
    font-size: 1.15rem;
    color: #0f172a;
    margin: 0 0 4px 0;
    font-weight: 600;
    line-height: 1.3;
}

.staff-designation {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    background-color: #e2e8f0;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin: 0 0 4px 0;
}

.staff-branch {
    font-size: 0.85rem;
    color: #0284c7;
    margin: 4px 0 0 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Details Section inside card */
.card-profile-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.detail-block h4 {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    letter-spacing: 0.5px;
}

.detail-block p {
    font-size: 0.95rem;
    color: #334155;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

.contact-list {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-row {
    font-size: 0.9rem;
    color: #475569;
    display: flex;
    align-items: flex-start;
}

.contact-label {
    font-weight: 600;
    color: #64748b;
    width: 75px;
    flex-shrink: 0;
}

.contact-val {
    color: #334155;
}

/* Responsiveness adjustments */
@media (max-width: 480px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
    .card-profile-header {
        flex-direction: column;
        text-align: center;
    }
}