.staff-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 10px;
    padding: 1rem;
}

.staff-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.staff-image-container {
    width: 120px;
    height: 120px;
    margin: 1.5rem auto 0;
    border-radius: 50%;
    border: 3px solid #f5f5f5;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.staff-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-info {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.staff-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.staff-position {
    font-size: 0.9rem;
    color: #8e44ad;
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-details {
    margin-top: 0.5rem;
    text-align: left;
    font-size: 14px;
    color: #555;
    line-height: 1.65;
}


@media (max-width: 768px) {
    .staff-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .staff-image-container {
        width: 100px;
        height: 100px;
    }

    .staff-details { 
        font-size: 1.7vw; 
        line-height: 1.8;
    }
}

@media (max-width: 590px){
    .staff-details { 
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        line-height: 1.8;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .staff-container {
        grid-template-columns: 1fr;
    }
    
    .staff-info {
        padding: 1.25rem;
    }
}